Subnautica: fix generation crash on valuable item pool (#739)

This commit is contained in:
Fabian Dill 2022-07-06 23:04:22 +02:00 committed by GitHub
parent 5c2163a1a7
commit 6a60c46a99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 2 deletions

View File

@ -1,5 +1,4 @@
import logging
import typing
logger = logging.getLogger("Subnautica")
@ -65,7 +64,7 @@ class SubnauticaWorld(World):
for item_name in self.world.random.choices(sorted(advancement_item_names - {"Neptune Launch Platform"}),
k=extras):
item = self.create_item(item_name)
item.advancement = False # as it's an extra, just fast-fill it somewhere
item.classification = ItemClassification.filler # as it's an extra, just fast-fill it somewhere
pool.append(item)
self.world.itempool += pool