increase vamp award duration from 1 day to 2 days (but dont advertise that this time)

master
Aevann1 2022-11-09 21:09:38 +02:00
parent 4f491d5ef7
commit 282762bef8
2 changed files with 3 additions and 3 deletions

View File

@ -1278,7 +1278,7 @@ HOUSE_AWARDS = {
"Vampire": {
"kind": "Vampire",
"title": "Bite",
"description": "Turns the recipient into a vampire for 24 hours.",
"description": "Turns the recipient into a vampire for 2 days.",
"icon": "fas fa-bat",
"color": "text-gray",
"price": 400,

View File

@ -344,8 +344,8 @@ def award_thing(v, thing_type, id):
thing.body_html = sanitize(body, limit_pings=5)
g.db.add(thing)
elif "Vampire" in kind and kind == v.house:
if author.bite: author.bite += 86400
else: author.bite = int(time.time()) + 86400
if author.bite: author.bite += 172800
else: author.bite = int(time.time()) + 172800
if not author.old_house:
author.old_house = author.house