We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 5f2445c + 5fbfcd4 commit 7a78e59Copy full SHA for 7a78e59
2018/04-24-finite-state-machine/player/health/health.gd
@@ -44,7 +44,7 @@ func take_damage(amount, effect=null):
44
45
func heal(amount):
46
health += amount
47
- health = max(health, max_health)
+ health = min(health, max_health)
48
emit_signal("health_changed", health)
49
# print("%s got healed by %s points. Health: %s/%s" % [get_name(), amount, health, max_health])
50
0 commit comments