Fix error when checking global or separate exp distribution
MR Description
- Aethestode reported : "So, I have turned on the switch to pre-gen8 exp share. However, I noticed if I don't equip EXP Share, all party pokemon will receive exp even when I have turned on the switch."
Things to know
-
$game_switches[Yuki::Sw::BT_HardExp] = true
to set the switch to true -
$game_switches[Yuki::Sw::BT_HardExp] = false
to set the switch to false
Tests to realize
Do $game_switches[Yuki::Sw::BT_HardExp]
&& S.MI.add_item(:exp_share)
-
If $game_switches[Yuki::Sw::BT_HardExp]
returnfalse
: Everyone gains experience -
If $game_switches[Yuki::Sw::BT_HardExp]
returntrue
: Only those who take part in combat gain experience -
If $game_switches[Yuki::Sw::BT_HardExp]
returntrue
and if a pokémon has Multi-Exp, it will gain experience even if it doesn't take part in the fight.
The error has been reported here: https://discord.com/channels/143824995867557888/1122374014116040734
Edited by Zøzo