Merge pull request #4 from ProverbialPennance/Satisfactory

Satisfactory: 'trap_selection_override' option was unable to be used
This commit is contained in:
Jarno
2025-02-20 18:34:19 +01:00
committed by GitHub

View File

@@ -832,7 +832,7 @@ class Items:
def get_filler_item_name(self, random: Random, options: SatisfactoryOptions) -> str:
trap_chance: int = options.trap_chance.value
enabled_traps: List[str] = options.trap_selection_override.value
enabled_traps: List[str] = list(options.trap_selection_override.value)
if enabled_traps and random.random() < (trap_chance / 100):
return random.choice(enabled_traps)