Forced santa hat, lootbox const prep.

pull/79/head
Snakes 2022-12-15 23:36:52 -05:00 committed by geese_suck
parent 7748c7fe4c
commit 0ad16b2ff0
Signed by: geese_suck
GPG Key ID: 4D09E4B0A7264746
4 changed files with 5 additions and 7 deletions

View File

@ -1,4 +1,4 @@
EVENT_AWARDS = {
}
EVENT_FORCED_HAT = None
EVENT_FORCED_HAT = '/i/hats/Santa Hat I.webp?h=7'

View File

@ -675,6 +675,8 @@ AWARDS_DISABLED = [
'candy-corn', 'ectoplasm', 'bones', 'pumpkin', # Homoween '22 (cont'd)
]
LOOTBOX_ITEM_COUNT = 5
LOOTBOX_CONTENTS = ["firework", "confetti", "ricardo", "wholesome", "shit", "fireflies", "scooter", "train"]
HOUSE_AWARDS = {
"Furry": {
@ -737,8 +739,6 @@ if SITE_NAME == 'PCM':
#AWARDS_DISABLED.extend(['ban','pizzashill','marsey','bird','grass','chud','unblockable'])
AWARDS_DISABLED.extend(['unblockable'])
AWARDS_DISABLED.remove('ghost')
elif SITE_NAME == 'WPD':
AWARDS_DISABLED.remove('lootbox')
if not FEATURES['MARSEYBUX']:
AWARDS_DISABLED.append('benefactor')

View File

@ -501,8 +501,6 @@ BADGE_BLACKLIST = { # only grantable by AEVANN_ID and SNAKES_ID except on PCM
NOTIFIED_USERS = {}
LOOTBOX_ITEM_COUNT = 5
if SITE == 'rdrama.net':
FEATURES['PRONOUNS'] = True
FEATURES['HOUSES'] = True

View File

@ -8,7 +8,7 @@ from files.classes.userblock import UserBlock
from files.helpers.actions import *
from files.helpers.alerts import *
from files.helpers.config.const import *
from files.helpers.config.awards import AWARDS_ENABLED, HOUSE_AWARDS
from files.helpers.config.awards import AWARDS_ENABLED, HOUSE_AWARDS, LOOTBOX_ITEM_COUNT, LOOTBOX_CONTENTS
from files.helpers.get import *
from files.helpers.marsify import marsify
from files.helpers.owoify import owoify
@ -94,7 +94,7 @@ def buy(v:User, award):
if award == "lootbox":
lootbox_items = []
for _ in range(LOOTBOX_ITEM_COUNT): # five items per lootbox
lb_award = random.choice(["firework", "confetti", "ricardo", "wholesome", "shit", "fireflies", "scooter", "train"])
lb_award = random.choice(LOOTBOX_CONTENTS)
lootbox_items.append(AWARDS[lb_award]['title'])
lb_award = AwardRelationship(user_id=v.id, kind=lb_award, price_paid=price // LOOTBOX_ITEM_COUNT)
g.db.add(lb_award)