diff --git a/src/shop/Shop.gd b/src/shop/Shop.gd index 53837ec..60b6d98 100644 --- a/src/shop/Shop.gd +++ b/src/shop/Shop.gd @@ -52,14 +52,17 @@ func _on_CloseDialog_pressed(): func _on_AddHp_pressed(): if enough_money_to_pay(): player.hp += added_hp + used_count += 1 func _on_AddAtk_pressed(): if enough_money_to_pay(): player.atk += added_atk + used_count += 1 func _on_AddDef_pressed(): if enough_money_to_pay(): player.def += added_def + used_count += 1 func get_used_money() -> int: return init_money * (used_count + 1)