mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 13:15:01 +00:00
26 lines
578 B
Ruby
26 lines
578 B
Ruby
# These are in-battle terrain effects caused by moves like Electric Terrain.
|
|
begin
|
|
module PBBattleTerrains
|
|
None = 0
|
|
Electric = 1
|
|
Grassy = 2
|
|
Misty = 3
|
|
Psychic = 4
|
|
|
|
def self.animationName(terrain)
|
|
case terrain
|
|
when Electric then return "ElectricTerrain"
|
|
when Grassy then return "GrassyTerrain"
|
|
when Misty then return "MistyTerrain"
|
|
when Psychic then return "PsychicTerrain"
|
|
end
|
|
return nil
|
|
end
|
|
end
|
|
|
|
rescue Exception
|
|
if $!.is_a?(SystemExit) || "#{$!.class}"=="Reset"
|
|
raise $!
|
|
end
|
|
end
|