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

Chargen having trouble when stat terms used in Concept #114

Open Bradamante opened 12 years ago

Bradamante commented 12 years ago

Davy's +sheet showed a humanity of Lost Humanity and Concept also of Lost Humanity. Knave used +setstat davy/humanity=7 and it set his humanity to 5 and his Concept to 7.

Loki says: "So the bug here is probably in setstat(). The problem is it's doing a grep() for humanity, and coming up with both, and thereby setting both (or similar). I'm sure he /wanted/ 'Lost Humanity' for his concept, and that created the bug."

hmmorpheus commented 12 years ago

Actually this was related to getstat(). It wasn't missetting humanity at all, the humanity remained 7, it was simply reporting the contents of the Concept instead. This is also fixed by the getstat fix here:

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