Actors always start with 100 HP displayed
Posted: Sat Mar 05, 2011 8:20 pm
Gets updated after a turn, but it still shouldn't ever be wrong. EtMarc says he made the following fix to engine.Actor for BOB:
Code: Select all
function _M:added()
engine.Actor.added(self)
self:calcStatEffects()
self:resetToFull()
end
-- Fill the Actor hp and mp
function _M:resetToFull()
self.hp = self.max_hp
self.mp = self.max_mp
self.changed = true
end