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:
|
||||
notify_if_not_bot("Your vampire status has ended!")
|
||||
v.house = v.old_house
|
||||
v.old_house = None
|
||||
|
||||
badge = v.has_badge(168)
|
||||
if badge: g.db.delete(badge)
|
||||
|
|
|
@ -358,11 +358,14 @@ def award_thing(v, thing_type, id):
|
|||
g.db.add(thing)
|
||||
elif "Vampire" in kind and kind == v.house:
|
||||
if author.bite: author.bite += 86400 * 7
|
||||
else:
|
||||
author.bite = int(time.time()) + 86400 * 7
|
||||
else: author.bite = int(time.time()) + 86400 * 7
|
||||
|
||||
if not author.old_house:
|
||||
author.old_house = author.house
|
||||
|
||||
if 'Vampire' not in author.house:
|
||||
author.house = 'Vampire'
|
||||
|
||||
badge_grant(user=author, badge_id=168)
|
||||
elif "Racist" in kind and kind == v.house:
|
||||
if author.earlylife: author.earlylife += 86400
|
||||
|
|
Loading…
Reference in New Issue