Timespinner: Re-added missing enmemy rando option #4235

This commit is contained in:
Jarno 2024-11-24 15:57:39 +01:00 committed by GitHub
parent 5729b78504
commit 03b90cf39b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View File

@ -379,6 +379,7 @@ class TimespinnerOptions(PerGameCommonOptions, DeathLinkMixin):
cantoran: Cantoran cantoran: Cantoran
lore_checks: LoreChecks lore_checks: LoreChecks
boss_rando: BossRando boss_rando: BossRando
enemy_rando: EnemyRando
damage_rando: DamageRando damage_rando: DamageRando
damage_rando_overrides: DamageRandoOverrides damage_rando_overrides: DamageRandoOverrides
hp_cap: HpCap hp_cap: HpCap
@ -445,6 +446,7 @@ class BackwardsCompatiableTimespinnerOptions(TimespinnerOptions):
Cantoran: hidden(Cantoran) # type: ignore Cantoran: hidden(Cantoran) # type: ignore
LoreChecks: hidden(LoreChecks) # type: ignore LoreChecks: hidden(LoreChecks) # type: ignore
BossRando: hidden(BossRando) # type: ignore BossRando: hidden(BossRando) # type: ignore
EnemyRando: hidden(EnemyRando) # type: ignore
DamageRando: hidden(DamageRando) # type: ignore DamageRando: hidden(DamageRando) # type: ignore
DamageRandoOverrides: HiddenDamageRandoOverrides DamageRandoOverrides: HiddenDamageRandoOverrides
HpCap: hidden(HpCap) # type: ignore HpCap: hidden(HpCap) # type: ignore
@ -516,6 +518,10 @@ class BackwardsCompatiableTimespinnerOptions(TimespinnerOptions):
self.boss_rando == BossRando.default: self.boss_rando == BossRando.default:
self.boss_rando.value = self.BossRando.value self.boss_rando.value = self.BossRando.value
self.has_replaced_options.value = Toggle.option_true self.has_replaced_options.value = Toggle.option_true
if self.EnemyRando != EnemyRando.default and \
self.enemy_rando == EnemyRando.default:
self.enemy_rando.value = self.EnemyRando.value
self.has_replaced_options.value = Toggle.option_true
if self.DamageRando != DamageRando.default and \ if self.DamageRando != DamageRando.default and \
self.damage_rando == DamageRando.default: self.damage_rando == DamageRando.default:
self.damage_rando.value = self.DamageRando.value self.damage_rando.value = self.DamageRando.value

View File

@ -98,6 +98,7 @@ class TimespinnerWorld(World):
"Cantoran": self.options.cantoran.value, "Cantoran": self.options.cantoran.value,
"LoreChecks": self.options.lore_checks.value, "LoreChecks": self.options.lore_checks.value,
"BossRando": self.options.boss_rando.value, "BossRando": self.options.boss_rando.value,
"EnemyRando": self.options.enemy_rando.value,
"DamageRando": self.options.damage_rando.value, "DamageRando": self.options.damage_rando.value,
"DamageRandoOverrides": self.options.damage_rando_overrides.value, "DamageRandoOverrides": self.options.damage_rando_overrides.value,
"HpCap": self.options.hp_cap.value, "HpCap": self.options.hp_cap.value,