6.4 update (minus sprites)

This commit is contained in:
infinitefusion
2024-12-21 09:43:11 -05:00
parent f70c2cfde4
commit 1e325366d2
1717 changed files with 140299 additions and 27845 deletions

View File

@@ -3,6 +3,7 @@
#===============================================================================
class PokemonBag
attr_accessor :lastpocket
attr_accessor :pockets
def self.pocketNames
return Settings.bag_pocket_names
@@ -176,6 +177,7 @@ class PokemonBag
item = GameData::Item.get(item)
pocket = item.pocket
ret = ItemStorageHelper.pbDeleteItem(@pockets[pocket], item.id, qty)
updatePinkanBerryDisplay()
return ret
end
@@ -213,6 +215,18 @@ class PokemonBag
@registeredIndex = [0, 0, 1] if !@registeredIndex
return @registeredIndex
end
def saveBagAndClear()
$PokemonGlobal.pokemonSelectionOriginalBag= @pockets.map(&:dup)
echoln $PokemonGlobal.pokemonSelectionOriginalBag
clear()
end
def restoreBag()
return if !$PokemonGlobal.pokemonSelectionOriginalBag
echoln $PokemonGlobal.pokemonSelectionOriginalBag
@pockets = $PokemonGlobal.pokemonSelectionOriginalBag
end
end
@@ -354,6 +368,10 @@ module ItemStorageHelper
end
return false
end
end