Added more stats, added script variables, fixed AI thinking Wonder Guard provides total immunity, releasing a Pokémon puts its held item in the Bag, tweaked new map Compiler

This commit is contained in:
Maruno17
2024-09-20 00:51:54 +01:00
parent 8841a534fe
commit 2c071b224f
12 changed files with 153 additions and 31 deletions

View File

@@ -1865,6 +1865,7 @@ class PokemonStorageScreen
end
command = pbShowCommands(_INTL("Release this Pokémon?"), [_INTL("No"), _INTL("Yes")])
if command == 1
$bag.add(pokemon.item_id) if pokemon.hasItem?
pkmnname = pokemon.name
@scene.pbRelease(selected, heldpoke)
if heldpoke
@@ -1875,6 +1876,7 @@ class PokemonStorageScreen
@scene.pbRefresh
pbDisplay(_INTL("{1} was released.", pkmnname))
pbDisplay(_INTL("Bye-bye, {1}!", pkmnname))
$stats.pokemon_release_count += 1
@scene.pbRefresh
end
return