mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-06 06:01:46 +00:00
updates to version 6.1
This commit is contained in:
@@ -48,7 +48,7 @@ module GameData
|
||||
end
|
||||
|
||||
if !self::DATA.has_key?(other)
|
||||
echoln _INTL("Unknown ID {1}.", other)
|
||||
#echoln _INTL("Unknown ID {1}.", other)
|
||||
return self::get(:PIKACHU)
|
||||
end
|
||||
|
||||
@@ -266,6 +266,7 @@ module GameData
|
||||
TrainerType.load
|
||||
Trainer.load
|
||||
TrainerModern.load
|
||||
TrainerExpert.load
|
||||
Metadata.load
|
||||
MapMetadata.load
|
||||
end
|
||||
|
||||
@@ -218,6 +218,14 @@ module GameData
|
||||
return @id_number > Settings::NB_POKEMON
|
||||
end
|
||||
|
||||
def get_body_species
|
||||
return @species
|
||||
end
|
||||
|
||||
def get_head_species
|
||||
return @species
|
||||
end
|
||||
|
||||
def hasType?(type)
|
||||
type = GameData::Type.get(type).id
|
||||
return self.types.include?(type)
|
||||
|
||||
14
Data/Scripts/010_Data/002_PBS data/013_TrainerExpert.rb
Normal file
14
Data/Scripts/010_Data/002_PBS data/013_TrainerExpert.rb
Normal file
@@ -0,0 +1,14 @@
|
||||
module GameData
|
||||
class TrainerExpert < Trainer
|
||||
DATA_FILENAME = "trainers_expert.dat"
|
||||
end
|
||||
end
|
||||
|
||||
#===============================================================================
|
||||
# Deprecated methods
|
||||
#===============================================================================
|
||||
# @deprecated This alias is slated to be removed in v20.
|
||||
def pbGetTrainerData(tr_type, tr_name, tr_version = 0)
|
||||
Deprecation.warn_method('pbGetTrainerData', 'v20', 'GameData::Trainer.get(tr_type, tr_name, tr_version)')
|
||||
return GameData::Trainer.get(tr_type, tr_name, tr_version)
|
||||
end
|
||||
Reference in New Issue
Block a user