View Single Post
  #7  
Old 05-19-2004, 05:59 AM
m0oni9
Hill Giant
 
Join Date: Dec 2003
Posts: 166
Default

Instead of a new function, maybe just modify SetStats (and those using it) to take an additional argument. Something more along the lines of:

void Client::SetStats (int8 type, sint16 val, int flags)

where flags may be of some define'd/enum'd value, ie: STAT_INCREASE, STAT_SET, ...

(As an alternative, maybe zero out all stats -- is there a function like this? -- and call SetStats as-is to increase them.)

Also, would recommend using STAT_STR, STAT_STA, etc. in place of hard-coded values in your command.
Reply With Quote