mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
SoE: texts, energy core, fragments, useful (#777)
* fix missing fields in custom prog balancing option * fix typos and pep8 * update and implement pyevermizer 0.41.3 * allow randomizing energy core * add energy core fragments (turn in at Prof. Ruffleberg) * rename some items to avoid confusion * differentiate between progression and useful * remove obsolete 'Bazooka' group * don't add items to the pool that get removed
This commit is contained in:
@@ -37,6 +37,32 @@ class Difficulty(EvermizerFlags, Choice):
|
||||
flags = ['e', 'n', 'h', 'x']
|
||||
|
||||
|
||||
class EnergyCore(EvermizerFlags, Choice):
|
||||
"""How to obtain the Energy Core"""
|
||||
display_name = "Energy Core"
|
||||
option_vanilla = 0
|
||||
option_shuffle = 1
|
||||
option_fragments = 2
|
||||
default = 1
|
||||
flags = ['z', '', 'Z']
|
||||
|
||||
|
||||
class RequiredFragments(Range):
|
||||
"""Required fragment count for Energy Core = Fragments"""
|
||||
display_name = "Required Fragments"
|
||||
range_start = 1
|
||||
range_end = 99
|
||||
default = 10
|
||||
|
||||
|
||||
class AvailableFragments(Range):
|
||||
"""Placed fragment count for Energy Core = Fragments"""
|
||||
display_name = "Available Fragments"
|
||||
range_start = 1
|
||||
range_end = 99
|
||||
default = 11
|
||||
|
||||
|
||||
class MoneyModifier(Range):
|
||||
"""Money multiplier in %"""
|
||||
display_name = "Money Modifier"
|
||||
@@ -186,10 +212,15 @@ class TrapChanceOHKO(TrapChance):
|
||||
|
||||
class SoEProgressionBalancing(ProgressionBalancing):
|
||||
default = 30
|
||||
__doc__ = ProgressionBalancing.__doc__.replace(f"default {ProgressionBalancing.default}", f"default {default}")
|
||||
special_range_names = {**ProgressionBalancing.special_range_names, "normal": default}
|
||||
|
||||
|
||||
soe_options: typing.Dict[str, type(Option)] = {
|
||||
"difficulty": Difficulty,
|
||||
"energy_core": EnergyCore,
|
||||
"required_fragments": RequiredFragments,
|
||||
"available_fragments": AvailableFragments,
|
||||
"money_modifier": MoneyModifier,
|
||||
"exp_modifier": ExpModifier,
|
||||
"fix_sequence": FixSequence,
|
||||
|
||||
Reference in New Issue
Block a user