Skip to content

Commit 03b90cf

Browse files
authored
Timespinner: Re-added missing enmemy rando option ArchipelagoMW#4235
1 parent 5729b78 commit 03b90cf

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

worlds/timespinner/Options.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,7 @@ class TimespinnerOptions(PerGameCommonOptions, DeathLinkMixin):
379379
cantoran: Cantoran
380380
lore_checks: LoreChecks
381381
boss_rando: BossRando
382+
enemy_rando: EnemyRando
382383
damage_rando: DamageRando
383384
damage_rando_overrides: DamageRandoOverrides
384385
hp_cap: HpCap
@@ -445,6 +446,7 @@ class BackwardsCompatiableTimespinnerOptions(TimespinnerOptions):
445446
Cantoran: hidden(Cantoran) # type: ignore
446447
LoreChecks: hidden(LoreChecks) # type: ignore
447448
BossRando: hidden(BossRando) # type: ignore
449+
EnemyRando: hidden(EnemyRando) # type: ignore
448450
DamageRando: hidden(DamageRando) # type: ignore
449451
DamageRandoOverrides: HiddenDamageRandoOverrides
450452
HpCap: hidden(HpCap) # type: ignore
@@ -516,6 +518,10 @@ def handle_backward_compatibility(self) -> None:
516518
self.boss_rando == BossRando.default:
517519
self.boss_rando.value = self.BossRando.value
518520
self.has_replaced_options.value = Toggle.option_true
521+
if self.EnemyRando != EnemyRando.default and \
522+
self.enemy_rando == EnemyRando.default:
523+
self.enemy_rando.value = self.EnemyRando.value
524+
self.has_replaced_options.value = Toggle.option_true
519525
if self.DamageRando != DamageRando.default and \
520526
self.damage_rando == DamageRando.default:
521527
self.damage_rando.value = self.DamageRando.value

worlds/timespinner/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def fill_slot_data(self) -> Dict[str, object]:
9898
"Cantoran": self.options.cantoran.value,
9999
"LoreChecks": self.options.lore_checks.value,
100100
"BossRando": self.options.boss_rando.value,
101+
"EnemyRando": self.options.enemy_rando.value,
101102
"DamageRando": self.options.damage_rando.value,
102103
"DamageRandoOverrides": self.options.damage_rando_overrides.value,
103104
"HpCap": self.options.hp_cap.value,

0 commit comments

Comments
 (0)