Fix: Wrong keys in sync_config_traiblaze_power() (fixed #581)

This commit is contained in:
LmeSzinc 2024-07-20 04:42:01 +08:00
parent cda9d25f88
commit 78d556c7f8

View File

@ -448,14 +448,14 @@ class Dungeon(DungeonStamina, DungeonEvent, Combat):
# Sync Dungeon.TrailblazePower and Ornament.TrailblazePower # Sync Dungeon.TrailblazePower and Ornament.TrailblazePower
with self.config.multi_set(): with self.config.multi_set():
value = self.config.TrailblazePower_ExtractReservedTrailblazePower value = self.config.TrailblazePower_ExtractReservedTrailblazePower
keys = [set_task, 'TrailblazePower', 'ExtractReservedTrailblazePower'] keys = f'{set_task}.TrailblazePower.ExtractReservedTrailblazePower'
if self.config.cross_get(keys) != value: if self.config.cross_get(keys) != value:
self.config.cross_set(keys, value) self.config.cross_set(keys, value)
value = self.config.TrailblazePower_UseFuel value = self.config.TrailblazePower_UseFuel
keys = [set_task, 'TrailblazePower', 'UseFuel'] keys = f'{set_task}.TrailblazePower.UseFuel'
if self.config.cross_get(keys) != value: if self.config.cross_get(keys) != value:
self.config.cross_set(keys, value) self.config.cross_set(keys, value)
value = self.config.TrailblazePower_FuelReserve value = self.config.TrailblazePower_FuelReserve
keys = [set_task, 'TrailblazePower', 'FuelReserve'] keys = f'{set_task}.TrailblazePower.FuelReserve'
if self.config.cross_get(keys) != value: if self.config.cross_get(keys) != value:
self.config.cross_set(keys, value) self.config.cross_set(keys, value)