From 480d9cf4fa54a496b12c6d77755d91755ebb5314 Mon Sep 17 00:00:00 2001 From: freewu32 <2217332562@qq.com> Date: Sat, 5 Sep 2020 15:32:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=95=86=E5=BA=97=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E5=A2=9E=E5=8A=A0=E4=BD=BF=E7=94=A8=E6=AC=A1=E6=95=B0?= =?UTF-8?q?=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/shop/Shop.gd | 3 +++ 1 file changed, 3 insertions(+) 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)