Awards: enable lootbox on WPD, refactor AWARDS2 logic.
parent
b7307735b1
commit
2bde3650d4
|
@ -693,15 +693,20 @@ if SITE_NAME == 'PCM':
|
||||||
}
|
}
|
||||||
AWARDS = {**PCM_AWARDS, **AWARDS}
|
AWARDS = {**PCM_AWARDS, **AWARDS}
|
||||||
|
|
||||||
AWARDS2 = deepcopy(AWARDS)
|
# Disable unused awards, and site-specific award inclusion/exclusion.
|
||||||
for k, val in AWARDS.items():
|
AWARDS_DISABLED = [
|
||||||
if val['description'] == '' and not (k == 'ghost' and SITE_NAME == 'PCM'): AWARDS2.pop(k)
|
'ghost', 'nword', 'lootbox', # Generic
|
||||||
if SITE == 'pcmemes.net' and k in ('ban','pizzashill','marsey','bird','grass','chud','unblockable'): AWARDS2.pop(k)
|
'snow', 'gingerbread', 'lights', 'candycane', 'fireplace', # Fistmas
|
||||||
|
'grinch', 'haunt', 'upsidedown', 'stab', 'spiders', 'fog', # Homoween
|
||||||
|
]
|
||||||
|
if SITE == 'pcmemes.net':
|
||||||
|
AWARDS_DISABLED.extend(['ban','pizzashill','marsey','bird','grass','chud','unblockable',])
|
||||||
|
AWARDS_DISABLED.remove('ghost')
|
||||||
|
elif SITE_NAME == 'WPD':
|
||||||
|
AWARDS_DISABLED.remove('lootbox')
|
||||||
|
|
||||||
|
AWARDS2 = {x: AWARDS[x] for x in AWARDS if x not in AWARDS_DISABLED}
|
||||||
AWARDS3 = {}
|
AWARDS3 = {x: AWARDS2[x] for x in AWARDS2 if AWARDS2[x]['price'] <= 500}
|
||||||
for k, val in AWARDS2.items():
|
|
||||||
if val['price'] <= 500: AWARDS3[k] = val
|
|
||||||
|
|
||||||
DOUBLE_XP_ENABLED = -1 # set to unixtime for when DXP begins, -1 to disable
|
DOUBLE_XP_ENABLED = -1 # set to unixtime for when DXP begins, -1 to disable
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue