Fixing painting index bug

This commit is contained in:
vandomej 2025-10-06 13:53:32 -07:00
parent 0f09ea3165
commit 9adb11deee
2 changed files with 5 additions and 2 deletions

View file

@ -102,8 +102,10 @@ func destroy_painting():
if get_painting_display().damage_deal(): if get_painting_display().damage_deal():
cancel_bidding() cancel_bidding()
get_painting_display().move_painting_to_pile(%PaintingPileDiscard) get_painting_display().move_painting_to_pile(%PaintingPileDiscard)
next_painting() if not next_painting():
turn_manager.speak_sentence("Oh nooooooo! Took too long!\nTry to make it up on the next painting!") end_auction()
else:
turn_manager.speak_sentence("Oh nooooooo! Took too long!\nTry to make it up on the next painting!")
else: else:
turn_manager.restart_turn() turn_manager.restart_turn()
turn_manager.speak_sentence("Oops! Took too long! Quickly, try again!") turn_manager.speak_sentence("Oops! Took too long! Quickly, try again!")

View file

@ -14,6 +14,7 @@ grow_vertical = 2
script = ExtResource("1_fj7yv") script = ExtResource("1_fj7yv")
[node name="CursorManager" parent="." instance=ExtResource("2_tlwt5")] [node name="CursorManager" parent="." instance=ExtResource("2_tlwt5")]
layout_mode = 0
[node name="MainMenu" parent="." instance=ExtResource("1_f3sb7")] [node name="MainMenu" parent="." instance=ExtResource("1_f3sb7")]
layout_mode = 1 layout_mode = 1