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
Moderator: Moderator
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