Added class Data::Ability and made all code use symbols for abilities instead of numbers. Also added class Data::Item but it's unused.

This commit is contained in:
Maruno17
2020-11-01 20:10:28 +00:00
parent c4e69d0a2e
commit 213347b938
34 changed files with 590 additions and 345 deletions

View File

@@ -430,10 +430,10 @@ module PokemonDebugMixin
cmd = 0
loop do
abils = pkmn.getAbilityList
oldabil = PBAbilities.getName(pkmn.ability)
oldabil = (pkmn.ability) ? pkmn.ability.name : "No ability"
commands = []
for i in abils
commands.push(((i[1]<2) ? "" : "(H) ")+PBAbilities.getName(i[0]))
commands.push(((i[1]<2) ? "" : "(H) ") + Data::Ability.get(i[0]).name)
end
commands.push(_INTL("Remove override"))
msg = [_INTL("Ability {1} is natural.",oldabil),