Split metadata.txt into metadata.txt and map_metadata.txt, fixed bug when writing certain PBS files

This commit is contained in:
Maruno17
2021-10-09 23:34:45 +01:00
parent 166a289a60
commit a090f50bc5
20 changed files with 818 additions and 666 deletions

View File

@@ -33,7 +33,7 @@ class Player < Trainer
def trainer_type
if @trainer_type.is_a?(Integer)
@trainer_type = GameData::Metadata.get_player(@character_ID || 0)[0]
@trainer_type = GameData::PlayerMetadata.get(@character_ID || 1).trainer_type
end
return @trainer_type
end
@@ -90,7 +90,7 @@ class Player < Trainer
def initialize(name, trainer_type)
super
@character_ID = -1
@character_ID = 0
@outfit = 0
@badges = [false] * 8
@money = Settings::INITIAL_MONEY