Re: [Code]Werewolf Race

From: Daniel Koepke (dkoepke@CALIFORNIA.COM)
Date: 09/04/97

On Thu, 4 Sep 1997, David Klasinc wrote:

-+ if (time_info.hours == 21) {

The problem is that if someone logs in after time_info.hours is over 21,
then they don't get affected.  That means that someone who is a werewolf
but logs in, say, a mud hour later than 21 will not be affected.  Of
course, you could do an AFF_xxx check.  It'd be good to use weather.c
to do the time check then call the werewolf functions, which will check
whether or not the person is presently a werewolf and currently in a
wolf state.  I fthey are NOT a wolf and it is >= 21 then you add the
AFF_xxx flag and have it expire in (24-current hour)+(morning hour).  That
is, if time_info.hours is 21, and morning occurs (eg., when the person is
no longer a wolf) at 6, then (24-21)+6, or 9 mud hours.  This eliminates
the need for self-modifying the player's abilities (which is dangerous).

Daniel Koepke -:- -:-  [Shadowlord/Nether]

     | Ensure that you have read the CircleMUD Mailing List FAQ:  |
     | |

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