remove debug statements

This commit is contained in:
SondreElg
2025-10-05 10:02:27 +02:00
parent c60b4e0e52
commit 52d8814e47

View File

@@ -24,9 +24,6 @@ var discard_pile = [];
func _ready() -> void:
drawpile.shuffle();
print_debug("Shuffled deck, drawpile size: " + str(drawpile.size()))
print_debug("Empty card slots: " + str(hand_size) + " - " + str(get_cards().size()) + " = " + str(hand_size - get_cards().size()))
# print_debug("Drawing initial hand")
for i in range(hand_size - get_cards().size()):
draw_card()
@@ -45,8 +42,7 @@ func play_card():
card.activate(get_node(world), get_node(player));
if card.ammo <= 0:
discard(false);
print(active_card_index)
func discard(do_ability = true):
var cards = get_cards();
@@ -68,7 +64,6 @@ func cycle_card(index_shift):
draw_card();
func draw_card():
print_debug("Drawing card")
var held_card_count = get_cards().size()
if held_card_count == 0:
shuffle_deck();
@@ -77,7 +72,6 @@ func draw_card():
var card = drawpile.pop_back();
if active_card_index == -1:
active_card_index = 0;
print_debug("Instantiating card from drawpile, remaining size: " + str(drawpile.size()))
var empty_slots = get_card_container().get_children().filter(func(slot): return not slot.has_method("get_node") or slot.get_node_or_null("Card") == null)
if empty_slots.size() > 0:
empty_slots[0].add_child(card)