MultiServer: add network commands Store, Retrieve, Modify and ModifyNotify
This commit is contained in:
@@ -77,10 +77,10 @@ class Filler(object):
|
||||
if aboveMaxDiffStr != '[ ]':
|
||||
self.errorMsg += "\nMaximum difficulty could not be applied everywhere. Affected locations: {}".format(aboveMaxDiffStr)
|
||||
isStuck = False
|
||||
print('\n%d step(s) in %dms' % (self.nSteps, int((date-self.startDate)*1000)))
|
||||
|
||||
if self.vcr != None:
|
||||
self.vcr.dump()
|
||||
return (isStuck, self.container.itemLocations, self.getProgressionItemLocations())
|
||||
return isStuck, self.container.itemLocations, self.getProgressionItemLocations()
|
||||
|
||||
# helper method to collect in item/location with logic. updates self.ap and VCR
|
||||
def collect(self, itemLoc, container=None, pickup=True):
|
||||
|
||||
@@ -168,7 +168,7 @@ class SoEWorld(World):
|
||||
self.world.get_location(wings_location, self.player).place_locked_item(wings_item)
|
||||
self.world.itempool.remove(wings_item)
|
||||
# generate stuff for later
|
||||
self.evermizer_seed = self.world.random.randint(0, 2**16-1) # TODO: make this an option for "full" plando?
|
||||
self.evermizer_seed = self.world.random.randint(0, 2 ** 16 - 1) # TODO: make this an option for "full" plando?
|
||||
|
||||
def generate_output(self, output_directory: str):
|
||||
player_name = self.world.get_player_name(self.player)
|
||||
@@ -223,7 +223,7 @@ class SoEWorld(World):
|
||||
try:
|
||||
os.unlink(placement_file)
|
||||
os.unlink(out_file)
|
||||
os.unlink(out_file[:-4]+'_SPOILER.log')
|
||||
os.unlink(out_file[:-4] + '_SPOILER.log')
|
||||
except:
|
||||
pass
|
||||
|
||||
@@ -236,7 +236,6 @@ class SoEWorld(World):
|
||||
multidata["connect_names"][self.connect_name] = payload
|
||||
|
||||
|
||||
|
||||
class SoEItem(Item):
|
||||
game: str = "Secret of Evermore"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user