Re: Proposal for the skills array

From: George Greer (
Date: 11/04/02

On Mon, 4 Nov 2002, Jesse Becker wrote:

>Thus, the skills array takes 201 bytes of memory for each player--not a
>big deal.  However, stock CircleMud further loads some 1397 mobs (of 569
>different types).  At 201 bytes of memory each, that's a 274kb increase in
>the MUD's memory foot print.

Mobiles don't have skills unless you've changed something fundamental in
the code. Sure, there's 'dummy_mob' but that's only there so people
forgetting the rule don't crash and burn.

>#define GET_SKILL(ch, i)  \
>           IS_NPC(ch) ? GET_MOB_SKILL(ch,i) \
>                      : CHECK_PLAYER_SPECIAL((ch), \
>                         ((ch)->player_specials->saved.skills[i]))

Look at what CHECK_PLAYER_SPECIAL() does and ponder that a while.

George Greer

   | FAQ: |
   | Archives: |
   | Newbie List:   |

This archive was generated by hypermail 2b30 : 06/25/03 PDT