| 1116 | } |
| 1117 | |
| 1118 | static int ClampMaxSpMod(int sp, const Game_Actor* actor) { |
| 1119 | auto limit = actor->MaxSpValue(); |
| 1120 | return Utils::Clamp(sp, -limit, limit); |
| 1121 | } |
| 1122 | |
| 1123 | static int ClampStatMod(int value, const Game_Actor* actor) { |
| 1124 | auto limit = actor->MaxStatBaseValue(); |
no test coverage detected