update 6.7

This commit is contained in:
chardub
2025-09-28 15:53:01 -04:00
parent ef5e023ae0
commit 318ff90d8d
696 changed files with 111759 additions and 198230 deletions

View File

@@ -85,7 +85,7 @@ def pbStartOver(gameover=false)
$game_variables[VAR_CURRENT_GYM_TYPE]=-1
$game_switches[SWITCH_LOCK_PLAYER_MOVEMENT]=false
$game_switches[SWITCH_TEAMED_WITH_ERIKA_SEWERS]=false
$PokemonTemp.enteredSecretBaseController=nil
clear_all_images()
$game_player.set_opacity(255)
$game_system.menu_disabled=false

View File

@@ -339,7 +339,7 @@ Events.onMapChange += proc { |_sender, e|
# currently_roaming = $PokemonGlobal.roamPosition.keys
# currently_roaming.each do |roamer_id|
# roamerOnCurrentMap = $PokemonGlobal.roamPosition[roamer_id] == $game_map.map_id
# echoln _INTL("{1} is on map {2}",roamer_id,$game_map.map_id)
# echoln "{1} is on map {2}",roamer_id,$game_map.map_id
# echoln $PokemonGlobal.roamPokemon
# if roamerOnCurrentMap
# next if $PokemonGlobal.roamPokemonCaught[roamer_id]
@@ -844,7 +844,7 @@ def pbItemBall(item, quantity = 1, item_name = "", canRandom = true)
pocket = item.pocket
move = item.move
if $PokemonBag.pbStoreItem(item, quantity) # If item can be picked up
meName = (item.is_key_item?) ? "Key item get" : "Item get"
meName = (item.is_key_item?) ? _INTL("Key item get") : _INTL("Item get")
text_color = item.is_key_item? ? "\\c[3]" : "\\c[1]"
if item == :LEFTOVERS
@@ -852,11 +852,11 @@ def pbItemBall(item, quantity = 1, item_name = "", canRandom = true)
elsif item.is_machine? # TM or HM
pbMessage(_INTL("\\me[{1}]You found \\c[1]{2} {3}\\c[0]!\\wtnp[30]", meName, itemname, GameData::Move.get(move).name))
elsif quantity > 1
pbMessage(_INTL("\\me[{1}]You found {2} #{text_color}{3}\\c[0]!\\wtnp[30]", meName, quantity, itemname))
pbMessage(_INTL("\\me[{1}]You found {2} {4}{3}\\c[0]!\\wtnp[30]", meName, quantity, itemname, text_color))
elsif itemname.starts_with_vowel?
pbMessage(_INTL("\\me[{1}]You found an #{text_color}{2}\\c[0]!\\wtnp[30]", meName, itemname))
pbMessage(_INTL("\\me[{1}]You found an {3}{2}\\c[0]!\\wtnp[30]", meName, itemname, text_color))
else
pbMessage(_INTL("\\me[{1}]You found a #{text_color}{2}\\c[0]!\\wtnp[30]", meName, itemname))
pbMessage(_INTL("\\me[{1}]You found a {3}{2}\\c[0]!\\wtnp[30]", meName, itemname, text_color))
end
pbMessage(_INTL("You put the {1} away\\nin the <icon=bagPocket{2}>\\c[1]{3} Pocket\\c[0].",
itemname, pocket, PokemonBag.pocketNames()[pocket]))
@@ -907,7 +907,7 @@ def pbReceiveItem(item, quantity = 1, item_name = "", music = nil, canRandom = t
itemname = (quantity > 1) ? item.name_plural : item.name
pocket = item.pocket
move = item.move
meName = (item.is_key_item?) ? "Key item get" : "Item get"
meName = (item.is_key_item?) ? _INTL("Key item get") : _INTL("Item get")
text_color = item.is_key_item? ? "\\c[3]" : "\\c[1]"
if item == :LEFTOVERS || item == :MUSHROOMSPORES
pbMessage(_INTL("\\me[{1}]You obtained some \\c[1]{2}\\c[0]!\\wtnp[30]", meName, itemname))
@@ -917,16 +917,15 @@ def pbReceiveItem(item, quantity = 1, item_name = "", music = nil, canRandom = t
# end
pbMessage(_INTL("\\me[{1}]You obtained \\c[1]{2} {3}\\c[0]!\\wtnp[30]", meName, itemname, GameData::Move.get(move).name))
elsif quantity > 1
pbMessage(_INTL("\\me[{1}]You obtained {2} #{text_color}{3}\\c[0]!\\wtnp[30]", meName, quantity, itemname))
pbMessage(_INTL("\\me[{1}]You obtained {2} {4}{3}\\c[0]!\\wtnp[30]", meName, quantity, itemname, text_color))
elsif itemname.starts_with_vowel?
pbMessage(_INTL("\\me[{1}]You obtained an #{text_color}{2}\\c[0]!\\wtnp[30]", meName, itemname))
pbMessage(_INTL("\\me[{1}]You obtained an {3}{2}\\c[0]!\\wtnp[30]", meName, itemname, text_color))
else
pbMessage(_INTL("\\me[{1}]You obtained a #{text_color}{2}\\c[0]!\\wtnp[30]", meName, itemname))
pbMessage(_INTL("\\me[{1}]You obtained a {3}{2}\\c[0]!\\wtnp[30]", meName, itemname, text_color))
end
promptRegisterItem(item)
if $PokemonBag.pbStoreItem(item, quantity) # If item can be added
pbMessage(_INTL("You put the {1} away\\nin the <icon=bagPocket{2}>\\c[1]{3} Pocket\\c[0].",
itemname, pocket, PokemonBag.pocketNames()[pocket]))
pbMessage(_INTL("You put the {1} away\\nin the <icon=bagPocket{2}>\\c[1]{3} Pocket\\c[0].", itemname, pocket, PokemonBag.pocketNames()[pocket]))
updatePinkanBerryDisplay()
return true
end
@@ -959,4 +958,4 @@ def randomizeGymTM(old_item)
return old_item if !typed_tms_array
return old_item if idx > typed_tms_array.size
return typed_tms_array[idx]
end
end

View File

@@ -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)

View File

@@ -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

View File

@@ -379,7 +379,7 @@ def pbSurfacing
move = :DIVE
movefinder = $Trainer.get_pokemon_with_move(move)
# if !pbCheckHiddenMoveBadge(Settings::BADGE_FOR_DIVE, false) || (!$DEBUG && !movefinder)
# pbMessage(_INTL("Light is filtering down from above. A Pokémon may be able to surface here."))
# pbMessage("Light is filtering down from above. A Pokémon may be able to surface here.")
# return false
# end
if pbConfirmMessage(_INTL("Light is filtering down from above. Would you like to use Dive?"))
@@ -587,6 +587,33 @@ def pbFly(move, pokemon)
return true
end
Events.onAction += proc { |_sender, _e|
terrain = $game_player.pbFacingTerrainTag
if terrain.can_secret_base
pbSecretPower(terrain)
end
}
def pbSecretPower(terrain)
return if $PokemonGlobal.surfing
return unless $game_player.direction == DIRECTION_UP
move = :SECRETPOWER
movefinder = $Trainer.get_pokemon_with_move(move)
return if !movefinder
speciesname = (movefinder) ? movefinder.name : $Trainer.name
biomeType = getSecretBaseBiome(terrain)
baseLayoutType = pickSecretBaseLayout(biomeType)
if biomeType && baseLayoutType
pbMessage(_INTL("{1} used {2}!", speciesname, GameData::Move.get(move).name))
pbHiddenMoveAnimation(movefinder)
pbSecretBase(biomeType,baseLayoutType)
end
end
#===============================================================================
# Headbutt
#===============================================================================
@@ -647,6 +674,13 @@ HiddenMoveHandlers::UseMove.add(:HEADBUTT, proc { |move, pokemon|
pbHeadbuttEffect(facingEvent)
})
HiddenMoveHandlers::UseMove.add(:SECRETPOWER, proc { |move, pokemon|
if !pbHiddenMoveAnimation(pokemon)
pbMessage(_INTL("{1} used {2}!", pokemon.name, GameData::Move.get(move).name))
end
})
HiddenMoveHandlers::CanUseMove.add(:RELICSONG, proc { |move, pokemon, showmsg|
if !(pokemon.isFusionOf(:MELOETTA_A) || pokemon.isFusionOf(:MELOETTA_P))
pbMessage(_INTL("It won't have any effect")) if showmsg
@@ -754,7 +788,7 @@ HiddenMoveHandlers::UseMove.add(:ROCKSMASH, proc { |move, pokemon|
#===============================================================================
def pbStrength
if $PokemonMap.strengthUsed
#pbMessage(_INTL("Strength made it possible to move boulders around."))
#pbMessage("Strength made it possible to move boulders around.")
return false
end
move = :STRENGTH
@@ -942,6 +976,10 @@ Events.onAction += proc { |_sender, _e|
pbWildBattle(:TRUBBISH, 10)
$PokemonGlobal.stepcount += 1
end
else
if Settings::GAME_ID == :IF_HOENN
pbMessage(_INTL("There's nothing but trash..."))
end
end
}
@@ -1071,17 +1109,17 @@ HiddenMoveHandlers::UseMove.add(:WHIRLWIND, proc { |move, pokemon|
# HiddenMoveHandlers::CanUseMove.add(:TELEPORT,proc { |move,pkmn,showmsg|
# if !GameData::MapMetadata.exists?($game_map.map_id) ||
# !GameData::MapMetadata.get($game_map.map_id).outdoor_map
# pbMessage(_INTL("Can't use that here.")) if showmsg
# pbMessage("Can't use that here.") if showmsg
# next false
# end
# healing = $PokemonGlobal.healingSpot
# healing = GameData::Metadata.get.home if !healing # Home
# if !healing
# pbMessage(_INTL("Can't use that here.")) if showmsg
# pbMessage("Can't use that here.") if showmsg
# next false
# end
# if $game_player.pbHasDependentEvents?
# pbMessage(_INTL("It can't be used when you have someone with you.")) if showmsg
# pbMessage("It can't be used when you have someone with you.") if showmsg
# next false
# end
# next true
@@ -1092,7 +1130,7 @@ HiddenMoveHandlers::UseMove.add(:WHIRLWIND, proc { |move, pokemon|
# healing = GameData::Metadata.get.home if !healing # Home
# next false if !healing
# mapname = pbGetMapNameFromId(healing[0])
# next pbConfirmMessage(_INTL("Want to return to the healing spot used last in {1}?",mapname))
# next pbConfirmMessage("Want to return to the healing spot used last in {1}?",mapname)
# })
#
# HiddenMoveHandlers::UseMove.add(:TELEPORT,proc { |move,pokemon|
@@ -1100,7 +1138,7 @@ HiddenMoveHandlers::UseMove.add(:WHIRLWIND, proc { |move, pokemon|
# healing = GameData::Metadata.get.home if !healing # Home
# next false if !healing
# if !pbHiddenMoveAnimation(pokemon)
# pbMessage(_INTL("{1} used {2}!",pokemon.name,GameData::Move.get(move).name))
# pbMessage("{1} used {2}!",pokemon.name,GameData::Move.get(move).name)
# end
# pbFadeOutIn {
# $game_temp.player_new_map_id = healing[0]