HM-CODE / Haunted-Memories

A repository for Haunted Memories code.
http://www.haunted-memories.net/
BSD 3-Clause "New" or "Revised" License
4 stars 5 forks source link

+setstat misreporting when used to set merits #116

Open Bradamante opened 13 years ago

Bradamante commented 13 years ago

+setstat frequently gives inaccurate results when used to set merits. Example:

+setstat Bette/Dream=1

<+setstat> You set Bette's Dream to 3

hmmorpheus commented 13 years ago

Okay, tracked down what the problem with this is. It's the masking in getstat. It's looking for 'anything that contains the phrase entered' instead of 'this specific merit'. So in the example what it was doing was it saw and reported the level for Dream-Visions while it was setting Dream.

hmmorpheus commented 13 years ago

Proposed fix for this specific problem and from similar stuff occurring with getstat in general here:

https://github.com/hmmorpheus/Haunted-Memories/blob/master/softcode/stats/getstats.txt