fix reverse logic in level up stats math (#4521)

now placeholder data is the corrected calculated percent of vocab and grammar gained overall, and not an unreasonable number
This commit is contained in:
avashilling 2025-10-28 09:25:52 -04:00 committed by GitHub
parent 6db4c6aaba
commit 84e6f8076d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -75,8 +75,8 @@ class LevelUpManager {
prevVocab = lastSummary.levelVocabConstructs!;
prevGrammar = lastSummary.levelGrammarConstructs!;
} else {
prevGrammar = (nextGrammar / prevLevel).round();
prevVocab = (nextVocab / prevLevel).round();
prevGrammar = nextGrammar - (nextGrammar / prevLevel).round();
prevVocab = nextVocab - (nextVocab / prevLevel).round();
}
}
}