Archipelago/worlds/raft
Mysteryem a948697f3a
Raft: Place locked items in create_items and fix get_pre_fill_items (#4250)
* Raft: Place locked items in create_items and fix get_pre_fill_items

`pre_fill` runs after item plando, and item plando could place an item
at a location where Raft was intending to place a locked item, which
would crash generation.

This patch moves the placement of these locked items earlier, into
`create_items`.

Setting items into `multiworld.raft_frequencyItemsPerPlayer` for each
player has been replaced with passing `frequencyItems` to the new
`place_frequencyItems` function.

`setLocationItem` and `setLocationItemFromRegion` have been moved into
the new `place_frequencyItems` function so that they can capture the
`frequencyItems` argument variable.

The `get_pre_fill_items` function could return a list of all previously
placed items across the entire multiworld which was not correct. It
should have returned the items in
`multiworld.raft_frequencyItemsPerPlayer[self.player]`. Now that these
items are placed in `create_items` instead of `pre_fill`,
`get_pre_fill_items` is no longer necessary and has been removed.

* self.multiworld.get_location -> self.get_location

Changed the occurences in the modified code.
2024-12-09 01:57:34 +01:00
..
docs Update Raft option text, setup guide text (#3272) 2024-06-30 01:18:09 +02:00
Items.py Raft: Small website/code touchups (#1866) 2023-06-15 00:30:14 +02:00
Locations.py Update Raft for Final Chapter (#724) 2022-07-06 04:37:08 +02:00
Options.py Raft: Move to new Options API (#3587) 2024-07-15 15:09:02 +02:00
Regions.py Add Raft to Archipelago (#174) 2022-01-21 22:41:53 +01:00
Rules.py Raft: Move to new Options API (#3587) 2024-07-15 15:09:02 +02:00
__init__.py Raft: Place locked items in create_items and fix get_pre_fill_items (#4250) 2024-12-09 01:57:34 +01:00
items.json Update Raft for Final Chapter (#724) 2022-07-06 04:37:08 +02:00
locations.json Update Raft for Final Chapter (#724) 2022-07-06 04:37:08 +02:00
progressives.json Update Raft for Final Chapter (#724) 2022-07-06 04:37:08 +02:00
regions.json New features and fixes for Raft (#984) 2022-09-03 21:25:04 +02:00
resourcepacks.json Update Raft for Final Chapter (#724) 2022-07-06 04:37:08 +02:00