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

indent

git-svn-id: http://svn.net-core.org/repos/t-engine4@6824 51575b47-30f0-44d4-a5cc-537603b46e54
parent f39e0106
No related branches found
No related tags found
No related merge requests found
......@@ -35,17 +35,17 @@ function _M:init(t, no_default)
end
function _M:actBase()
-- Reduce shoving pressure every turn
if self.shove_pressure then
if self._last_shove_pressure and (self.shove_pressure < self._last_shove_pressure) then
self.shove_pressure = nil
self._last_shove_pressure = nil
else
self._last_shove_pressure = self.shove_pressure
self.shove_pressure = self.shove_pressure / 2
end
-- Reduce shoving pressure every turn
if self.shove_pressure then
if self._last_shove_pressure and (self.shove_pressure < self._last_shove_pressure) then
self.shove_pressure = nil
self._last_shove_pressure = nil
else
self._last_shove_pressure = self.shove_pressure
self.shove_pressure = self.shove_pressure / 2
end
return mod.class.Actor.actBase(self)
end
return mod.class.Actor.actBase(self)
end
function _M:act()
......
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