Move experience gain from species to forme.
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2020-05-22 13:43:02 +02:00
parent d3b0fc1cec
commit 92135a88eb
7 changed files with 27 additions and 31 deletions

View File

@@ -7,7 +7,7 @@ void PkmnLib::Battling::ExperienceLibrary::HandleExperienceGain(
const std::unordered_set<CreatureLib::Battling::Creature*>& opponents) const {
auto fainted = dynamic_cast<Pokemon*>(faintedMon);
auto expGain = fainted->GetPokemonSpecies()->GetExperienceGains();
auto expGain = fainted->GetForme()->GetBaseExperience();
auto level = fainted->GetLevel();
// TODO exp share