untangle start_randomizer
not as bad as some of the functions, but still a couple control flow errorsmaster
parent
707a7b70a1
commit
12a22c8724
|
@ -3124,15 +3124,11 @@ def start_randomizer(rom, settings):
|
||||||
elif nodeType == 'Boss':
|
elif nodeType == 'Boss':
|
||||||
World.add_to_majors(name)
|
World.add_to_majors(name)
|
||||||
BossLocations.append(name)
|
BossLocations.append(name)
|
||||||
else:
|
elif nodeType == 'Data' or item == 'E-Tank':
|
||||||
if nodeType == 'Data' or item == 'E-Tank':
|
|
||||||
World.add_to_majors(name)
|
World.add_to_majors(name)
|
||||||
if name == 'Data S3':
|
if name == 'Data S3':
|
||||||
BossLocations.append(name)
|
BossLocations.append(name)
|
||||||
if not 'Item' in name:
|
if 'Item' in name or nodeType == 'Boss' or nodeType == 'Data':
|
||||||
if not nodeType == 'Boss':
|
|
||||||
if nodeType == 'Data':
|
|
||||||
pass
|
|
||||||
AreaItemLocations[areaIndex].append(name)
|
AreaItemLocations[areaIndex].append(name)
|
||||||
|
|
||||||
World.ConnectAllNodes()
|
World.ConnectAllNodes()
|
||||||
|
|
Loading…
Reference in New Issue