diff options
author | Victor Andrade de Almeida <vct.a.almeida@gmail.com> | 2022-07-17 14:17:53 -0300 |
---|---|---|
committer | Victor Andrade de Almeida <vct.a.almeida@gmail.com> | 2022-07-17 14:18:05 -0300 |
commit | ca8f5b86ea94328a755a1a181ee5a0a6736c6536 (patch) | |
tree | 4d43cfb093c347d288ed91de6f7fc4841b022aac /Scenes/PlateDamage.gd | |
parent | 2514718e386d2210c374bc42fbab704c535b9a83 (diff) | |
download | gamejam-gmtk-2022-ca8f5b86ea94328a755a1a181ee5a0a6736c6536.tar.gz gamejam-gmtk-2022-ca8f5b86ea94328a755a1a181ee5a0a6736c6536.tar.bz2 gamejam-gmtk-2022-ca8f5b86ea94328a755a1a181ee5a0a6736c6536.zip |
Add damage label
Diffstat (limited to 'Scenes/PlateDamage.gd')
-rw-r--r-- | Scenes/PlateDamage.gd | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Scenes/PlateDamage.gd b/Scenes/PlateDamage.gd index 76601b9..a51e7c2 100644 --- a/Scenes/PlateDamage.gd +++ b/Scenes/PlateDamage.gd @@ -2,8 +2,10 @@ extends Plate func activate(entity : Entity, dungeon): if entity is Player: + var damage = int(entity.get_top()) entity.add_action("cor_damage", [0.2]) - Global.turns -= int(entity.get_top()) + dungeon.damage_player(damage) + Global.turns -= damage return if entity is Monster: |