Subnautica: fix generation crash on valuable item pool (#739)
This commit is contained in:
parent
5c2163a1a7
commit
6a60c46a99
|
@ -1,5 +1,4 @@
|
||||||
import logging
|
import logging
|
||||||
import typing
|
|
||||||
|
|
||||||
logger = logging.getLogger("Subnautica")
|
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"}),
|
for item_name in self.world.random.choices(sorted(advancement_item_names - {"Neptune Launch Platform"}),
|
||||||
k=extras):
|
k=extras):
|
||||||
item = self.create_item(item_name)
|
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)
|
pool.append(item)
|
||||||
|
|
||||||
self.world.itempool += pool
|
self.world.itempool += pool
|
||||||
|
|
Loading…
Reference in New Issue