diff options
author | Daniel Weipert <git@mail.dweipert.de> | 2024-10-24 18:31:08 +0200 |
---|---|---|
committer | Daniel Weipert <git@mail.dweipert.de> | 2024-10-24 18:31:08 +0200 |
commit | a495681453c97578cc4a408d6919c6879524a603 (patch) | |
tree | 649c813cf26370a6ae762038b46c8e5fb075ea64 /Stages/Wintermaul/wintermaul.gd | |
parent | 6db6465d1b938ec494cd66c9984bff5cc14bde11 (diff) |
next commit
Diffstat (limited to 'Stages/Wintermaul/wintermaul.gd')
-rw-r--r-- | Stages/Wintermaul/wintermaul.gd | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Stages/Wintermaul/wintermaul.gd b/Stages/Wintermaul/wintermaul.gd index b638c97..9219a29 100644 --- a/Stages/Wintermaul/wintermaul.gd +++ b/Stages/Wintermaul/wintermaul.gd @@ -67,6 +67,12 @@ func _ready(): # initialize lives display update_lives("top", 0) update_lives("bottom", 0) + + %HUD.attack_value_changed.connect(func(value: int): + Network.update_player.rpc(Client.player.id, { + "money": -(value * 10), + }) + ) func _process(_delta: float) -> void: |