mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-11 15:15:00 +00:00
update 6.7
This commit is contained in:
@@ -567,7 +567,7 @@ end
|
||||
#party: array of pokemon team
|
||||
# [[:SPECIES,level], ... ]
|
||||
#
|
||||
def customTrainerBattle(trainerName, trainerType, party_array, default_level=50, endSpeech="", sprite_override=nil,custom_appearance=nil)
|
||||
def customTrainerBattle(trainerName, trainerType, party_array, default_level=50, endSpeech="", sprite_override=nil,custom_appearance=nil, items = [])
|
||||
|
||||
|
||||
# trainerID= "customTrainer"
|
||||
@@ -584,6 +584,7 @@ def customTrainerBattle(trainerName, trainerType, party_array, default_level=50,
|
||||
#trainer = GameData::Trainer.new(trainer_info_hash)
|
||||
trainer = NPCTrainer.new(trainerName,trainerType,sprite_override,custom_appearance)
|
||||
trainer.lose_text=endSpeech
|
||||
trainer.items = items
|
||||
party = []
|
||||
party_array.each { |pokemon|
|
||||
if pokemon.is_a?(Pokemon)
|
||||
|
||||
@@ -31,7 +31,6 @@ class PokemonEncounters
|
||||
if $game_switches && $game_switches[SWITCH_RANDOM_WILD] && $game_switches[SWITCH_RANDOM_WILD_AREA]
|
||||
mode= GameData::EncounterRandom
|
||||
end
|
||||
echoln mode
|
||||
return mode
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user