forked from rDrama/rDrama
1
0
Fork 0

adjust bite award logic

master
Aevann1 2022-09-09 08:49:05 +02:00
parent f17192e68b
commit 77128f54f8
2 changed files with 7 additions and 3 deletions

View File

@ -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)

View File

@ -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
author.house = 'Vampire'
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