Fix for keydrops/enemy drops to not be repeatable

This commit is contained in:
aerinon
2022-05-03 13:55:39 -06:00
parent ea745ff22e
commit 6ab426b9f3
5 changed files with 6 additions and 3 deletions

View File

@@ -1052,7 +1052,7 @@ class PotSecretTable(object):
rom.write_bytes(pointer_address + room * 2, int16_as_bytes(data_address))
for pot in self.room_map[room]:
rom.write_bytes(data_pointer + list_idx * 3, pot.pot_data())
if pot.location is not None:
if pot.location is not None and not pot.location.forced_item:
collection_rate_mask |= 1 << (15 - list_idx)
if colorize and pot.obj_ref:
pot.obj_ref.change_type(Shuffled_Pot)