From 282762bef85601f67216cae7aca937f3b3557bb2 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 9 Nov 2022 21:09:38 +0200 Subject: [PATCH] increase vamp award duration from 1 day to 2 days (but dont advertise that this time) --- files/helpers/const.py | 2 +- files/routes/awards.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/helpers/const.py b/files/helpers/const.py index 2df01c7ca..60f1e2a9a 100644 --- a/files/helpers/const.py +++ b/files/helpers/const.py @@ -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, diff --git a/files/routes/awards.py b/files/routes/awards.py index 5854a28b0..b9ce33f31 100644 --- a/files/routes/awards.py +++ b/files/routes/awards.py @@ -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