- New hurt system

This commit is contained in:
2022-11-02 18:58:55 +01:00
parent 7ba084f89d
commit 1987267940
2 changed files with 2 additions and 4 deletions

View File

@@ -42,8 +42,7 @@ function fireball:update()
if fireball.hab==abad.hab then if fireball.hab==abad.hab then
if aabb(fireball,abad) and abad.update~=abad_state_crouch then if aabb(fireball,abad) and abad.update~=abad_state_crouch then
fireball.hab=-1 fireball.hab=-1
if abad.energia>0 then abad.energia=abad.energia-1 end abad_hurt(1)
cls(3)
end end
end end
end end

View File

@@ -36,8 +36,7 @@ function zombie:update_normal()
if self.hab==abad.hab then if self.hab==abad.hab then
if aabb(abad,self) then if aabb(abad,self) then
if abad.energia>0 then abad.energia=abad.energia-1 end abad_hurt(1)
cls(3)
end end
end end