mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Made Giratina's form use a map_metadata flag "DistortionWorld" instead of a hardcoded array of map numbers
This commit is contained in:
@@ -325,7 +325,7 @@ class Game_Temp
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
# Permanently stores data of dependent events (i.e. in save files).
|
||||
# Permanently stores data of follower events (i.e. in save files).
|
||||
#===============================================================================
|
||||
class PokemonGlobalMetadata
|
||||
attr_accessor :dependentEvents # Deprecated
|
||||
|
||||
@@ -259,8 +259,9 @@ MultipleForms.register(:ROTOM, {
|
||||
|
||||
MultipleForms.register(:GIRATINA, {
|
||||
"getForm" => proc { |pkmn|
|
||||
maps = [49, 50, 51, 72, 73] # Map IDs for Origin Forme
|
||||
if pkmn.hasItem?(:GRISEOUSORB) || ($game_map && maps.include?($game_map.map_id))
|
||||
next 1 if pkmn.hasItem?(:GRISEOUSORB)
|
||||
if $game_map &&
|
||||
GameData::MapMetadata.get($game_map.map_id)&.has_flag?("DistortionWorld")
|
||||
next 1
|
||||
end
|
||||
next 0
|
||||
|
||||
Reference in New Issue
Block a user