add random forced hats
parent
7755ef6d57
commit
60777bdc09
|
@ -260,8 +260,8 @@ class User(Base):
|
||||||
return ''
|
return ''
|
||||||
|
|
||||||
if HOLIDAY_EVENT:
|
if HOLIDAY_EVENT:
|
||||||
from files.events.helpers.const import EVENT_FORCED_HAT
|
from files.events.helpers.const import EVENT_FORCED_HATS
|
||||||
if EVENT_FORCED_HAT: return EVENT_FORCED_HAT
|
if EVENT_FORCED_HATS: return random.choice(EVENT_FORCED_HATS)
|
||||||
|
|
||||||
if self.is_cakeday:
|
if self.is_cakeday:
|
||||||
return '/i/hats/Cakeday.webp'
|
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 |
|
@ -50,4 +50,6 @@ EVENT_AWARDS = {
|
||||||
"cosmetic": True
|
"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']
|
||||||
|
|
Loading…
Reference in New Issue