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
|
||||
|
||||
func _input(event):
|
||||
if event.is_action_pressed("ui_end"):
|
||||
fill_card_slots(3)
|
||||
selection_state = CARDS
|
||||
#if event.is_action_pressed("ui_end"):
|
||||
# fill_card_slots(3)
|
||||
# selection_state = CARDS
|
||||
|
||||
if has_stage:
|
||||
if !_input_locked:
|
||||
|
|
@ -162,6 +162,7 @@ func pick(id: int):
|
|||
print("Winning ID ", id)
|
||||
|
||||
else:
|
||||
winning_id = 2 if id == 0 else 0
|
||||
Steam.setAchievement("FIGHT_BACK")
|
||||
Steam.storeStats()
|
||||
|
||||
|
|
@ -194,7 +195,6 @@ func transition():
|
|||
for card in output:
|
||||
out_str.append(card.name)
|
||||
cards_picked.emit(out_str)
|
||||
print(out_str)
|
||||
selection_state = DONE
|
||||
State.leave_stage(self)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue