mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 20:21:32 -06:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user