Update 6.8

This commit is contained in:
chardub
2026-07-10 15:42:06 -04:00
parent 5b85e72cb2
commit 6a6f126a18
7871 changed files with 493194 additions and 224826 deletions
@@ -192,7 +192,7 @@ DebugMenuCommands.register("testwildbattle", {
"name" => _INTL("Test Wild Battle"),
"description" => _INTL("Start a single battle against a wild Pokémon. You choose the species/level."),
"effect" => proc {
species = pbChooseSpeciesList
species = pbChooseSpeciesList(nil, NB_POKEMON-4)
if species
params = ChooseNumberParams.new
params.setRange(1, GameData::GrowthRate.max_level)
@@ -463,20 +463,24 @@ DebugMenuCommands.register("additem", {
"name" => _INTL("Add Item"),
"description" => _INTL("Choose an item and a quantity of it to add to the Bag."),
"effect" => proc {
pbListScreenBlock(_INTL("ADD ITEM"), ItemLister.new) { |button, item|
if button == Input::USE && item
params = ChooseNumberParams.new
params.setRange(1, Settings::BAG_MAX_PER_SLOT)
params.setInitialValue(1)
params.setCancelValue(0)
qty = pbMessageChooseNumber(_INTL("Add how many {1}?",
GameData::Item.get(item).name_plural), params)
if qty > 0
$PokemonBag.pbStoreItem(item, qty)
pbMessage(_INTL("Gave {1}x {2}.", qty, GameData::Item.get(item).name))
end
item_list = []
GameData::Item.each do |item|
item_list.push([item.id_number, sprintf("%-30s %s", sprintf("%03d: %s", item.id_number, item.real_name), item.id), item.id])
end
item = pbChooseListWithFilter(item_list,0,nil,1,0,0,"ADD ITEM",:longest_value)
if item
params = ChooseNumberParams.new
params.setRange(1, Settings::BAG_MAX_PER_SLOT)
params.setInitialValue(1)
params.setCancelValue(0)
qty = pbMessageChooseNumber(_INTL("Add how many {1}?",
GameData::Item.get(item).name_plural), params)
if qty > 0
$PokemonBag.pbStoreItem(item, qty)
pbMessage(_INTL("Gave {1}x {2}.", qty, GameData::Item.get(item).name))
promptRegisterItem(GameData::Item.get(item))
end
}
end
}
})
@@ -599,14 +603,14 @@ DebugMenuCommands.register("quickhatch", {
DebugMenuCommands.register("fillboxes", {
"parent" => "pokemonmenu",
"name" => _INTL("Fill Storage Boxes"),
"description" => _INTL("Add one Pokémon of each species (at Level 50) to storage."),
"description" => _INTL("Add one Pokémon of each species to storage."),
"effect" => proc {
added = 0
box_qty = $PokemonStorage.maxPokemon(0)
completed = true
for num in 1..NB_POKEMON
for num in 1..501#NB_POKEMON
pokemon = getPokemon(num)
pbAddPokemonSilent(pokemon,50)
pbAddPokemonSilent(pokemon,5)
end
@@ -881,6 +885,21 @@ DebugMenuCommands.register("randomid", {
}
})
# DebugMenuCommands.register("setid", {
# "parent" => "playermenu",
# "name" => _INTL("Set Player ID"),
# "description" => _INTL("Set a new ID for the player."),
# "effect" => proc {
# params = ChooseNumberParams.new
# params.setRange(1, 9999999999)
# params.setInitialValue($Trainer.id)
# params.setCancelValue($Trainer.id)
# id = pbMessageChooseNumber(_INTL("Set the trainer ID."), params)
# $Trainer.id = id.to_i
# }
# })
#===============================================================================
# Information editors
#===============================================================================
@@ -922,36 +941,35 @@ DebugMenuCommands.register("terraintags", {
})
DebugMenuCommands.register("positionsprites", {
"parent" => "editorsmenu",
"name" => _INTL("Edit Pokémon Sprite Positions"),
"description" => _INTL("Reposition Pokémon sprites in battle."),
"always_show" => true,
"effect" => proc {
pbFadeOutIn {
sp = SpritePositioner.new
sps = SpritePositionerScreen.new(sp)
sps.pbStart
}
}
})
DebugMenuCommands.register("autopositionsprites", {
"parent" => "editorsmenu",
"name" => _INTL("Auto-Position All Sprites"),
"description" => _INTL("Automatically reposition all Pokémon sprites in battle. Don't use lightly."),
"always_show" => true,
"effect" => proc {
if pbConfirmMessage(_INTL("Are you sure you want to reposition all sprites?"))
msgwindow = pbCreateMessageWindow
pbMessageDisplay(msgwindow, _INTL("Repositioning all sprites. Please wait."), false)
Graphics.update
pbAutoPositionAll
pbDisposeMessageWindow(msgwindow)
end
}
})
# DebugMenuCommands.register("positionsprites", {
# "parent" => "editorsmenu",
# "name" => _INTL("Edit Pokémon Sprite Positions"),
# "description" => _INTL("Reposition Pokémon sprites in battle."),
# "always_show" => true,
# "effect" => proc {
# pbFadeOutIn {
# sp = SpritePositioner.new
# sps = SpritePositionerScreen.new(sp)
# sps.pbStart
# }
# }
# })
#
# DebugMenuCommands.register("autopositionsprites", {
# "parent" => "editorsmenu",
# "name" => _INTL("Auto-Position All Sprites"),
# "description" => _INTL("Automatically reposition all Pokémon sprites in battle. Don't use lightly."),
# "always_show" => true,
# "effect" => proc {
# if pbConfirmMessage(_INTL("Are you sure you want to reposition all sprites?"))
# msgwindow = pbCreateMessageWindow
# pbMessageDisplay(msgwindow, _INTL("Repositioning all sprites. Please wait."), false)
# Graphics.update
# pbAutoPositionAll
# pbDisposeMessageWindow(msgwindow)
# end
# }
# })
DebugMenuCommands.register("animeditor", {
"parent" => "editorsmenu",
"name" => _INTL("Battle Animation Editor"),
@@ -995,42 +1013,42 @@ DebugMenuCommands.register("exportanims", {
#===============================================================================
# Other options
#===============================================================================
# DebugMenuCommands.register("othermenu", {
# "parent" => "main",
# "name" => _INTL("Other options..."),
# "description" => _INTL("Mystery Gifts, translations, compile data, etc."),
# "always_show" => true
# })
DebugMenuCommands.register("othermenu", {
"parent" => "main",
"name" => _INTL("Other options..."),
"description" => _INTL("Mystery Gifts, translations, compile data, etc."),
"always_show" => true
})
DebugMenuCommands.register("mysterygift", {
"parent" => "othermenu",
"name" => _INTL("Test Mystery Gift"),
"description" => _INTL("Place the Mystery Gift JSON in the game's folder (top level)"),
"always_show" => true,
"effect" => proc {
testMysteryGift
}
})
#
# DebugMenuCommands.register("mysterygift", {
# "parent" => "othermenu",
# "name" => _INTL("Manage Mystery Gifts"),
# "description" => _INTL("Edit and enable/disable Mystery Gifts."),
# "always_show" => true,
# "effect" => proc {
# pbManageMysteryGifts
# }
# })
#
# DebugMenuCommands.register("extracttext", {
# "parent" => "othermenu",
# "name" => _INTL("Extract Text"),
# "description" => _INTL("Extract all text in the game to a single file for translating."),
# "always_show" => true,
# "effect" => proc {
# pbExtractText
# }
# })
#
# DebugMenuCommands.register("compiletext", {
# "parent" => "othermenu",
# "name" => _INTL("Compile Text"),
# "description" => _INTL("Import text and converts it into a language file."),
# "always_show" => true,
# "effect" => proc {
# pbCompileTextUI
# }
# })
DebugMenuCommands.register("extracttext", {
"parent" => "othermenu",
"name" => _INTL("Extract Text"),
"description" => _INTL("Extract all text in the game to a single file for translating."),
"always_show" => true,
"effect" => proc {
pbExtractText
}
})
DebugMenuCommands.register("compiletext", {
"parent" => "othermenu",
"name" => _INTL("Compile Text"),
"description" => _INTL("Import text and converts it into a language file."),
"always_show" => true,
"effect" => proc {
pbCompileTextUI
}
})
#
#
# DebugMenuCommands.register("renamesprites", {
@@ -11,7 +11,7 @@ def pbWarpToMapId
params = ChooseNumberParams.new
params.setRange(1,999) #pbMapTree().length)
params.setDefaultValue($game_map.map_id)
map_id = pbMessageChooseNumber("map id?",params)
map_id = pbMessageChooseNumber(_INTL("map id?"),params)
return [map_id,0,0]
end
@@ -561,6 +561,8 @@ def pbExtractText
return
end
pbMessageDisplay(msgwindow,_INTL("Please wait.\\wtnp[0]"))
pbSetTextMessages
MessageTypes.saveMessages
MessageTypes.extract("intl.txt")
pbMessageDisplay(msgwindow,_INTL("All text in the game was extracted and saved to intl.txt.\1"))
pbMessageDisplay(msgwindow,_INTL("To localize the text for a particular language, translate every second line in the file.\1"))
@@ -726,54 +726,6 @@ PokemonDebugMenuCommands.register("setability", {
})
PokemonDebugMenuCommands.register("setability2", {
"parent" => "main",
"name" => _INTL("Set secondary ability"),
"always_show" => true,
"effect" => proc { |pkmn, pkmnid, heldpoke, settingUpBattle, screen|
cmd = 0
commands = [
_INTL("Set possible ability"),
_INTL("Set any ability"),
_INTL("Reset")
]
loop do
if pkmn.ability
msg = _INTL("Ability 2 is {1} (index {2}).", pkmn.ability2.name, pkmn.ability2_index)
else
msg = _INTL("No ability (index {1}).", pkmn.ability2_index)
end
cmd = screen.pbShowCommands(msg, commands, cmd)
break if cmd < 0
case cmd
when 0 # Set possible ability
abils = pkmn.getAbilityList
ability_commands = []
abil_cmd = 0
for i in abils
ability_commands.push(((i[1] < 2) ? "" : "(H) ") + GameData::Ability.get(i[0]).name)
abil_cmd = ability_commands.length - 1 if pkmn.ability2_id == i[0]
end
abil_cmd = screen.pbShowCommands(_INTL("Choose an ability."), ability_commands, abil_cmd)
next if abil_cmd < 0
pkmn.ability2_index = abils[abil_cmd][1]
pkmn.ability2 = nil
screen.pbRefreshSingle(pkmnid)
when 1 # Set any ability
new_ability = pbChooseAbilityList(pkmn.ability2_id)
if new_ability && new_ability != pkmn.ability2_id
pkmn.ability2 = new_ability
screen.pbRefreshSingle(pkmnid)
end
when 2 # Reset
pkmn.ability2_index = nil
pkmn.ability2 = nil
screen.pbRefreshSingle(pkmnid)
end
end
next false
}
})
PokemonDebugMenuCommands.register("setnature", {
"parent" => "main",
@@ -823,9 +775,9 @@ PokemonDebugMenuCommands.register("setgender", {
"name" => _INTL("Set gender"),
"always_show" => true,
"effect" => proc { |pkmn, pkmnid, heldpoke, settingUpBattle, screen|
if pkmn.singleGendered?
screen.pbDisplay(_INTL("{1} is single-gendered or genderless.", pkmn.speciesName))
else
# if pkmn.singleGendered?
# screen.pbDisplay(_INTL("{1} is single-gendered or genderless.", pkmn.speciesName))
# else
cmd = 0
loop do
msg = [_INTL("Gender is male."), _INTL("Gender is female.")][pkmn.male? ? 0 : 1]
@@ -851,7 +803,7 @@ PokemonDebugMenuCommands.register("setgender", {
$Trainer.pokedex.register(pkmn) if !settingUpBattle
screen.pbRefreshSingle(pkmnid)
end
end
#end
next false
}
})
@@ -866,6 +818,17 @@ PokemonDebugMenuCommands.register("printInfo", {
next false
}
})
PokemonDebugMenuCommands.register("jsonExport", {
"parent" => "main",
"name" => _INTL("Export to JSON"),
"always_show" => true,
"effect" => proc { |pkmn, pkmnid, heldpoke, settingUpBattle, screen|
pkmn.export_to_json
next false
}
})
PokemonDebugMenuCommands.register("speciesform", {
"parent" => "main",
"name" => _INTL("Species/form..."),
@@ -895,9 +858,9 @@ PokemonDebugMenuCommands.register("speciesform", {
when 1 # Set form
old_head_dex = get_head_number_from_symbol(pkmn.species)
old_body_dex = get_body_number_from_symbol(pkmn.species)
pbMessage('Head species?')
pbMessage(_INTL("Head species?"))
head_species = pbChooseSpeciesList(old_head_dex,NB_POKEMON)
pbMessage('Body species?')
pbMessage(_INTL("Body species?"))
body_species = pbChooseSpeciesList(old_body_dex,NB_POKEMON)
fused_species_dex = getFusionSpecies(body_species.species, head_species.species)
@@ -1252,14 +1215,14 @@ PokemonDebugMenuCommands.register("shadowpkmn", {
}
})
PokemonDebugMenuCommands.register("mysterygift", {
"parent" => "main",
"name" => _INTL("Mystery Gift"),
"effect" => proc { |pkmn, pkmnid, heldpoke, settingUpBattle, screen|
pbCreateMysteryGift(0, pkmn)
next false
}
})
# PokemonDebugMenuCommands.register("mysterygift", {
# "parent" => "main",
# "name" => _INTL("Mystery Gift"),
# "effect" => proc { |pkmn, pkmnid, heldpoke, settingUpBattle, screen|
# pbCreateMysteryGift(0, pkmn)
# next false
# }
# })
PokemonDebugMenuCommands.register("duplicate", {
"parent" => "main",