resolve card picking issue
This commit is contained in:
parent
b8e1e6ff0f
commit
7cede4f0ac
|
|
@ -103,9 +103,9 @@ func fill_post_slots():
|
||||||
options[i].owner = self
|
options[i].owner = self
|
||||||
|
|
||||||
func _input(event):
|
func _input(event):
|
||||||
if event.is_action_pressed("ui_end"):
|
#if event.is_action_pressed("ui_end"):
|
||||||
fill_card_slots(3)
|
# fill_card_slots(3)
|
||||||
selection_state = CARDS
|
# selection_state = CARDS
|
||||||
|
|
||||||
if has_stage:
|
if has_stage:
|
||||||
if !_input_locked:
|
if !_input_locked:
|
||||||
|
|
@ -162,6 +162,7 @@ func pick(id: int):
|
||||||
print("Winning ID ", id)
|
print("Winning ID ", id)
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
winning_id = 2 if id == 0 else 0
|
||||||
Steam.setAchievement("FIGHT_BACK")
|
Steam.setAchievement("FIGHT_BACK")
|
||||||
Steam.storeStats()
|
Steam.storeStats()
|
||||||
|
|
||||||
|
|
@ -194,7 +195,6 @@ func transition():
|
||||||
for card in output:
|
for card in output:
|
||||||
out_str.append(card.name)
|
out_str.append(card.name)
|
||||||
cards_picked.emit(out_str)
|
cards_picked.emit(out_str)
|
||||||
print(out_str)
|
|
||||||
selection_state = DONE
|
selection_state = DONE
|
||||||
State.leave_stage(self)
|
State.leave_stage(self)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue