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.
|