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

Method GetMaxLevel

src/game_actor.cpp:747–753  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

745}
746
747int Game_Actor::GetMaxLevel() const {
748 int max_level = Player::IsRPG2k() ? max_level_2k : max_level_2k3;
749 if (lcf::Data::system.easyrpg_max_level > -1) {
750 max_level = lcf::Data::system.easyrpg_max_level;
751 }
752 return Utils::Clamp<int32_t>(max_level, 1, dbActor->final_level);
753}
754
755void Game_Actor::SetExp(int _exp) {
756 data.exp = Utils::Clamp<int32_t>(_exp, 0, MaxExpValue());

Callers 2

vUpdateMethod · 0.80
game_actor.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected