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

Water breathing is not permanent now

git-svn-id: http://svn.net-core.org/repos/t-engine4@2307 51575b47-30f0-44d4-a5cc-537603b46e54
parent d9fcb0c4
No related branches found
No related tags found
No related merge requests found
......@@ -314,7 +314,7 @@ function _M:act()
-- Suffocate ?
local air_level, air_condition = game.level.map:checkEntity(self.x, self.y, Map.TERRAIN, "air_level"), game.level.map:checkEntity(self.x, self.y, Map.TERRAIN, "air_condition")
if air_level then
if not air_condition or not self.can_breath[air_condition] then
if not air_condition or not self.can_breath[air_condition] or self.can_breath[air_condition] <= 0 then
self:suffocate(-air_level, self)
end
end
......
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