mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 14:31:16 +00:00
880bb2a911
* Apply StoredCounter in counting farm times * i18n for SimulatedUniverseElite counter (probably used for display in future) * change display style to "counter" style * Configure ConfigUpdater.redirect and rename `SimulatedUniverseElite` config item to `SimulatedUniverseFarm` * show `Rogue.RogueWorld.SimulatedUniverseFarm` in disabled mode only when `Rogue.RogueWorld.WeeklyFarming` is checked * treat Rogue_RogueWorld_SimulatedUniverseFarm specially to display value only; i18n for SimulatedUniverseFarm item; bugfix on counter convert * Set display style of stored counter * update counter despite whether farming is enabled
40 lines
1.4 KiB
Python
40 lines
1.4 KiB
Python
def convert_daily(value):
|
|
if value == "Calyx_Crimson_Hunt":
|
|
value = "Calyx_Crimson_The_Hunt"
|
|
return value
|
|
|
|
|
|
def convert_20_dungeon(value):
|
|
if value == 'Calyx_Golden_Memories':
|
|
return 'Calyx_Golden_Memories_Jarilo_VI'
|
|
if value == 'Calyx_Golden_Aether':
|
|
return 'Calyx_Golden_Aether_Jarilo_VI'
|
|
if value == 'Calyx_Golden_Treasures':
|
|
return 'Calyx_Golden_Treasures_Jarilo_VI'
|
|
if value == 'Calyx_Golden_Memories':
|
|
return 'Calyx_Golden_Memories_Jarilo_VI'
|
|
|
|
if value == 'Calyx_Crimson_Destruction':
|
|
return 'Calyx_Crimson_Destruction_Herta_StorageZone'
|
|
if value == 'Calyx_Crimson_The_Hunt':
|
|
return 'Calyx_Crimson_The_Hunt_Jarilo_OutlyingSnowPlains'
|
|
if value == 'Calyx_Crimson_Erudition':
|
|
return 'Calyx_Crimson_Erudition_Jarilo_RivetTown'
|
|
if value == 'Calyx_Crimson_Harmony':
|
|
return 'Calyx_Crimson_Harmony_Jarilo_RobotSettlement'
|
|
if value == 'Calyx_Crimson_Nihility':
|
|
return 'Calyx_Crimson_Nihility_Jarilo_GreatMine'
|
|
if value == 'Calyx_Crimson_Preservation':
|
|
return 'Calyx_Crimson_Preservation_Herta_SupplyZone'
|
|
if value == 'Calyx_Crimson_Abundance':
|
|
return 'Calyx_Crimson_Abundance_Jarilo_BackwaterPass'
|
|
|
|
return value
|
|
|
|
|
|
def convert_rogue_farm(value):
|
|
if isinstance(value, dict) and 'value' in value.keys():
|
|
value['value'] = 100 - value['value']
|
|
value['total'] = 100
|
|
return value
|