| 1133 | } |
| 1134 | |
| 1135 | void Game_Actor::SetBaseMaxSp(int maxsp) { |
| 1136 | int new_sp_mod = data.sp_mod + (maxsp - GetBaseMaxSp()); |
| 1137 | data.sp_mod = ClampMaxSpMod(new_sp_mod, this); |
| 1138 | |
| 1139 | SetSp(data.current_sp); |
| 1140 | } |
| 1141 | |
| 1142 | int Game_Actor::SetHp(int hp) { |
| 1143 | data.current_hp = Utils::Clamp(hp, 0, GetMaxHp()); |