fix: evaluations now count correctly
This commit is contained in:
parent
b5a4bd2896
commit
75c2200bd8
|
|
@ -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."
|
||||
|
|
|
|||
Loading…
Reference in New Issue