mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-09 22:24:58 +00:00
General tidying up
This commit is contained in:
@@ -137,92 +137,8 @@ end
|
||||
def pbGetMetadata(map_id, metadata_type)
|
||||
if map_id == 0 # Global metadata
|
||||
Deprecation.warn_method('pbGetMetadata', 'v20', 'GameData::Metadata.get.something')
|
||||
ret = GameData::Metadata.get
|
||||
case metadata_type
|
||||
when Metadata::HOME then return ret.home
|
||||
when Metadata::WILD_BATTLE_BGM then return ret.wild_battle_BGM
|
||||
when Metadata::TRAINER_BATTLE_BGM then return ret.trainer_battle_BGM
|
||||
when Metadata::WILD_VICTORY_ME then return ret.wild_victory_ME
|
||||
when Metadata::TRAINER_VICTORY_ME then return ret.trainer_victory_ME
|
||||
when Metadata::WILD_CAPTURE_ME then return ret.wild_capture_ME
|
||||
when Metadata::SURF_BGM then return ret.surf_BGM
|
||||
when Metadata::BICYCLE_BGM then return ret.bicycle_BGM
|
||||
when Metadata::PLAYER_A then return ret.player_A
|
||||
when Metadata::PLAYER_B then return ret.player_B
|
||||
when Metadata::PLAYER_C then return ret.player_C
|
||||
when Metadata::PLAYER_D then return ret.player_D
|
||||
when Metadata::PLAYER_E then return ret.player_E
|
||||
when Metadata::PLAYER_F then return ret.player_F
|
||||
when Metadata::PLAYER_G then return ret.player_G
|
||||
when Metadata::PLAYER_H then return ret.player_H
|
||||
end
|
||||
else # Map metadata
|
||||
Deprecation.warn_method('pbGetMetadata', 'v20', 'GameData::MapMetadata.get(map_id).something')
|
||||
ret = GameData::MapMetadata.get(map_id)
|
||||
case metadata_type
|
||||
when MapMetadata::OUTDOOR then return ret.outdoor_map
|
||||
when MapMetadata::SHOW_AREA then return ret.announce_location
|
||||
when MapMetadata::BICYCLE then return ret.can_bicycle
|
||||
when MapMetadata::BICYCLE_ALWAYS then return ret.always_bicycle
|
||||
when MapMetadata::HEALING_SPOT then return ret.teleport_destination
|
||||
when MapMetadata::WEATHER then return ret.weather
|
||||
when MapMetadata::MAP_POSITION then return ret.town_map_position
|
||||
when MapMetadata::DIVE_MAP then return ret.dive_map_id
|
||||
when MapMetadata::DARK_MAP then return ret.dark_map
|
||||
when MapMetadata::SAFARI_MAP then return ret.safari_map
|
||||
when MapMetadata::SNAP_EDGES then return ret.snap_edges
|
||||
when MapMetadata::DUNGEON then return ret.random_dungeon
|
||||
when MapMetadata::BATTLE_BACK then return ret.battle_background
|
||||
when MapMetadata::WILD_BATTLE_BGM then return ret.wild_battle_BGM
|
||||
when MapMetadata::TRAINER_BATTLE_BGM then return ret.trainer_battle_BGM
|
||||
when MapMetadata::WILD_VICTORY_ME then return ret.wild_victory_ME
|
||||
when MapMetadata::TRAINER_VICTORY_ME then return ret.trainer_victory_ME
|
||||
when MapMetadata::WILD_CAPTURE_ME then return ret.wild_capture_ME
|
||||
when MapMetadata::MAP_SIZE then return ret.town_map_size
|
||||
when MapMetadata::ENVIRONMENT then return ret.battle_environment
|
||||
end
|
||||
end
|
||||
return nil
|
||||
end
|
||||
|
||||
module Metadata
|
||||
HOME = 1
|
||||
WILD_BATTLE_BGM = 2
|
||||
TRAINER_BATTLE_BGM = 3
|
||||
WILD_VICTORY_ME = 4
|
||||
TRAINER_VICTORY_ME = 5
|
||||
WILD_CAPTURE_ME = 6
|
||||
SURF_BGM = 7
|
||||
BICYCLE_BGM = 8
|
||||
PLAYER_A = 9
|
||||
PLAYER_B = 10
|
||||
PLAYER_C = 11
|
||||
PLAYER_D = 12
|
||||
PLAYER_E = 13
|
||||
PLAYER_F = 14
|
||||
PLAYER_G = 15
|
||||
PLAYER_H = 16
|
||||
end
|
||||
|
||||
module MapMetadata
|
||||
OUTDOOR = 1
|
||||
SHOW_AREA = 2
|
||||
BICYCLE = 3
|
||||
BICYCLE_ALWAYS = 4
|
||||
HEALING_SPOT = 5
|
||||
WEATHER = 6
|
||||
MAP_POSITION = 7
|
||||
DIVE_MAP = 8
|
||||
DARK_MAP = 9
|
||||
SAFARI_MAP = 10
|
||||
SNAP_EDGES = 11
|
||||
DUNGEON = 12
|
||||
BATTLE_BACK = 13
|
||||
WILD_BATTLE_BGM = 14
|
||||
TRAINER_BATTLE_BGM = 15
|
||||
WILD_VICTORY_ME = 16
|
||||
TRAINER_VICTORY_ME = 17
|
||||
WILD_CAPTURE_ME = 18
|
||||
MAP_SIZE = 19
|
||||
ENVIRONMENT = 20
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user