mirror of
https://github.com/fallout2-ce/fallout2-ce.git
synced 2026-07-27 16:47:11 -07:00
Fix book feedback at configured skill cap
This commit is contained in:
+10
-1
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user