fc200281(Implements Stance Change ability)

2c73bbf9(Fix for tiles being invisible after a map transfer if they were on screen before it)
dc01031a(prevent unknown_items from being obtained in randomizer)
ee906fb3(previous commit also included new attack animations)
4dba7c02(Fixes unreal time and footprint scripts being accidentally disabled)
This commit is contained in:
infinitefusion
2022-06-05 15:36:21 -04:00
parent 64bcefa3f7
commit dd68c56c79
25 changed files with 499 additions and 460 deletions

View File

@@ -20,6 +20,8 @@ HELD_ITEMS = [:AIRBALLOON, :BRIGHTPOWDER, :EVIOLITE, :FLOATSTONE, :DESTINYKNOT,
:PETAYABERRY, :APICOTBERRY, :LANSATBERRY, :STARFBERRY, :ENIGMABERRY, :MICLEBERRY, :CUSTAPBERRY,
:JABOCABERRY, :ROWAPBERRY, :FAIRYGEM]
REMOVED_ITEMS=[:COVERFOSSIL,:PLUMEFOSSIL,:DAMAGEUP,:ACCURACYUP,:ANCIENTSTONE,:ODDKEYSTONE_FULL]
def pbGetRandomItem(item_id)
return nil if item_id == nil
item = GameData::Item.get(item_id)
@@ -41,7 +43,7 @@ def pbGetRandomItem(item_id)
items_list = GameData::Item.list_all
newItem_id = items_list.keys.sample
newItem = GameData::Item.get(newItem_id)
while (newItem.is_machine? || newItem.is_key_item?)
while (newItem.is_machine? || newItem.is_key_item? || REMOVED_ITEMS.include?(item))
newItem_id = items_list.keys.sample
newItem = GameData::Item.get(newItem_id)
end