release 6.2

This commit is contained in:
infinitefusion
2024-06-28 12:01:39 -04:00
parent 0b9e83f554
commit 3a488c9ba6
7249 changed files with 713866 additions and 136365 deletions

View File

@@ -1075,7 +1075,7 @@ ItemHandlers::UseOnPokemon.add(:ABILITYCAPSULE, proc { |item, pkmn, scene|
if scene.pbConfirm(_INTL("Would you like to change {1}'s Ability to {2}?",
pkmn.name, newabilname))
pkmn.ability_index = newabil
pkmn.ability = GameData::Ability.get((newabil == 0) ? abil1 : abil2).id
#pkmn.ability = GameData::Ability.get((newabil == 0) ? abil1 : abil2).id
scene.pbHardRefresh
scene.pbDisplay(_INTL("{1}'s Ability changed to {2}!", pkmn.name, newabilname))
next true

View File

@@ -10,6 +10,7 @@ class PokeRadar_UI
ICON_LINE_END = 450
GRAPHICS_Z = 99999
def initialize(seenPokemon = [], unseenPokemon = [], rarePokemon = [])
@seen_pokemon = seenPokemon
@@ -17,7 +18,7 @@ class PokeRadar_UI
@rare_pokemon = rarePokemon
@viewport = Viewport.new(0, 0, Graphics.width, Graphics.height)
@viewport.z = 99
@viewport.z = GRAPHICS_Z
@sprites = {}
@sprites["background"] = IconSprite.new(0, 0, @viewport)
@sprites["background"].setBitmap("Graphics/Pictures/Pokeradar/banner")
@@ -89,7 +90,7 @@ class PokeRadar_UI
@sprites[iconId].visible = true
@sprites[iconId].x = @current_x
@sprites[iconId].y = @current_y
@sprites[iconId].z = 100
@sprites[iconId].z = GRAPHICS_Z+1
@current_x += ICON_MARGIN_X
if @current_x >= ICON_LINE_END

View File

@@ -66,6 +66,11 @@ class ItemIconSprite < SpriteWrapper
end
end
def animbitmap=(path="")
@animbitmap = AnimatedBitmap.new(path)
changeOrigin
end
def item=(value)
return if @item==value && !@forceitemchange
@item = value