fix syntax error and error preventing restart
This commit is contained in:
parent
3c90830cff
commit
a7c7bb808e
@ -790,7 +790,7 @@ class SleepyMode(GameMode):
|
|||||||
decorators.COMMANDS["south"].remove(self.south_cmd)
|
decorators.COMMANDS["south"].remove(self.south_cmd)
|
||||||
decorators.COMMANDS["s"].remove(self.south_cmd)
|
decorators.COMMANDS["s"].remove(self.south_cmd)
|
||||||
decorators.COMMANDS["west"].remove(self.west_cmd)
|
decorators.COMMANDS["west"].remove(self.west_cmd)
|
||||||
decorators.COMMANDS["west"].remove(self.west_cmd)
|
decorators.COMMANDS["w"].remove(self.west_cmd)
|
||||||
|
|
||||||
def dullahan_targets(self, evt, cli, var, dullahans, max_targets):
|
def dullahan_targets(self, evt, cli, var, dullahans, max_targets):
|
||||||
for dull in dullahans:
|
for dull in dullahans:
|
||||||
@ -800,7 +800,7 @@ class SleepyMode(GameMode):
|
|||||||
if random.random() < 1/5:
|
if random.random() < 1/5:
|
||||||
self.having_nightmare = True
|
self.having_nightmare = True
|
||||||
with var.WARNING_LOCK:
|
with var.WARNING_LOCK:
|
||||||
t = threading.Timer(60, self.do_nightmare, (cli, random.choice(var.list_players()))
|
t = threading.Timer(60, self.do_nightmare, (cli, random.choice(var.list_players())))
|
||||||
t.start()
|
t.start()
|
||||||
else:
|
else:
|
||||||
self.having_nightmare = None
|
self.having_nightmare = None
|
||||||
|
Loading…
x
Reference in New Issue
Block a user