cleanup #141 enhance print statement consistency
This commit is contained in:
parent
d9924e5d49
commit
e18ae0e473
|
|
@ -50,8 +50,6 @@ var curr_selection_id: int = -1:
|
|||
else:
|
||||
curr_selection_id = new_id
|
||||
|
||||
print(curr_selection_id)
|
||||
|
||||
var output:Array = []
|
||||
var options:Array = []
|
||||
|
||||
|
|
@ -145,7 +143,7 @@ func _input(event):
|
|||
|
||||
|
||||
func pick(id: int):
|
||||
print("PICK")
|
||||
print("%s picked card %s at id %d" % [name, options[id].text, id])
|
||||
if id == -1:
|
||||
curr_selection_id = 0
|
||||
return
|
||||
|
|
@ -172,17 +170,15 @@ func pick(id: int):
|
|||
options.erase(options)
|
||||
anim_players[i].play("unshuffle")
|
||||
anim_players.remove_at(i)
|
||||
print("yeet sibling ", i)
|
||||
print("Removed StickyNote %s from options pool" % option.sticky_id)
|
||||
i += 1
|
||||
|
||||
var winning_id
|
||||
print(options[1].text)
|
||||
print("Randomly selected card %s" % options[1].text)
|
||||
if !(options[1].text == "void" and not id == 1):
|
||||
randomize()
|
||||
winning_id = randi() % options.size()
|
||||
|
||||
print("Winning ID ", id)
|
||||
|
||||
else:
|
||||
winning_id = 2 if id == 0 else 0
|
||||
Steam.setAchievement("FIGHT_BACK")
|
||||
|
|
@ -238,7 +234,7 @@ func handle_mouse_button(button_event: InputEventMouseButton, new_selection: Nod
|
|||
pick(options.find(new_selection))
|
||||
|
||||
func pick_cards(id: int, repeat: bool):
|
||||
print(name, id, repeat)
|
||||
print("Reached actor %s in sequence %s. Is%s repeating." % [name, Scenes.id.keys()[id], " not" if repeat else ""])
|
||||
if not repeat:
|
||||
Input.mouse_mode = Input.MOUSE_MODE_VISIBLE
|
||||
fill_card_slots(id)
|
||||
|
|
|
|||
Loading…
Reference in New Issue