SM: 20221101 update (#1479)

This adds support to most of Varia's 20221101 update. Notably, added Options for:
- Objectives
- Tourian
- RelaxedRoundRobinCF

As well as previously unsupported Options:
- EscapeRando
- RemoveEscapeEnemies
- HideItems
This commit is contained in:
lordlou
2023-04-09 18:35:46 -04:00
committed by GitHub
parent 0bc5a3bc8d
commit 6059b5ef66
78 changed files with 3214 additions and 24689 deletions

View File

@@ -26,6 +26,13 @@ class RandoServices(object):
self.cache = cache
self.log = log.get('RandoServices')
@staticmethod
def printProgress(s):
sys.stdout.write(s)
# avoid flushing I/O on pythonanywhere, as they are very slow
if os.getenv("PYTHONANYWHERE_DOMAIN") is None:
sys.stdout.flush()
# collect an item/loc with logic in a container from a given AP
# return new AP
def collect(self, ap, container, itemLoc, pickup=True):
@@ -36,8 +43,7 @@ class RandoServices(object):
self.currentLocations(ap, container)
container.collect(itemLoc, pickup=pickup)
self.log.debug("COLLECT "+itemLoc.Item.Type+" at "+itemLoc.Location.Name)
sys.stdout.write('.')
sys.stdout.flush()
RandoServices.printProgress('.')
return itemLoc.Location.accessPoint if pickup == True else ap
# gives all the possible theoretical locations for a given item