- 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 aabb(fireball,abad) and abad.update~=abad_state_crouch then
fireball.hab=-1
if abad.energia>0 then abad.energia=abad.energia-1 end
cls(3)
abad_hurt(1)
end
end
end