fsd
BIN
files/assets/images/emojis/chadnocapy.webp
Normal file
After Width: | Height: | Size: 24 KiB |
BIN
files/assets/images/emojis/chadwomanasian.webp
Normal file
After Width: | Height: | Size: 4 KiB |
BIN
files/assets/images/emojis/chadwomanblack.webp
Normal file
After Width: | Height: | Size: 5.6 KiB |
BIN
files/assets/images/emojis/chadwomanlatinx.webp
Normal file
After Width: | Height: | Size: 3.1 KiB |
BIN
files/assets/images/emojis/chadwomannordic.webp
Normal file
After Width: | Height: | Size: 8.4 KiB |
BIN
files/assets/images/emojis/ethottalking.webp
Normal file
After Width: | Height: | Size: 4.9 KiB |
BIN
files/assets/images/emojis/holdupjak.webp
Normal file
After Width: | Height: | Size: 5.2 KiB |
BIN
files/assets/images/emojis/naziseethe.webp
Normal file
After Width: | Height: | Size: 6.1 KiB |
BIN
files/assets/images/emojis/purerage.webp
Normal file
After Width: | Height: | Size: 4.6 KiB |
BIN
files/assets/images/emojis/wolfdramanomicon.webp
Normal file
After Width: | Height: | Size: 7.9 KiB |
BIN
files/assets/images/emojis/wombiezolf.webp
Normal file
After Width: | Height: | Size: 8.5 KiB |
|
@ -25,13 +25,13 @@ function loadEmojis(form) {
|
||||||
|
|
||||||
'rage': ['trolldespair','clueless','troll','bitchplease','spit','challengeaccepted','contentiouscereal','cryingatcuteness','derp','derpcornsyrup','derpcrying','derpcute','derpdumb','derpeuphoria','derpinahd','derpinapokerface','derpinasnickering','derpprocessing','derprealization','derpsnickering','derptalking','derpthinking','derpthumbsup','derpunimpressed','derpwhy','donotwant','epicfacefeatures','fancywithwine','fffffffuuuuuuuuuuuu','flipthetable','foreveralone','foreveralonehappy','hewillnever','idontknow','interuptedreading','iseewhatyoudidthere','killherkillher','ledesire','leexcited','legenius','lelolidk','lemiddlefinger','lemindblown','leokay','lepanicrunning','lepokerface','lepokerface2','lerageface','leseriousface','likeaboss','lolface','longwhiskers','manymiddlefingers','megusta','motherfucker','motherofgod','mysides','ohgodwhy','pervertedspiderman','picard','ragestrangle','rukiddingme','tfwyougettrolled','trollolol','truestorybro','xallthey','yuno'],
|
'rage': ['trolldespair','clueless','troll','bitchplease','spit','challengeaccepted','contentiouscereal','cryingatcuteness','derp','derpcornsyrup','derpcrying','derpcute','derpdumb','derpeuphoria','derpinahd','derpinapokerface','derpinasnickering','derpprocessing','derprealization','derpsnickering','derptalking','derpthinking','derpthumbsup','derpunimpressed','derpwhy','donotwant','epicfacefeatures','fancywithwine','fffffffuuuuuuuuuuuu','flipthetable','foreveralone','foreveralonehappy','hewillnever','idontknow','interuptedreading','iseewhatyoudidthere','killherkillher','ledesire','leexcited','legenius','lelolidk','lemiddlefinger','lemindblown','leokay','lepanicrunning','lepokerface','lepokerface2','lerageface','leseriousface','likeaboss','lolface','longwhiskers','manymiddlefingers','megusta','motherfucker','motherofgod','mysides','ohgodwhy','pervertedspiderman','picard','ragestrangle','rukiddingme','tfwyougettrolled','trollolol','truestorybro','xallthey','yuno'],
|
||||||
|
|
||||||
'wojak': ['trumpjaktalking','rdramajanny','soyreddit','doomerboy','npcsupport','npcoppse','grugthink','soyconsoomer','soyjaktalking','soyquack','tradboy','sciencejak','soyjakanimeglasses','soymad','boomerportrait','soycry','punchjak','seethejak','chadyes','chadno','abusivewife','ancap','bardfinn','bloomer','boomer','boomermonster','brainletbush','brainletcaved','brainletchair','brainletchest','brainletmaga','brainletpit','chad','chadarab','chadasian','chadblack','chadjesus','chadjew','chadjihadi','chadlatino','chadlibleft','chadnordic','chadsikh','chadusa','coomer','doomer','doomerfront','doomergirl','ethot','fatbrain','fatpriest','femboy','gogetter','grug','monke','nazijak','npc','npcfront','npcmaga','psychojak','ragejak','ragemask','ramonajak','soyjackwow','soyjak','soyjakfront','soyjakhipster','soyjakmaga','soyjakyell','tomboy','zoomer','zoomersoy'],
|
'wojak': ['purerage','naziseethe','holdupjak','ethottalking','chadwomanasian','chadwomanblack','chadwomanlatinx','chadwomannordic','trumpjaktalking','rdramajanny','soyreddit','doomerboy','npcsupport','npcoppse','grugthink','soyconsoomer','soyjaktalking','soyquack','tradboy','sciencejak','soyjakanimeglasses','soymad','boomerportrait','soycry','punchjak','seethejak','chadyes','chadno','abusivewife','ancap','bardfinn','bloomer','boomer','boomermonster','brainletbush','brainletcaved','brainletchair','brainletchest','brainletmaga','brainletpit','chad','chadarab','chadasian','chadblack','chadjesus','chadjew','chadjihadi','chadlatino','chadlibleft','chadnordic','chadsikh','chadusa','coomer','doomer','doomerfront','doomergirl','ethot','fatbrain','fatpriest','femboy','gogetter','grug','monke','nazijak','npc','npcfront','npcmaga','psychojak','ragejak','ragemask','ramonajak','soyjackwow','soyjak','soyjakfront','soyjakhipster','soyjakmaga','soyjakyell','tomboy','zoomer','zoomersoy'],
|
||||||
|
|
||||||
'flags': ['russia','niger','lgbt','animesexual','blacknation','blm','blueline','dreamgender','fatpride','incelpride','israel','kazakhstan','landlordlove','scalperpride','superstraight','trans','translord','transracial','usa'],
|
'flags': ['russia','niger','lgbt','animesexual','blacknation','blm','blueline','dreamgender','fatpride','incelpride','israel','kazakhstan','landlordlove','scalperpride','superstraight','trans','translord','transracial','usa'],
|
||||||
|
|
||||||
'wolf': ['wolfamogus','wolfmarine','wolfromulusremus','wolfrope','wolftinfoil','wolfmarseymask','wolfputin','wolfdrama','wolfcumjar','wolflgbt','wolfmarseyhead','wolfnoir','wolfsherifssmoking','wolftrans','wolfvaporwave','wolfangry','wolfbrains','wolfcry','wolfdead','wolfdevilish','wolffacepalm','wolfhappy','wolfidea','wolfkoala','wolflaugh','wolflove','wolfmeditate','wolfphone','wolfrainbow','wolfroses','wolfsad','wolfsfear','wolfsleep','wolftear','wolfthink','wolfthumbsup','wolfupsidedown','wolfvictory','wolfwave','wolfwink'],
|
'wolf': ['wombiezolf','wolfdramanomicon','wolfamogus','wolfmarine','wolfromulusremus','wolfrope','wolftinfoil','wolfmarseymask','wolfputin','wolfdrama','wolfcumjar','wolflgbt','wolfmarseyhead','wolfnoir','wolfsherifssmoking','wolftrans','wolfvaporwave','wolfangry','wolfbrains','wolfcry','wolfdead','wolfdevilish','wolffacepalm','wolfhappy','wolfidea','wolfkoala','wolflaugh','wolflove','wolfmeditate','wolfphone','wolfrainbow','wolfroses','wolfsad','wolfsfear','wolfsleep','wolftear','wolfthink','wolfthumbsup','wolfupsidedown','wolfvictory','wolfwave','wolfwink'],
|
||||||
|
|
||||||
'misc': ['xdoubt','gigachadjesus','yotsubafish','yotsubalol','sigmatalking','zoroarkconfused','zoroarkhappy','zoroarkpout','zoroarksleepy','casanovanova','deuxwaifu','flairlessmong','hardislife','redditgigachad','rfybear','etika','sneed','retardedchildren','bruh','autism','doot','kylieface','queenyes','wholesomeseal','chadyescapy','gigachadglow','gigachadorthodox','gigachad','gigachad2','gigachad3']
|
'misc': ['chadyescapy','chadnocapy','xdoubt','gigachadjesus','yotsubafish','yotsubalol','sigmatalking','zoroarkconfused','zoroarkhappy','zoroarkpout','zoroarksleepy','casanovanova','deuxwaifu','flairlessmong','hardislife','redditgigachad','rfybear','etika','sneed','retardedchildren','bruh','autism','doot','kylieface','queenyes','wholesomeseal','gigachadglow','gigachadorthodox','gigachad','gigachad2','gigachad3']
|
||||||
}
|
}
|
||||||
|
|
||||||
ruqq = document.getElementById('EMOJIS_ruqqie')
|
ruqq = document.getElementById('EMOJIS_ruqqie')
|
||||||
|
|
|
@ -193,6 +193,23 @@ class User(Base):
|
||||||
|
|
||||||
return time.strftime("%d %b %Y", time.gmtime(self.created_utc))
|
return time.strftime("%d %b %Y", time.gmtime(self.created_utc))
|
||||||
|
|
||||||
|
@property
|
||||||
|
@lazy
|
||||||
|
def discount(self):
|
||||||
|
if self.patron == 1: discount = 0.90
|
||||||
|
elif self.patron == 2: discount = 0.85
|
||||||
|
elif self.patron == 3: discount = 0.80
|
||||||
|
elif self.patron == 4: discount = 0.75
|
||||||
|
elif self.patron == 5: discount = 0.70
|
||||||
|
elif self.patron == 6: discount = 0.65
|
||||||
|
else: discount = 1
|
||||||
|
|
||||||
|
for badge in [69,70,71,72,73]:
|
||||||
|
if self.has_badge(badge): discount -= discounts[badge]
|
||||||
|
|
||||||
|
return discount
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@lazy
|
@lazy
|
||||||
def user_awards(self):
|
def user_awards(self):
|
||||||
|
|
|
@ -21,21 +21,9 @@ def shop(v):
|
||||||
for useraward in g.db.query(AwardRelationship).filter(AwardRelationship.user_id == v.id, AwardRelationship.submission_id == None, AwardRelationship.comment_id == None).all():
|
for useraward in g.db.query(AwardRelationship).filter(AwardRelationship.user_id == v.id, AwardRelationship.submission_id == None, AwardRelationship.comment_id == None).all():
|
||||||
if useraward.kind in AWARDS: AWARDS[useraward.kind]["owned"] += 1
|
if useraward.kind in AWARDS: AWARDS[useraward.kind]["owned"] += 1
|
||||||
|
|
||||||
if v.patron == 1: discount = 0.90
|
|
||||||
elif v.patron == 2: discount = 0.85
|
|
||||||
elif v.patron == 3: discount = 0.80
|
|
||||||
elif v.patron == 4: discount = 0.75
|
|
||||||
elif v.patron == 5: discount = 0.70
|
|
||||||
elif v.patron == 6: discount = 0.65
|
|
||||||
elif v.patron == 7: discount = 0.60
|
|
||||||
else: discount = 1
|
|
||||||
|
|
||||||
for badge in [69,70,71,72,73]:
|
|
||||||
if v.has_badge(badge): discount -= discounts[badge]
|
|
||||||
|
|
||||||
for val in AWARDS.values():
|
for val in AWARDS.values():
|
||||||
val["baseprice"] = int(val["price"])
|
val["baseprice"] = int(val["price"])
|
||||||
val["price"] = int(val["price"]*discount)
|
val["price"] = int(val["price"] * v.discount)
|
||||||
|
|
||||||
sales = g.db.query(func.sum(User.coins_spent)).scalar()
|
sales = g.db.query(func.sum(User.coins_spent)).scalar()
|
||||||
return render_template("shop.html", awards=list(AWARDS.values()), v=v, sales=sales)
|
return render_template("shop.html", awards=list(AWARDS.values()), v=v, sales=sales)
|
||||||
|
@ -55,18 +43,7 @@ def buy(v, award):
|
||||||
if award not in AWARDS: abort(400)
|
if award not in AWARDS: abort(400)
|
||||||
price = AWARDS[award]["price"]
|
price = AWARDS[award]["price"]
|
||||||
|
|
||||||
if v.patron == 1: discount = 0.90
|
price = int(price * v.discount)
|
||||||
elif v.patron == 2: discount = 0.85
|
|
||||||
elif v.patron == 3: discount = 0.80
|
|
||||||
elif v.patron == 4: discount = 0.75
|
|
||||||
elif v.patron == 5: discount = 0.70
|
|
||||||
elif v.patron == 6: discount = 0.65
|
|
||||||
else: discount = 1
|
|
||||||
|
|
||||||
for badge in [69,70,71,72,73]:
|
|
||||||
if v.has_badge(badge): discount -= discounts[badge]
|
|
||||||
|
|
||||||
price = int(price*discount)
|
|
||||||
|
|
||||||
if request.values.get("mb"):
|
if request.values.get("mb"):
|
||||||
if v.procoins < price: return {"error": "Not enough marseybux."}, 400
|
if v.procoins < price: return {"error": "Not enough marseybux."}, 400
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
<input type="hidden" name="formkey", value="{{v.formkey}}">
|
<input type="hidden" name="formkey", value="{{v.formkey}}">
|
||||||
<div class="card-columns award-columns awards-wrapper">
|
<div class="card-columns award-columns awards-wrapper">
|
||||||
{% for award in v.user_awards %}
|
{% for award in v.user_awards %}
|
||||||
<a role="button" id="{{award.kind}}" class="card" onclick="pick('{{award.kind}}', {{award.price}} <= {{v.procoins}}, {{award.price}} <= {{v.coins}})">
|
<a role="button" id="{{award.kind}}" class="card" onclick="pick('{{award.kind}}', {{award.price}}*{{v.discount}} <= {{v.procoins}}, {{award.price}}*{{v.discount}} <= {{v.coins}})">
|
||||||
<i class="{{award.icon}} {{award.color}}"></i>
|
<i class="{{award.icon}} {{award.color}}"></i>
|
||||||
<div class="pt-2" style="font-weight: bold; font-size: 14px; color:#E1E1E1">{{award.title}}</div>
|
<div class="pt-2" style="font-weight: bold; font-size: 14px; color:#E1E1E1">{{award.title}}</div>
|
||||||
<div class="text-muted"><span id="{{award.kind}}-owned">{{award.owned}}</span> owned</div>
|
<div class="text-muted"><span id="{{award.kind}}-owned">{{award.owned}}</span> owned</div>
|
||||||
|
|
|
@ -94,4 +94,4 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script src="/assets/js/emoji_modal.js?v=265"></script>
|
<script src="/assets/js/emoji_modal.js?v=266"></script>
|