Skip to content

Attributes and skills are not stored as floats

The vanilla engine stores attributes and skills (but not level) as floats so if you do:

player->modstrength 0.4
player->modstrength 0.4
player->modstrength 0.4

your strength will be 1 higher in the stats screen (and if you do it 2 more times it'll be 2 higher). This is probably hardly if ever used by vanilla or mods but I was using it in my leveling mod until I realized it wasn't working.

(RM-4021 from redmine: created on 2017-08-14 by halbe null, )

Edited by redmine