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

Function ClampMaxHpMod

src/game_actor.cpp:1113–1116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1111}
1112
1113static int ClampMaxHpMod(int hp, const Game_Actor* actor) {
1114 auto limit = actor->MaxHpValue();
1115 return Utils::Clamp(hp, -limit, limit);
1116}
1117
1118static int ClampMaxSpMod(int sp, const Game_Actor* actor) {
1119 auto limit = actor->MaxSpValue();

Callers 1

SetBaseMaxHpMethod · 0.85

Calls 1

MaxHpValueMethod · 0.45

Tested by

no test coverage detected