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

Method SetSp

src/game_actor.cpp:1147–1150  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1145}
1146
1147int Game_Actor::SetSp(int sp) {
1148 data.current_sp = Utils::Clamp(sp, 0, GetMaxSp());
1149 return data.current_sp;
1150}
1151
1152void Game_Actor::SetBaseAtk(int atk) {
1153 int new_attack_mod = data.attack_mod + (atk - GetBaseAtk());

Callers 8

CommandChangeSPMethod · 0.45
SetupBattleTestMethod · 0.45
UseSkillMethod · 0.45
enemyai.cppFile · 0.45
MakeActorFunction · 0.45
SetupFunction · 0.45

Calls

no outgoing calls

Tested by 1

SetupFunction · 0.36