Added classes GameData::Environment and GameData::BattleTerrain

This commit is contained in:
Maruno17
2021-02-21 18:37:26 +00:00
parent c16311326c
commit 63e640c79b
23 changed files with 368 additions and 258 deletions

View File

@@ -172,9 +172,9 @@ MultipleForms.register(:KYOGRE,{
MultipleForms.register(:BURMY,{
"getFormOnCreation" => proc { |pkmn|
case pbGetEnvironment
when PBEnvironment::Rock, PBEnvironment::Sand, PBEnvironment::Cave
when :Rock, :Sand, :Cave
next 1 # Sandy Cloak
when PBEnvironment::None
when :None
next 2 # Trash Cloak
else
next 0 # Plant Cloak
@@ -183,9 +183,9 @@ MultipleForms.register(:BURMY,{
"getFormOnLeavingBattle" => proc { |pkmn,battle,usedInBattle,endBattle|
next if !endBattle || !usedInBattle
case battle.environment
when PBEnvironment::Rock, PBEnvironment::Sand, PBEnvironment::Cave
when :Rock, :Sand, :Cave
next 1 # Sandy Cloak
when PBEnvironment::None
when :None
next 2 # Trash Cloak
else
next 0 # Plant Cloak
@@ -196,9 +196,9 @@ MultipleForms.register(:BURMY,{
MultipleForms.register(:WORMADAM,{
"getFormOnCreation" => proc { |pkmn|
case pbGetEnvironment
when PBEnvironment::Rock, PBEnvironment::Sand, PBEnvironment::Cave
when :Rock, :Sand, :Cave
next 1 # Sandy Cloak
when PBEnvironment::None
when :None
next 2 # Trash Cloak
else
next 0 # Plant Cloak