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

Method SetTotalEncounterRate

src/game_player.cpp:753–756  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

751}
752
753void Game_Player::SetTotalEncounterRate(int rate) {
754 last_encounter_idx = 0;
755 data()->total_encounter_rate = rate;
756}
757
758int Game_Player::GetDefaultPanX() {
759 return static_cast<int>(std::ceil(static_cast<float>(Player::screen_width) / TILE_SIZE / 2) - 1) * SCREEN_TILE_SIZE;

Callers 2

testPlayerFunction · 0.80
game_character.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected