1998Q3/
<!-- MHonArc v2.4.4 -->
<!--X-Subject: [MUD&#45;Dev] Re: let's call it a spellcraft -->
<!--X-From-R13: "Oqnz X. Fubeagba" <nqnzNcubravk.Bevaprgba.SRG> -->
<!--X-Date: Thu, 24 Sep 1998 15:13:34 &#45;0700 -->
<!--X-Message-Id: 19980924180905.C18139#flagstaff,Princeton.EDU -->
<!--X-Content-Type: text/plain -->
<!--X-Reference: 199809240523.AAA14210@dfw&#45;ix10.ix.netcom.com -->
<!--X-Reference: Pine.LNX.3.93.980924113713.30597A&#45;100000#pc4,zennet.com -->
<!--X-Head-End-->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<html>
<head>
<title>MUD-Dev message, [MUD-Dev] Re: let's call it a spellcraft</title>
<!-- meta name="robots" content="noindex,nofollow" -->
<link rev="made" href="mailto:adam#phoenix,Princeton.EDU">
</head>
<body background="/backgrounds/paperback.gif" bgcolor="#ffffff"
      text="#000000" link="#0000FF" alink="#FF0000" vlink="#006000">

  <font size="+4" color="#804040">
    <strong><em>MUD-Dev<br>mailing list archive</em></strong>
  </font>
      
<br>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
<br clear=all><hr>
<!--X-Body-Begin-->
<!--X-User-Header-->
<!--X-User-Header-End-->
<!--X-TopPNI-->

Date:&nbsp;
[&nbsp;<a href="msg01200.html">Previous</a>
&nbsp;|&nbsp;<a href="msg01202.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Thread:&nbsp;
[&nbsp;<a href="msg01198.html">Previous</a>
&nbsp;|&nbsp;<a href="msg01206.html">Next</a>
&nbsp;]
&nbsp;&nbsp;&nbsp;&nbsp;
Index:&nbsp;
[&nbsp;<A HREF="author.html#01201">Author</A>
&nbsp;|&nbsp;<A HREF="#01201">Date</A>
&nbsp;|&nbsp;<A HREF="thread.html#01201">Thread</A>
&nbsp;]

<!--X-TopPNI-End-->
<!--X-MsgBody-->
<!--X-Subject-Header-Begin-->
<H1>[MUD-Dev] Re: let's call it a spellcraft</H1>
<HR>
<!--X-Subject-Header-End-->
<!--X-Head-of-Message-->
<UL>
<LI><em>To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
<LI><em>Subject</em>: [MUD-Dev] Re: let's call it a spellcraft</LI>
<LI><em>From</em>: "Adam J. Thornton" &lt;<A HREF="mailto:adam#phoenix,Princeton.EDU">adam#phoenix,Princeton.EDU</A>&gt;</LI>
<LI><em>Date</em>: Thu, 24 Sep 1998 18:09:05 -0400</LI>
<LI><em>Reply-To</em>: <A HREF="mailto:mud-dev#kanga,nu">mud-dev#kanga,nu</A></LI>
</UL>
<!--X-Head-of-Message-End-->
<!--X-Head-Body-Sep-Begin-->
<HR>
<!--X-Head-Body-Sep-End-->
<!--X-Body-of-Message-->
<PRE>
On Thu, Sep 24, 1998 at 12:52:59PM -0700, Brandon J. Rickman wrote:
&gt; You are advocating a very rigid and inhumane programming practice.  Some
&gt; thought should go into how numbers are important to the game, not to the
&gt; CPU.  Player stats ranging into the thousands would be irritating, stats
&gt; in the millions incomprehensible.  A player walking around with 2^31 coins
&gt; in her pocket is still a bug, even if the code is bulletproof.

I think we're talking about two different things here.

The implementation of coin class shouldn't arbitrarily restrict the number
of coins to anything less than MAXINT.

However, constraints like 

if (player.current_capacity + item.bulk) &lt; player.max_capacity) are both
useful and necessary.  Same with

int add_to_player_strength(player_t player) {
	if (player.strength &lt; maxstrength(race(player))) {
            (player.strength)++;
	    return(1);
        } else {
            return(0);
        }
}

If memory is *really* at a premium and stats below 20 are the norm, maybe
it makes sense to define strength as an unsigned char rather than an int.
Even so, most compilers are going to align it for you anyway.  If Bob The
Dwarf has a strength of 14, then maybe it does make sense for Godzilla to
have a strength of 235,933.  Why not leave yourself the option?

Adam
-- 
adam#princeton,edu 
"There's a border to somewhere waiting, and a tank full of time." - J. Steinman


</PRE>

<!--X-Body-of-Message-End-->
<!--X-MsgBody-End-->
<!--X-Follow-Ups-->
<HR>
<ul compact><li><strong>Follow-Ups</strong>:
<ul>
<li><strong><A NAME="01206" HREF="msg01206.html">[MUD-Dev] Re: let's call it a spellcraft</A></strong>
<ul compact><li><em>From:</em> "Brandon J. Rickman" &lt;ashes#pc4,zennet.com&gt;</li></ul>
</UL></LI></UL>
<!--X-Follow-Ups-End-->
<!--X-References-->
<UL><LI><STRONG>References</STRONG>:
<UL>
<LI><STRONG><A NAME="01177" HREF="msg01177.html">[MUD-Dev] Re: let's call it a spellcraft</A></STRONG>
<UL><LI><EM>From:</EM> "Jon A. Lambert" &lt;jlsysinc#ix,netcom.com&gt;</LI></UL></LI>
<LI><STRONG><A NAME="01198" HREF="msg01198.html">[MUD-Dev] Re: let's call it a spellcraft</A></STRONG>
<UL><LI><EM>From:</EM> "Brandon J. Rickman" &lt;ashes#pc4,zennet.com&gt;</LI></UL></LI>
</UL></LI></UL>
<!--X-References-End-->
<!--X-BotPNI-->
<UL>
<LI>Prev by Date:
<STRONG><A HREF="msg01200.html">[MUD-Dev] Re: let's call it a spellcraft</A></STRONG>
</LI>
<LI>Next by Date:
<STRONG><A HREF="msg01202.html">[MUD-Dev] Re: META: hat are you looking for in this list?</A></STRONG>
</LI>
<LI>Prev by thread:
<STRONG><A HREF="msg01198.html">[MUD-Dev] Re: let's call it a spellcraft</A></STRONG>
</LI>
<LI>Next by thread:
<STRONG><A HREF="msg01206.html">[MUD-Dev] Re: let's call it a spellcraft</A></STRONG>
</LI>
<LI>Index(es):
<UL>
<LI><A HREF="index.html#01201"><STRONG>Date</STRONG></A></LI>
<LI><A HREF="thread.html#01201"><STRONG>Thread</STRONG></A></LI>
</UL>
</LI>
</UL>

<!--X-BotPNI-End-->
<!--X-User-Footer-->
<!--X-User-Footer-End-->
<ul><li>Thread context:
<BLOCKQUOTE><UL>
<LI><STRONG>[MUD-Dev] Re: Let's talk about numbers.</STRONG>, <EM>(continued)</EM>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<ul compact>
<LI><strong><A NAME="01267" HREF="msg01267.html">[MUD-Dev] Re: Let's talk about numbers.</A></strong>, 
Adam J. Thornton <a href="mailto:adam#phoenix,Princeton.EDU">adam#phoenix,Princeton.EDU</a>, Sat 26 Sep 1998, 16:44 GMT
</LI>
</ul>
</ul>
</ul>
</ul>
<LI><strong><A NAME="01194" HREF="msg01194.html">[MUD-Dev] Re: let's call it a spellcraft</A></strong>, 
Adam Wiggins <a href="mailto:adam#angel,com">adam#angel,com</a>, Thu 24 Sep 1998, 18:08 GMT
<UL>
<LI><strong><A NAME="01214" HREF="msg01214.html">[MUD-Dev] Let's talk about numbers.</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Fri 25 Sep 1998, 05:59 GMT
</LI>
</UL>
</LI>
<LI><strong><A NAME="01198" HREF="msg01198.html">[MUD-Dev] Re: let's call it a spellcraft</A></strong>, 
Brandon J. Rickman <a href="mailto:ashes#pc4,zennet.com">ashes#pc4,zennet.com</a>, Thu 24 Sep 1998, 19:53 GMT
<UL>
<LI><strong><A NAME="01201" HREF="msg01201.html">[MUD-Dev] Re: let's call it a spellcraft</A></strong>, 
Adam J. Thornton <a href="mailto:adam#phoenix,Princeton.EDU">adam#phoenix,Princeton.EDU</a>, Thu 24 Sep 1998, 22:13 GMT
<UL>
<LI><strong><A NAME="01206" HREF="msg01206.html">[MUD-Dev] Re: let's call it a spellcraft</A></strong>, 
Brandon J. Rickman <a href="mailto:ashes#pc4,zennet.com">ashes#pc4,zennet.com</a>, Fri 25 Sep 1998, 02:43 GMT
<UL>
<LI><strong><A NAME="01228" HREF="msg01228.html">[MUD-Dev] Re: numbers - was Re: spellcraft</A></strong>, 
Orion Henry <a href="mailto:orionz#ix,netcom.com">orionz#ix,netcom.com</a>, Fri 25 Sep 1998, 19:28 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
<LI><strong><A NAME="01217" HREF="msg01217.html">[MUD-Dev] Let's talk about numbers.</A></strong>, 
Jon A. Lambert <a href="mailto:jlsysinc#ix,netcom.com">jlsysinc#ix,netcom.com</a>, Fri 25 Sep 1998, 06:00 GMT
<UL>
<LI><strong><A NAME="01323" HREF="msg01323.html">[MUD-Dev] Re: Let's talk about numbers.</A></strong>, 
Brandon J. Rickman <a href="mailto:ashes#pc4,zennet.com">ashes#pc4,zennet.com</a>, Mon 28 Sep 1998, 02:52 GMT
</LI>
</UL>
</LI>
</UL>
</LI>
</ul>
</ul>
</ul>
</ul>
</ul>
</LI>
</UL></BLOCKQUOTE>

</ul>
<hr>
<center>
[&nbsp;<a href="../">Other Periods</a>
&nbsp;|&nbsp;<a href="../../">Other mailing lists</a>
&nbsp;|&nbsp;<a href="/search.php3">Search</a>
&nbsp;]
</center>
<hr>
</body>
</html>