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

Function ClampMaxSpMod

src/game_actor.cpp:1118–1121  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers 1

SetBaseMaxSpMethod · 0.85

Calls 1

MaxSpValueMethod · 0.45

Tested by

no test coverage detected