Closed ghost closed 13 years ago
This also affects +setstat for merits, but will be fixed by repairing getstat.
Getstat is presently one very nasty kludge of code. It should probably be written in a more elegant, distributed style. Getstat is #5/FN_GETSTAT and #1687/STATTYPE and #1687/GET.
So.. um.. looks like I accidently fixed this one already. At least testing on the dev port side returns the appropriate permanent value of the merits I tested it with.
Not, mind, that it couldn't use a rewrite ANYWAYS, but yeeeeh.
Tested this, and looked at the bits I can see. Can confirm that with the rewrite to setstat/statype already made to go with cgen MK II that getstat works, even for merits.
Using getstat() to get the value of a merit always returns 0. It should return the current (permanent) value of the merit.