SM: failing generation fixes (#1726)

- fixed wrong condition in Collect to assign lastAP
- fixed possible infinite loop in generating output when many SM worlds are present
- fixed new VARIA code that changed a list used for every SM worlds and would throw if many SM worlds uses Aea rando and not AreaLayout
This commit is contained in:
lordlou
2023-04-16 23:46:19 -04:00
committed by GitHub
parent f6758524d5
commit cb634fa8d4
6 changed files with 43 additions and 34 deletions

View File

@@ -740,7 +740,7 @@ class Objectives(object):
if c not in char2tile:
continue
romFile.writeWord(0x3800 + char2tile[c])
Synonyms.alreadyUsed = []
# write goal completed positions y in sprites OAM
baseY = 0x40
addr = Addresses.getOne('objectivesSpritesOAM')