- New hurt system

This commit is contained in:
JailDoctor committed 2022-11-02 18:58:55 +01:00
1 parent 7ba084f89d
commit 1987267940
2 files changed
+2 -4

No files matched your search

+1 -2
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
+1 -2
View File
@@ -36,8 +36,7 @@ function zombie:update_normal()
if self.hab==abad.hab then
if aabb(abad,self) then
if abad.energia>0 then abad.energia=abad.energia-1 end
cls(3)
abad_hurt(1)
end
end