mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-07 21:24:59 +00:00
Moved global/map metadata constants and schema into modules
This commit is contained in:
@@ -683,7 +683,7 @@ def pbDebugMenuActions(cmd="",sprites=nil,viewport=nil)
|
||||
when "setplayer"
|
||||
limit = 0
|
||||
for i in 0...8
|
||||
meta = pbGetMetadata(0,MetadataPlayerA+i)
|
||||
meta = pbGetMetadata(0,Metadata::PLAYER_A+i)
|
||||
if !meta
|
||||
limit = i; break
|
||||
end
|
||||
|
||||
@@ -197,12 +197,12 @@ def pbSerializeMetadata(metadata,mapinfos)
|
||||
f.write("\#-------------------------------\r\n")
|
||||
f.write(sprintf("[%03d]\r\n",i))
|
||||
if i==0
|
||||
types = PokemonMetadata::GlobalTypes
|
||||
types = Metadata::SCHEMA
|
||||
else
|
||||
if mapinfos && mapinfos[i]
|
||||
f.write(sprintf("# %s\r\n",mapinfos[i].name))
|
||||
end
|
||||
types = PokemonMetadata::NonGlobalTypes
|
||||
types = MapMetadata::SCHEMA
|
||||
end
|
||||
for key in types.keys
|
||||
schema = types[key]
|
||||
|
||||
Reference in New Issue
Block a user