prog
This commit is contained in:
1 parent
346e3f0607
commit
c46afdac76
5 files changed
+48
-3
No files matched your search
@@ -65,7 +65,7 @@ func _init(params:Dictionary) -> void:
|
||||
self.mp = self.maxMp
|
||||
|
||||
func damage(amount:int, crit:bool) -> void:
|
||||
assert(amount > 0)
|
||||
assert(amount >= 0)
|
||||
if status == Status.DEAD:
|
||||
return
|
||||
health = max(health - amount, 0)
|
||||
|
||||
Reference in new issue
Block a user