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

Method SetHp

src/game_actor.cpp:1142–1145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1140}
1141
1142int Game_Actor::SetHp(int hp) {
1143 data.current_hp = Utils::Clamp(hp, 0, GetMaxHp());
1144 return data.current_hp;
1145}
1146
1147int Game_Actor::SetSp(int sp) {
1148 data.current_sp = Utils::Clamp(sp, 0, GetMaxSp());

Callers 7

RemoveStatesFunction · 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