Rewrote load game screen inc. supporting multiple save files, allowed \PN and \v[42] in map names and Town Map point names

This commit is contained in:
Maruno17
2024-10-20 23:46:56 +01:00
parent 89c344dc00
commit 6152b75cb1
21 changed files with 781 additions and 60 deletions

View File

@@ -254,9 +254,10 @@ end
def pbGetMapNameFromId(id)
name = GameData::MapMetadata.try_get(id)&.name
if nil_or_empty?(name)
name = pbGetBasicMapNameFromId(id)
name.gsub!(/\\PN/, $player.name) if $player
name = pbGetBasicMapNameFromId(id) if nil_or_empty?(name)
name = name.gsub(/\\PN/, $player.name) if $player
if $game_variables
name = name.gsub(/\\v\[(\d+)\]/) { |num| $game_variables[$~[1].to_i].to_s }
end
return name
end