Fix book feedback at configured skill cap

This commit is contained in:
Mike Klaas
2026-07-26 16:03:02 -07:00
parent 7704d160ac
commit 1e65aa70e8
+10 -1
View File
@@ -802,8 +802,17 @@ static UseItemResultCode _obj_use_book(Object* book)
increase = 150 * increase / 100;
}
bool increased = false;
for (int i = 0; i < increase; i++) {
skillAddForce(gDude, skill);
if (skillAddForce(gDude, skill) != 0) {
break;
}
increased = true;
}
if (!increased) {
messageId = 801;
}
}