mirror of
https://github.com/infinitefusion/infinitefusion-e18.git
synced 2026-10-21 09:56:48 +00:00
Update 6.8
This commit is contained in:
@@ -38,7 +38,7 @@ class RandomizerOptionsScene < PokemonOption_Scene
|
||||
openWildPokemonOptionsMenu()
|
||||
end
|
||||
$game_switches[SWITCH_RANDOM_WILD] = value == 0
|
||||
}, "Select the randomizer options for Pokémon"
|
||||
}, _INTL("Select the randomizer options for Pokémon")
|
||||
),
|
||||
EnumOption.new(_INTL("NPC Trainers"), [_INTL("On"), _INTL("Off")],
|
||||
proc { $game_switches[SWITCH_RANDOM_TRAINERS] ? 0 : 1 },
|
||||
@@ -48,7 +48,7 @@ class RandomizerOptionsScene < PokemonOption_Scene
|
||||
openTrainerOptionsMenu()
|
||||
end
|
||||
$game_switches[SWITCH_RANDOM_TRAINERS] = value == 0
|
||||
}, "Select the randomizer options for trainers"
|
||||
}, _INTL("Select the randomizer options for trainers")
|
||||
),
|
||||
|
||||
EnumOption.new(_INTL("Gym trainers"), [_INTL("On"), _INTL("Off")],
|
||||
@@ -59,7 +59,7 @@ class RandomizerOptionsScene < PokemonOption_Scene
|
||||
openGymOptionsMenu()
|
||||
end
|
||||
$game_switches[SWITCH_RANDOMIZE_GYMS_SEPARATELY] = value == 0
|
||||
}, "Limit gym trainers to a single type"
|
||||
}, _INTL("Limit gym trainers to a single type")
|
||||
),
|
||||
|
||||
EnumOption.new(_INTL("Items"), [_INTL("On"), _INTL("Off")],
|
||||
@@ -70,7 +70,7 @@ class RandomizerOptionsScene < PokemonOption_Scene
|
||||
openItemOptionsMenu()
|
||||
end
|
||||
$game_switches[SWITCH_RANDOM_ITEMS_GENERAL] = value == 0
|
||||
}, "Select the randomizer options for items"
|
||||
}, _INTL("Select the randomizer options for items")
|
||||
),
|
||||
|
||||
]
|
||||
@@ -154,21 +154,23 @@ class RandomizerTrainerOptionsScene < PokemonOption_Scene
|
||||
proc { $game_variables[VAR_RANDOMIZER_TRAINER_BST] },
|
||||
proc { |value|
|
||||
$game_variables[VAR_RANDOMIZER_TRAINER_BST] = value
|
||||
})
|
||||
},
|
||||
_INTL("The higher the number, the more random it is.")
|
||||
)
|
||||
end
|
||||
options << EnumOption.new(_INTL("Custom Sprites only"), [_INTL("On"), _INTL("Off")],
|
||||
proc { $game_switches[RANDOM_TEAMS_CUSTOM_SPRITES] ? 0 : 1 },
|
||||
proc { |value|
|
||||
$game_switches[RANDOM_TEAMS_CUSTOM_SPRITES] = value == 0
|
||||
},
|
||||
"Use only Pokémon that have custom sprites in trainer teams"
|
||||
_INTL("Use only Pokémon that have custom sprites in trainer teams")
|
||||
)
|
||||
|
||||
# options << EnumOption.new("Allow legendaries", ["On", "Off"],
|
||||
# proc { $game_switches[SWITCH_RANDOM_TRAINER_LEGENDARIES] ? 0 : 1 },
|
||||
# proc { |value|
|
||||
# $game_switches[SWITCH_RANDOM_TRAINER_LEGENDARIES] = value == 0
|
||||
# }, "Regular Pokémon can also be randomized into legendaries"
|
||||
# }, _INTL("Regular Pokémon can also be randomized into legendaries")
|
||||
# )
|
||||
|
||||
return options
|
||||
@@ -212,7 +214,8 @@ class RandomizerWildPokemonOptionsScene < PokemonOption_Scene
|
||||
proc { $game_variables[VAR_RANDOMIZER_WILD_POKE_BST] },
|
||||
proc { |value|
|
||||
$game_variables[VAR_RANDOMIZER_WILD_POKE_BST] = value
|
||||
})
|
||||
},
|
||||
_INTL("The higher the number, the more random it is."))
|
||||
end
|
||||
|
||||
options << EnumOption.new(_INTL("Type"), [_INTL("Global"), _INTL("Area")],
|
||||
@@ -234,26 +237,28 @@ class RandomizerWildPokemonOptionsScene < PokemonOption_Scene
|
||||
end
|
||||
},
|
||||
[
|
||||
"Randomizes Pokémon using a one-to-one mapping of the Pokedex",
|
||||
"Randomizes the encounters in each route individually"
|
||||
_INTL("Randomizes Pokémon using a one-to-one mapping of the Pokedex"),
|
||||
_INTL("Randomizes the encounters in each route individually")
|
||||
]
|
||||
)
|
||||
options << EnumOption.new(_INTL("Custom sprites only"), [_INTL("On"), _INTL("Off")],
|
||||
proc { $game_switches[SWITCH_RANDOM_WILD_ONLY_CUSTOMS] ? 0 : 1 },
|
||||
proc { |value|
|
||||
$game_switches[SWITCH_RANDOM_WILD_ONLY_CUSTOMS] = value == 0
|
||||
}, "['Fuse everything' & starters] Include only Pokémon with a custom sprite."
|
||||
}, _INTL("['Fuse everything' & starters] Include only Pokémon with a custom sprite.")
|
||||
)
|
||||
|
||||
options << EnumOption.new(_INTL("Allow legendaries"), [_INTL("On"), _INTL("Off")],
|
||||
proc { $game_switches[SWITCH_RANDOM_WILD_LEGENDARIES] ? 0 : 1 },
|
||||
proc { |value|
|
||||
$game_switches[SWITCH_RANDOM_WILD_LEGENDARIES] = value == 0
|
||||
}, ["Regular wild Pokémon can also be randomized into legendaries.",
|
||||
"Only legendaries can be randomized into legendaries"]
|
||||
},
|
||||
[
|
||||
_INTL("Regular wild Pokémon can also be randomized into legendaries."),
|
||||
_INTL("Only legendaries can be randomized into legendaries")
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
options << EnumOption.new(_INTL("Starters"), [_INTL("1st Stage"), _INTL("Any"), _INTL("Off")],
|
||||
proc {
|
||||
getStarterRandomizerSelectedOption() },
|
||||
@@ -269,39 +274,54 @@ class RandomizerWildPokemonOptionsScene < PokemonOption_Scene
|
||||
$game_switches[SWITCH_RANDOM_STARTERS] = false
|
||||
$game_switches[SWITCH_RANDOM_STARTER_FIRST_STAGE] = false
|
||||
end
|
||||
|
||||
echoln "random starters: #{$game_switches[SWITCH_RANDOM_STARTERS]}"
|
||||
echoln "random 1st stage: #{$game_switches[SWITCH_RANDOM_STARTER_FIRST_STAGE]}"
|
||||
|
||||
}, ["The starters will always be a first evolution Pokémon",
|
||||
"The starters can be any Pokémon",
|
||||
"The starters are not randomized"]
|
||||
)
|
||||
options << EnumOption.new(_INTL("Static encounters"), [_INTL("On"), _INTL("Off")],
|
||||
proc { $game_switches[RANDOM_STATIC] ? 0 : 1 },
|
||||
proc { |value|
|
||||
$game_switches[RANDOM_STATIC] = value == 0
|
||||
},
|
||||
"Randomize Pokémon that appear in the overworld (including legendaries)"
|
||||
},
|
||||
[
|
||||
_INTL("The starters will always be a first evolution Pokémon"),
|
||||
_INTL("The starters can be any Pokémon"),
|
||||
_INTL("The starters are not randomized")
|
||||
]
|
||||
)
|
||||
if Settings::KANTO
|
||||
options << EnumOption.new(_INTL("Static encounters"), [_INTL("On"), _INTL("Off")],
|
||||
proc { $game_switches[RANDOM_STATIC] ? 0 : 1 },
|
||||
proc { |value|
|
||||
$game_switches[RANDOM_STATIC] = value == 0
|
||||
},
|
||||
_INTL("Randomize Pokémon that appear in the overworld (including legendaries)")
|
||||
)
|
||||
end
|
||||
|
||||
options << EnumOption.new(_INTL("Gift Pokémon"), [_INTL("On"), _INTL("Off")],
|
||||
proc { $game_switches[GIFT_POKEMON] ? 0 : 1 },
|
||||
proc { |value|
|
||||
$game_switches[GIFT_POKEMON] = value == 0
|
||||
}, "Randomize Pokémon that are gifted to the player"
|
||||
}, _INTL("Randomize Pokémon that are gifted to the player")
|
||||
)
|
||||
|
||||
options << EnumOption.new(_INTL("Fuse everything"), [_INTL("On"), _INTL("Off")],
|
||||
proc { $game_switches[REGULAR_TO_FUSIONS] ? 0 : 1 },
|
||||
proc { |value|
|
||||
$game_switches[REGULAR_TO_FUSIONS] = value == 0
|
||||
}, "All wild Pokémon will already be pre-fused"
|
||||
}, _INTL("All wild Pokémon will already be pre-fused")
|
||||
)
|
||||
|
||||
# options << ButtonOption.new(_INTL("SHUFFLE"),
|
||||
# proc {
|
||||
# pbMessage(_INTL("Shuffling..."))
|
||||
# if $game_switches[RANDOM_WILD_AREA]
|
||||
# type = 1
|
||||
# else
|
||||
# type = 0
|
||||
# end
|
||||
#
|
||||
# Kernel.pbShuffleDex($game_variables[VAR_RANDOMIZER_WILD_POKE_BST], type)
|
||||
# },
|
||||
# _INTL("Shuffle the wild encounters with the selected options.")
|
||||
# )
|
||||
|
||||
return options
|
||||
end
|
||||
|
||||
|
||||
def getStarterRandomizerSelectedOption()
|
||||
return 0 if $game_switches[SWITCH_RANDOM_STARTERS] && $game_switches[SWITCH_RANDOM_STARTER_FIRST_STAGE]
|
||||
return 1 if $game_switches[SWITCH_RANDOM_STARTERS]
|
||||
@@ -309,8 +329,6 @@ class RandomizerWildPokemonOptionsScene < PokemonOption_Scene
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
||||
class RandomizerGymOptionsScene < PokemonOption_Scene
|
||||
RANDOM_GYM_TYPES = 921
|
||||
|
||||
@@ -345,27 +363,31 @@ class RandomizerGymOptionsScene < PokemonOption_Scene
|
||||
proc { $game_variables[VAR_RANDOMIZER_TRAINER_BST] },
|
||||
proc { |value|
|
||||
$game_variables[VAR_RANDOMIZER_TRAINER_BST] = value
|
||||
})
|
||||
},
|
||||
_INTL("The higher the number, the more random it is."))
|
||||
end
|
||||
options << EnumOption.new(_INTL("Custom sprites only"), [_INTL("On"), _INTL("Off")],
|
||||
proc { $game_switches[SWITCH_RANDOM_GYM_CUSTOMS] ? 0 : 1 },
|
||||
proc { |value|
|
||||
$game_switches[SWITCH_RANDOM_GYM_CUSTOMS] = value == 0
|
||||
}, ["Use only Pokémon that have custom sprites in gym trainers or gym leader teams",
|
||||
"Pick any possible fusion, including auto-generated sprites."]
|
||||
},
|
||||
[
|
||||
_INTL("Use only Pokémon that have custom sprites in gym trainers or gym leader teams"),
|
||||
_INTL("Pick any possible fusion, including auto-generated sprites.")
|
||||
]
|
||||
)
|
||||
options << EnumOption.new(_INTL("Gym types"), [_INTL("On"), _INTL("Off")],
|
||||
proc { $game_switches[RANDOM_GYM_TYPES] ? 0 : 1 },
|
||||
proc { |value|
|
||||
$game_switches[RANDOM_GYM_TYPES] = value == 0
|
||||
}, "Shuffle the gym types"
|
||||
}, _INTL("Shuffle the gym types")
|
||||
)
|
||||
|
||||
# options << EnumOption.new("Allow legendaries", ["On", "Off"],
|
||||
# proc { $game_switches[SWITCH_RANDOM_GYM_LEGENDARIES] ? 0 : 1 },
|
||||
# proc { |value|
|
||||
# $game_switches[SWITCH_RANDOM_GYM_LEGENDARIES] = value == 0
|
||||
# }, "Regular Pokémon can also be randomized into legendaries"
|
||||
# }, _INTL("Regular Pokémon can also be randomized into legendaries")
|
||||
# )
|
||||
|
||||
options << EnumOption.new(_INTL("Rerandomize each battle"), [_INTL("On"), _INTL("Off")],
|
||||
@@ -373,7 +395,7 @@ class RandomizerGymOptionsScene < PokemonOption_Scene
|
||||
proc { |value|
|
||||
$game_switches[SWITCH_GYM_RANDOM_EACH_BATTLE] = value == 0
|
||||
$game_switches[SWITCH_RANDOM_GYM_PERSIST_TEAMS] = !$game_switches[SWITCH_GYM_RANDOM_EACH_BATTLE]
|
||||
}, "Gym trainers and leaders have a new team each try instead of keeping the same one"
|
||||
}, _INTL("Gym trainers and leaders have a new team each try instead of keeping the same one")
|
||||
)
|
||||
|
||||
return options
|
||||
@@ -415,42 +437,42 @@ class RandomizerItemOptionsScene < PokemonOption_Scene
|
||||
$game_switches[SWITCH_RANDOM_FOUND_ITEMS] = value == 0
|
||||
$game_switches[SWITCH_RANDOM_ITEMS_MAPPED] = value == 0
|
||||
$game_switches[SWITCH_RANDOM_ITEMS] = $game_switches[SWITCH_RANDOM_FOUND_ITEMS] || $game_switches[SWITCH_RANDOM_GIVEN_ITEMS]
|
||||
}, "Randomize the items picked up on the ground"
|
||||
}, _INTL("Randomize the items picked up on the ground")
|
||||
),
|
||||
EnumOption.new(_INTL("Found TMs"), [_INTL("On"), _INTL("Off")],
|
||||
proc { $game_switches[SWITCH_RANDOM_FOUND_TMS] ? 0 : 1 },
|
||||
proc { |value|
|
||||
$game_switches[SWITCH_RANDOM_FOUND_TMS] = value == 0
|
||||
$game_switches[SWITCH_RANDOM_TMS] = $game_switches[SWITCH_RANDOM_FOUND_TMS] || $game_switches[SWITCH_RANDOM_GIVEN_TMS]
|
||||
}, "Randomize the TMs picked up on the ground"
|
||||
}, _INTL("Randomize the TMs picked up on the ground")
|
||||
),
|
||||
EnumOption.new(_INTL("Given items"), [_INTL("On"), _INTL("Off")],
|
||||
proc { $game_switches[SWITCH_RANDOM_GIVEN_ITEMS] ? 0 : 1 },
|
||||
proc { |value|
|
||||
$game_switches[SWITCH_RANDOM_GIVEN_ITEMS] = value == 0
|
||||
$game_switches[SWITCH_RANDOM_ITEMS] = $game_switches[SWITCH_RANDOM_FOUND_ITEMS] || $game_switches[SWITCH_RANDOM_GIVEN_ITEMS]
|
||||
}, "Randomize the items given by NPCs (may make some quests impossible to complete)"
|
||||
}, _INTL("Randomize the items given by NPCs (may make some quests impossible to complete)")
|
||||
),
|
||||
EnumOption.new(_INTL("Given TMs"), [_INTL("On"), _INTL("Off")],
|
||||
proc { $game_switches[SWITCH_RANDOM_GIVEN_TMS] ? 0 : 1 },
|
||||
proc { |value|
|
||||
$game_switches[SWITCH_RANDOM_GIVEN_TMS] = value == 0
|
||||
$game_switches[SWITCH_RANDOM_TMS] = $game_switches[SWITCH_RANDOM_FOUND_TMS] || $game_switches[SWITCH_RANDOM_GIVEN_TMS]
|
||||
}, "Randomize the TMs given by NPCs"
|
||||
}, _INTL("Randomize the TMs given by NPCs")
|
||||
),
|
||||
|
||||
EnumOption.new(_INTL("Shop items"), [_INTL("On"), _INTL("Off")],
|
||||
proc { $game_switches[SWITCH_RANDOM_SHOP_ITEMS] ? 0 : 1 },
|
||||
proc { |value|
|
||||
$game_switches[SWITCH_RANDOM_SHOP_ITEMS] = value == 0
|
||||
}, "Randomizes the items available in shops (always mapped)"
|
||||
}, _INTL("Randomizes the items available in shops (always mapped)")
|
||||
),
|
||||
|
||||
EnumOption.new(_INTL("Trainer Held items"), [_INTL("On"), _INTL("Off")],
|
||||
proc { $game_switches[RANDOM_HELD_ITEMS] ? 0 : 1 },
|
||||
proc { |value|
|
||||
$game_switches[RANDOM_HELD_ITEMS] = value == 0
|
||||
}, "Give random held items to all trainers"
|
||||
}, _INTL("Give random held items to all trainers")
|
||||
)
|
||||
]
|
||||
return options
|
||||
@@ -532,4 +554,4 @@ class RandomizerItemOptionsScene < PokemonOption_Scene
|
||||
]
|
||||
return options
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user