forked from MarseyWorld/MarseyWorld
adjust bite award logic
parent
f17192e68b
commit
77128f54f8
|
@ -72,6 +72,7 @@ def award_timers(v, bot=False):
|
||||||
if v.old_house:
|
if v.old_house:
|
||||||
notify_if_not_bot("Your vampire status has ended!")
|
notify_if_not_bot("Your vampire status has ended!")
|
||||||
v.house = v.old_house
|
v.house = v.old_house
|
||||||
|
v.old_house = None
|
||||||
|
|
||||||
badge = v.has_badge(168)
|
badge = v.has_badge(168)
|
||||||
if badge: g.db.delete(badge)
|
if badge: g.db.delete(badge)
|
||||||
|
|
|
@ -358,11 +358,14 @@ def award_thing(v, thing_type, id):
|
||||||
g.db.add(thing)
|
g.db.add(thing)
|
||||||
elif "Vampire" in kind and kind == v.house:
|
elif "Vampire" in kind and kind == v.house:
|
||||||
if author.bite: author.bite += 86400 * 7
|
if author.bite: author.bite += 86400 * 7
|
||||||
else:
|
else: author.bite = int(time.time()) + 86400 * 7
|
||||||
author.bite = int(time.time()) + 86400 * 7
|
|
||||||
|
if not author.old_house:
|
||||||
author.old_house = author.house
|
author.old_house = author.house
|
||||||
|
|
||||||
author.house = 'Vampire'
|
if 'Vampire' not in author.house:
|
||||||
|
author.house = 'Vampire'
|
||||||
|
|
||||||
badge_grant(user=author, badge_id=168)
|
badge_grant(user=author, badge_id=168)
|
||||||
elif "Racist" in kind and kind == v.house:
|
elif "Racist" in kind and kind == v.house:
|
||||||
if author.earlylife: author.earlylife += 86400
|
if author.earlylife: author.earlylife += 86400
|
||||||
|
|
Loading…
Reference in New Issue