chore: remove count logic that was cause for a bug before
This commit is contained in:
parent
75c2200bd8
commit
7c8428af01
|
|
@ -287,12 +287,11 @@ var complete: bool = false
|
||||||
|
|
||||||
func give_lore_feedback():
|
func give_lore_feedback():
|
||||||
var fitting_card_count: int = 0
|
var fitting_card_count: int = 0
|
||||||
var total_card_count: int = 0
|
var total_card_count: int = len(cards)
|
||||||
|
|
||||||
for child in cards:
|
for child in cards:
|
||||||
if child.has_note_attached():
|
if child.has_note_attached():
|
||||||
fitting_card_count += int(child.card_id == child.get_attached_note().parent_id)
|
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:
|
if float(fitting_card_count) / float(total_card_count) < 0.2:
|
||||||
instructions.text = "You can move on, but you may not have understood Lisa."
|
instructions.text = "You can move on, but you may not have understood Lisa."
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue