I dunno.. mebe it's me.. but I'd put a case 0 in there just incase
something gets messed and this is called when dam == 0. (They'd die ;) )
> switch(rooms_fallen) {
case 0: dam = 0;
> case 1: dam = GET_MAX_HIT(ch) * .2;
> case 2: dam = GET_MAX_HIT(ch) * .3;
> case 3: dam = GET_MAX_HIT(ch) * .66;
> case 4: dam = GET_MAX_HIT(ch) * .9;
> default: dam = GET_MAX_HIT(ch); /* ouch */
> }
Chris Grantham
Head Administrator
ObjectMURPE (tm)
ObjectMURPE, MURPE, OM, and OMURPE are
trademarks of the ObjectMURPE Development Group.
--
Unsolicited commercial email will be proofread and sent back to its
source, along with a bill for $150 U.S. The act of mailing such messages
to this account indicates acceptance of these terms.
+-----------------------------------------------------------+
| Ensure that you have read the CircleMUD Mailing List FAQ: |
| http://cspo.queensu.ca/~fletcher/Circle/list_faq.html |
+-----------------------------------------------------------+
This archive was generated by hypermail 2b30 : 12/18/00 PST