fix for case sensitivity not registering many of the terms into the journal

This commit is contained in:
onms 2026-06-27 09:00:03 -05:00
parent fba30998c4
commit 578d791176

View file

@ -1338,7 +1338,7 @@ function Window_GlossaryComplete() {
Game_Party.prototype.gainGlossaryFromText = function(text, likeFlag) {
this.getAllHiddenGlossaryList().forEach(function(item) {
if (!this.hasItem(item) && this.isAutoGlossaryWord(item)) {
if (likeFlag && !text.contains(item.name)) {
if (likeFlag && !text.toLowerCase().contains(item.name.toLowerCase())) {
return;
}
if (!likeFlag && text !== item.name) {