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

Method SetBaseSpi

src/game_actor.cpp:1162–1165  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1160}
1161
1162void Game_Actor::SetBaseSpi(int spi) {
1163 int new_spirit_mod = data.spirit_mod + (spi - GetBaseSpi());
1164 data.spirit_mod = ClampStatMod(new_spirit_mod, this);
1165}
1166
1167void Game_Actor::SetBaseAgi(int agi) {
1168 int new_agility_mod = data.agility_mod + (agi - GetBaseAgi());

Callers 5

testLimitsFunction · 0.80
game_actor.cppFile · 0.80
MakeActorFunction · 0.80
SetupFunction · 0.80

Calls 1

ClampStatModFunction · 0.85

Tested by 1

SetupFunction · 0.64