add owoify and marsify to offsites

master
Aevann1 2022-09-02 20:10:35 +02:00
parent 80cd9f9bbb
commit 2201745c93
3 changed files with 25 additions and 4 deletions

View File

@ -88,7 +88,7 @@ def award_timers(v, bot=False):
dirty = True dirty = True
if v.marsify and v.marsify < now: if v.marsify and v.marsify < now:
v.marsify = None v.marsify = None
# notify_if_not_bot("Your marsify status has expired!") if SITE_NAME != 'rDrama': notify_if_not_bot("Your marsify status has expired!")
dirty = True dirty = True
if dirty: if dirty:

View File

@ -716,6 +716,27 @@ AWARDS = {
}, },
} }
if SITE_NAME != 'rDrama':
EXTRA_AWARDS = {
"owoify": {
"kind": "owoify",
"title": "OwOify",
"description": "OwOifies the recipient's comments for 6 hours.",
"icon": "fas fa-paw-simple",
"color": "text-purple",
"price": 400
},
"marsify": {
"kind": "marsify",
"title": "Marsify",
"description": "Marsifies the recipient's comments for 6 hours.",
"icon": "fas fa-cat",
"color": "text-white",
"price": 400
},
}
AWARDS.update(EXTRA_AWARDS)
if SITE_NAME == 'PCM': if SITE_NAME == 'PCM':
PCM_AWARDS = { PCM_AWARDS = {
"croag": { "croag": {
@ -743,7 +764,7 @@ if SITE_NAME == 'PCM':
"price": 4000 "price": 4000
} }
} }
AWARDS = {**PCM_AWARDS, **AWARDS} AWARDS.update(PCM_AWARDS)
# Disable unused awards, and site-specific award inclusion/exclusion. # Disable unused awards, and site-specific award inclusion/exclusion.
AWARDS_DISABLED = [ AWARDS_DISABLED = [

View File

@ -349,7 +349,7 @@ def award_thing(v, thing_type, id):
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
else: author.earlylife = int(time.time()) + 86400 else: author.earlylife = int(time.time()) + 86400
elif "Furry" in kind and kind == v.house: elif ("Furry" in kind and kind == v.house) or kind == 'owoify':
if author.owoify: author.owoify += 21600 if author.owoify: author.owoify += 21600
else: author.owoify = int(time.time()) + 21600 else: author.owoify = int(time.time()) + 21600
@ -359,7 +359,7 @@ def award_thing(v, thing_type, id):
if author.marsify: body = marsify(body) if author.marsify: body = marsify(body)
thing.body_html = sanitize(body, limit_pings=5) thing.body_html = sanitize(body, limit_pings=5)
g.db.add(thing) g.db.add(thing)
elif "Femboy" in kind and kind == v.house: elif ("Femboy" in kind and kind == v.house) or kind == 'marsify':
if author.marsify: author.marsify += 21600 if author.marsify: author.marsify += 21600
else: author.marsify = int(time.time()) + 21600 else: author.marsify = int(time.time()) + 21600