Fix stasis usage
This commit is contained in:
parent
eb3d4d3ccd
commit
1e5af88fb1
@ -1004,23 +1004,15 @@ def reaper(cli, gameid):
|
|||||||
if what == "quit" and (datetime.now() - timeofdc) > timedelta(seconds=var.QUIT_GRACE_TIME):
|
if what == "quit" and (datetime.now() - timeofdc) > timedelta(seconds=var.QUIT_GRACE_TIME):
|
||||||
cli.msg(chan, ("\02{0}\02 died due to a fatal attack by wild animals. Appears (s)he "+
|
cli.msg(chan, ("\02{0}\02 died due to a fatal attack by wild animals. Appears (s)he "+
|
||||||
"was a \02{1}\02.").format(dcedplayer, var.get_role(dcedplayer)))
|
"was a \02{1}\02.").format(dcedplayer, var.get_role(dcedplayer)))
|
||||||
try:
|
if var.PHASE != "join":
|
||||||
cloak = var.USERS[dcedplayer]['cloak']
|
make_stasis(cloak, var.PART_STASIS_PENALTY)
|
||||||
if cloak is not None:
|
|
||||||
var.illegal_joins[cloak] += var.PART_STASIS_PENALTY
|
|
||||||
except KeyError:
|
|
||||||
pass
|
|
||||||
if not del_player(cli, dcedplayer, devoice = False):
|
if not del_player(cli, dcedplayer, devoice = False):
|
||||||
return
|
return
|
||||||
elif what == "part" and (datetime.now() - timeofdc) > timedelta(seconds=var.PART_GRACE_TIME):
|
elif what == "part" and (datetime.now() - timeofdc) > timedelta(seconds=var.PART_GRACE_TIME):
|
||||||
cli.msg(chan, ("\02{0}\02 died due to eating poisonous berries. Appears (s)he was "+
|
cli.msg(chan, ("\02{0}\02 died due to eating poisonous berries. Appears (s)he was "+
|
||||||
"a \02{1}\02.").format(dcedplayer, var.get_role(dcedplayer)))
|
"a \02{1}\02.").format(dcedplayer, var.get_role(dcedplayer)))
|
||||||
try:
|
if var.PHASE != "join":
|
||||||
cloak = var.USERS[dcedplayer]['cloak']
|
make_stais(cloak, var.PART_STASIS_PENALTY)
|
||||||
if cloak is not None:
|
|
||||||
var.illegal_joins[cloak] += var.PART_STASIS_PENALTY
|
|
||||||
except KeyError:
|
|
||||||
pass
|
|
||||||
if not del_player(cli, dcedplayer, devoice = False):
|
if not del_player(cli, dcedplayer, devoice = False):
|
||||||
return
|
return
|
||||||
time.sleep(10)
|
time.sleep(10)
|
||||||
|
Loading…
Reference in New Issue
Block a user