Fixing painting index bug
This commit is contained in:
parent
0f09ea3165
commit
9adb11deee
2 changed files with 5 additions and 2 deletions
|
|
@ -102,7 +102,9 @@ 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():
|
||||||
|
end_auction()
|
||||||
|
else:
|
||||||
turn_manager.speak_sentence("Oh nooooooo! Took too long!\nTry to make it up on the next painting!")
|
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()
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue