mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
59 lines
1.2 KiB
Ruby
59 lines
1.2 KiB
Ruby
# These are in-battle terrain effects caused by moves like Electric Terrain.
|
|
module GameData
|
|
class BattleTerrain
|
|
attr_reader :id
|
|
attr_reader :real_name
|
|
attr_reader :animation
|
|
|
|
DATA = {}
|
|
|
|
extend ClassMethodsSymbols
|
|
include InstanceMethods
|
|
|
|
def self.load; end
|
|
def self.save; end
|
|
|
|
def initialize(hash)
|
|
@id = hash[:id]
|
|
@real_name = hash[:name] || "Unnamed"
|
|
@animation = hash[:animation]
|
|
end
|
|
|
|
# @return [String] the translated name of this battle terrain
|
|
def name
|
|
return _INTL(@real_name)
|
|
end
|
|
end
|
|
end
|
|
|
|
#===============================================================================
|
|
|
|
GameData::BattleTerrain.register({
|
|
:id => :None,
|
|
:name => _INTL("None")
|
|
})
|
|
|
|
GameData::BattleTerrain.register({
|
|
:id => :Electric,
|
|
:name => _INTL("Electric"),
|
|
:animation => "ElectricTerrain"
|
|
})
|
|
|
|
GameData::BattleTerrain.register({
|
|
:id => :Grassy,
|
|
:name => _INTL("Grassy"),
|
|
:animation => "GrassyTerrain"
|
|
})
|
|
|
|
GameData::BattleTerrain.register({
|
|
:id => :Misty,
|
|
:name => _INTL("Misty"),
|
|
:animation => "MistyTerrain"
|
|
})
|
|
|
|
GameData::BattleTerrain.register({
|
|
:id => :Psychic,
|
|
:name => _INTL("Psychic"),
|
|
:animation => "PsychicTerrain"
|
|
})
|