mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2025-12-10 14:44:58 +00:00
small celadon changes
This commit is contained in:
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -26,7 +26,15 @@ def pbPrintException(e)
|
|||||||
emessage = pbGetExceptionMessage(e)
|
emessage = pbGetExceptionMessage(e)
|
||||||
end
|
end
|
||||||
# begin message formatting
|
# begin message formatting
|
||||||
message = "[Pokémon Essentials version #{Essentials::VERSION}]\r\n"
|
message = "[Infinite Fusion version #{Settings::GAME_VERSION_NUMBER}]\r\n"
|
||||||
|
if $game_switches
|
||||||
|
message += "Randomized trainers, " if $game_switches[SWITCH_RANDOM_TRAINERS]
|
||||||
|
message += "Randomized gym trainers, " if $game_switches[SWITCH_RANDOMIZE_GYMS_SEPARATELY]
|
||||||
|
message += "Randomized wild Pokemon (global), " if $game_switches[SWITCH_WILD_RANDOM_GLOBAL]
|
||||||
|
message += "Randomized wild Pokemon (area), " if $game_switches[RandomizerWildPokemonOptionsScene::RANDOM_WILD_AREA]
|
||||||
|
message += "All fused, " if $game_switches[SWITCH_RANDOM_TRAINERS]
|
||||||
|
message += "Randomized trainers, " if $game_switches[RandomizerWildPokemonOptionsScene::REGULAR_TO_FUSIONS]
|
||||||
|
end
|
||||||
message += "#{Essentials::ERROR_TEXT}\r\n" # For third party scripts to add to
|
message += "#{Essentials::ERROR_TEXT}\r\n" # For third party scripts to add to
|
||||||
message += "Exception: #{e.class}\r\n"
|
message += "Exception: #{e.class}\r\n"
|
||||||
message += "Message: #{emessage}\r\n"
|
message += "Message: #{emessage}\r\n"
|
||||||
|
|||||||
@@ -20,6 +20,8 @@ HELD_ITEMS = [:AIRBALLOON, :BRIGHTPOWDER, :EVIOLITE, :FLOATSTONE, :DESTINYKNOT,
|
|||||||
:PETAYABERRY, :APICOTBERRY, :LANSATBERRY, :STARFBERRY, :ENIGMABERRY, :MICLEBERRY, :CUSTAPBERRY,
|
:PETAYABERRY, :APICOTBERRY, :LANSATBERRY, :STARFBERRY, :ENIGMABERRY, :MICLEBERRY, :CUSTAPBERRY,
|
||||||
:JABOCABERRY, :ROWAPBERRY, :FAIRYGEM]
|
:JABOCABERRY, :ROWAPBERRY, :FAIRYGEM]
|
||||||
|
|
||||||
|
ITEM_EXCEPTIONS= [:COVERFOSSIL, :PLUMEFOSSIL, :ACCURACYUP,:DAMAGEUP,:ANCIENTSTONE,:ODDKEYSTONE_FULL,:TM00 ]
|
||||||
|
|
||||||
def pbGetRandomItem(item_id)
|
def pbGetRandomItem(item_id)
|
||||||
return nil if item_id == nil
|
return nil if item_id == nil
|
||||||
item = GameData::Item.get(item_id)
|
item = GameData::Item.get(item_id)
|
||||||
@@ -41,7 +43,7 @@ def pbGetRandomItem(item_id)
|
|||||||
items_list = GameData::Item.list_all
|
items_list = GameData::Item.list_all
|
||||||
newItem_id = items_list.keys.sample
|
newItem_id = items_list.keys.sample
|
||||||
newItem = GameData::Item.get(newItem_id)
|
newItem = GameData::Item.get(newItem_id)
|
||||||
while (newItem.is_machine? || newItem.is_key_item?)
|
while (newItem.is_machine? || newItem.is_key_item? || ITEM_EXCEPTIONS.include?(newItem))
|
||||||
newItem_id = items_list.keys.sample
|
newItem_id = items_list.keys.sample
|
||||||
newItem = GameData::Item.get(newItem_id)
|
newItem = GameData::Item.get(newItem_id)
|
||||||
end
|
end
|
||||||
|
|||||||
@@ -1251,17 +1251,8 @@ end
|
|||||||
# p_msg(msg, title, :question)
|
# p_msg(msg, title, :question)
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
# trace_var(:$scene, proc do |object|
|
|
||||||
# break unless object
|
|
||||||
# unless object.instance_variable_get(:@__old_main)
|
|
||||||
# object.instance_variable_set(:@__old_main, object.method(:main))
|
|
||||||
# def object.main
|
|
||||||
# self.instance_variable_get(:@__old_main).call
|
|
||||||
# rescue
|
|
||||||
# p_err
|
|
||||||
# end
|
|
||||||
# end
|
|
||||||
# end)
|
|
||||||
#
|
#
|
||||||
# else
|
# else
|
||||||
#
|
#
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user