MCPcopy Create free account
hub / github.com/EasyRPG/Player / ChangeSp

Method ChangeSp

src/game_battler.cpp:506–510  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

504}
505
506int Game_Battler::ChangeSp(int sp) {
507 const auto prev_sp = GetSp();
508 const auto new_sp = SetSp(prev_sp + sp);
509 return new_sp - prev_sp;
510}
511
512int Game_Battler::GetMaxSp() const {
513 return GetBaseMaxSp();

Callers 6

ApplyConditionsMethod · 0.95
ApplySpEffectMethod · 0.80
vStartMethod · 0.80
ApplyStateDamageMethod · 0.80
game_actor.cppFile · 0.80
game_enemy.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected