add random forced hats

pull/79/head
justcool393 2022-12-16 17:38:28 -06:00 committed by geese_suck
parent 7755ef6d57
commit 60777bdc09
Signed by: geese_suck
GPG Key ID: 4D09E4B0A7264746
5 changed files with 5 additions and 3 deletions

View File

@ -260,8 +260,8 @@ class User(Base):
return ''
if HOLIDAY_EVENT:
from files.events.helpers.const import EVENT_FORCED_HAT
if EVENT_FORCED_HAT: return EVENT_FORCED_HAT
from files.events.helpers.const import EVENT_FORCED_HATS
if EVENT_FORCED_HATS: return random.choice(EVENT_FORCED_HATS)
if self.is_cakeday:
return '/i/hats/Cakeday.webp'

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

View File

@ -50,4 +50,6 @@ EVENT_AWARDS = {
"cosmetic": True
},
}
EVENT_FORCED_HAT = '/i/hats/Santa Hat I.webp?h=7'
EVENT_FORCED_HATS = ['/i/hats/Santa Hat III.webp?h=1', \
'/i/hats/Winter Cap.webp?h=1', \
'/i/hats/Present Bot.webp?h=1']