Re: damage limit

From: Akuma/Chris Baggett/DOOMer (doomer@BAYOU.COM)
Date: 03/10/98


well, being the amazing psychic coder that I am,
I put away my crystal ball on this one.

By using my psychic powers, and since you refer to it being a _damage_ limit,
the first thing that popped into my head was damage().

So I decided to do a simple grep (every coder should know what this is)

grep "damage(" *.c

well, after a little bit of spam, i found out that the damage() function
was located in fight.c

moving on from there I looked into the damage() function in fight.c
and found a line similar to this
dam = MAX(MIN(dam, 100), 0);

Just a spoonful of RTFC helps the pain-in-the-head-codeing go down.
In the most delightful way.

Code On
Akuma the Raging Coder


At 12:06 AM 3/11/98 -0600, you wrote:
>Does anyone know if there is a damage limit in the code somewhere and,
>if so, where it is located so it can be changed.
>I have put in some high level spells that should do more than 100 points
>of damage. However, on testing the max I have ever seen is 100. This
>seems to be a limit to me.
>
>Thanks,
>Rand
>Imp at twinsuns.dynip.com (4000)
>
>
>     +------------------------------------------------------------+
>     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
>     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
>     +------------------------------------------------------------+
>
>
  +------------------------------------------------------------+
  | "The poets talk about love, but what I talk about is DOOM, |
  |      because in the end, DOOM is all that counts." -       |
  |   Alex Machine/George Stark/Stephen King, The Dark Half    |
  |        "Nothing is IMPOSSIBLE, Just IMPROBABLE"            |
  |   "Easier Said Than Done, But Better Done Than Said..."    |
  +------------------------------------------------------------+


     +------------------------------------------------------------+
     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | http://democracy.queensu.ca/~fletcher/Circle/list-faq.html |
     +------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 12/15/00 PST