Skip to content
Snippets Groups Projects
Commit d37ba391 authored by dg's avatar dg
Browse files

safety check

git-svn-id: http://svn.net-core.org/repos/t-engine4@6093 51575b47-30f0-44d4-a5cc-537603b46e54
parent a913df6e
No related branches found
No related tags found
No related merge requests found
......@@ -348,6 +348,9 @@ function _M:useEnergy(val)
end
function _M:actBase()
-- Stupid sanity check that is actualy useful
if not self.life ~= self.life then self.life = self.max_life end
-- Solipsism speed effects; calculated before the actor gets energy
local current_psi_percentage = self:getPsi() / self:getMaxPsi()
local clarity
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment