mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
Created and implemented GameData::TrainerType, fixed free text entry text mispositioning
This commit is contained in:
@@ -685,17 +685,12 @@ def pbGetPlayerGraphic
|
||||
end
|
||||
|
||||
def pbGetPlayerTrainerType
|
||||
id = $PokemonGlobal.playerID
|
||||
return 0 if id<0 || id>=8
|
||||
meta = GameData::Metadata.get_player(id)
|
||||
return 0 if !meta
|
||||
return meta[0]
|
||||
meta = GameData::Metadata.get_player($PokemonGlobal.playerID)
|
||||
return (meta) ? meta[0] : nil
|
||||
end
|
||||
|
||||
def pbGetTrainerTypeGender(trainertype)
|
||||
data = pbGetTrainerTypeData(trainertype)
|
||||
return data[7] if data && data[7]
|
||||
return 2 # Gender unknown
|
||||
def pbGetTrainerTypeGender(trainer_type)
|
||||
return GameData::TrainerType.get(trainer_type).gender
|
||||
end
|
||||
|
||||
def pbTrainerName(name=nil,outfit=0)
|
||||
|
||||
Reference in New Issue
Block a user