mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 22:24:58 +00:00
Initial commit
This commit is contained in:
25
Data/Scripts/011_Battle/003_PBBattleTerrains.rb
Normal file
25
Data/Scripts/011_Battle/003_PBBattleTerrains.rb
Normal file
@@ -0,0 +1,25 @@
|
||||
# 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; return "ElectricTerrain"
|
||||
when Grassy; return "GrassyTerrain"
|
||||
when Misty; return "MistyTerrain"
|
||||
when Psychic; return "PsychicTerrain"
|
||||
end
|
||||
return nil
|
||||
end
|
||||
end
|
||||
|
||||
rescue Exception
|
||||
if $!.is_a?(SystemExit) || "#{$!.class}"=="Reset"
|
||||
raise $!
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user