fix: evaluations now count correctly

This commit is contained in:
tiger tiger tiger 2026-01-21 23:36:11 +01:00
parent b5a4bd2896
commit 75c2200bd8
1 changed files with 4 additions and 5 deletions

View File

@ -289,11 +289,10 @@ func give_lore_feedback():
var fitting_card_count: int = 0
var total_card_count: int = 0
for child in dropzone.get_children():
if child is Card:
if child.has_note_attached():
fitting_card_count += int(child.card_id == child.get_attached_note().parent_id)
total_card_count += 1
for child in cards:
if child.has_note_attached():
fitting_card_count += int(child.card_id == child.get_attached_note().parent_id)
total_card_count += 1
if float(fitting_card_count) / float(total_card_count) < 0.2:
instructions.text = "You can move on, but you may not have understood Lisa."