mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 22:54:59 +00:00
Rearranged some script files
This commit is contained in:
25
Data/Scripts/012_Battle/003_PBBattleTerrains.rb
Normal file
25
Data/Scripts/012_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