mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Added "Name" property to map_metadata.txt, fixed map names not being translated in some cases, fixed minor things from a previous commit
This commit is contained in:
@@ -351,9 +351,10 @@ def pbGetBasicMapNameFromId(id)
|
||||
end
|
||||
|
||||
def pbGetMapNameFromId(id)
|
||||
map=pbGetBasicMapNameFromId(id)
|
||||
map.gsub!(/\\PN/,$Trainer.name) if $Trainer
|
||||
return map
|
||||
name = pbGetMessage(MessageTypes::MapNames, id)
|
||||
name = pbGetBasicMapNameFromId(id) if nil_or_empty?(name)
|
||||
name.gsub!(/\\PN/, $Trainer.name) if $Trainer
|
||||
return name
|
||||
end
|
||||
|
||||
def pbCsvField!(str)
|
||||
|
||||
Reference in New Issue
Block a user