Bug - Fixed Mafia casts substats to ints in my_basestat

heeheehee

Developer
Staff member
At high levels, my_basestat($stat[submysticality]) and friends start to return negative values.

Pretty simple fix in RuntimeLibrary -- just remove the casts, since KoLCharacter.getTotalMuscle() et al. return longs.
 

heeheehee

Developer
Staff member
Yeah, it does. I tested it locally, and it fixed the problem. There's another issue entirely with Mafia incrementing submysticality and friends even though KoL imposes a hard cap on them, but that's really not interesting or relevant.
 
Top