From e18ae0e47305faa3fa49c0382e9b2617e12135ce Mon Sep 17 00:00:00 2001 From: betalars Date: Wed, 7 May 2025 19:58:56 +0200 Subject: [PATCH] cleanup #141 enhance print statement consistency --- src/logic-scenes/card_picker/card_picker.gd | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/logic-scenes/card_picker/card_picker.gd b/src/logic-scenes/card_picker/card_picker.gd index cbf936f..6dbd8a4 100644 --- a/src/logic-scenes/card_picker/card_picker.gd +++ b/src/logic-scenes/card_picker/card_picker.gd @@ -49,8 +49,6 @@ var curr_selection_id: int = -1: options[curr_selection_id].highlighted = true 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)