Fix pre_collected_items being collected multiple times
MODIFY
app/Filler/RandomAssumed.php
app/Filler/RandomAssumed.php
@@ -79,6 +79,9 @@ class RandomAssumed extends Filler
$found_locations = 0;
$assumed_items = $starting_items->copy();
+ foreach ($this->worlds as $world) {
+ $assumed_items = $assumed_items->merge($world->getPreCollectedItems());
+ }
do {
$current_locations = 0;
foreach ($this->worlds as $world) {

MODIFY
app/Support/WorldCollection.php
app/Support/WorldCollection.php
@@ -37,6 +37,9 @@ class WorldCollection
$found_locations = 0;
$assumed_items = new ItemCollection;
+ foreach ($this->worlds as $world) {
+ $assumed_items = $assumed_items->merge($world->getPreCollectedItems());
+ }
do {
$current_locations = 0;
foreach ($this->worlds as $collect_world) {

MODIFY
app/World.php
app/World.php
@@ -467,10 +467,9 @@ abstract class World
*/
public function collectOtherItems(ItemCollection $collected): ItemCollection
{
- $my_items = $collected ?? new ItemCollection();
- $found = new ItemCollection($this->pre_collected_items);
- $my_items = $my_items->merge($this->pre_collected_items);
+ $my_items = $collected ?? new ItemCollection($this->pre_collected_items);
$my_items->setChecksForWorld($this->id);
+ $found = new ItemCollection();
$available_locations = $this->getCollectableLocations();
do {

Fix pre_collected_items being collected multiple times