remotes/1693045480750635534/spooky-22
Aevann1 2021-12-03 21:47:59 +02:00
parent b24c9f63a7
commit a822be84c5
2 changed files with 99 additions and 1 deletions

View File

@ -616,7 +616,30 @@ AWARDS = {
"color": "text-gold",
"price": 50000
},
"snow": {
"kind": "snow",
"title": "Snow",
"description": "???",
"icon": "fas fa-snowflake",
"color": "text-gray",
"price": 300
},
"mistletoe": {
"kind": "mistletoe",
"title": "Mistletoe",
"description": "???",
"icon": "fas fa-mistletoe",
"color": "text-gray",
"price": 600
},
"mariah": {
"kind": "mariah",
"title": "Mariah",
"description": "???",
"icon": "fas fa-music",
"color": "text-gray",
"price": 800
},
}
AWARDS2 = {
@ -764,6 +787,30 @@ AWARDS2 = {
"color": "text-gold",
"price": 50000
},
"snow": {
"kind": "snow",
"title": "Snow",
"description": "???",
"icon": "fas fa-snowflake",
"color": "text-gray",
"price": 300
},
"mistletoe": {
"kind": "mistletoe",
"title": "Mistletoe",
"description": "???",
"icon": "fas fa-mistletoe",
"color": "text-gray",
"price": 600
},
"mariah": {
"kind": "mariah",
"title": "Mariah",
"description": "???",
"icon": "fas fa-music",
"color": "text-gray",
"price": 800
},
}
TROLLTITLES = [

View File

@ -210,6 +210,33 @@ def shop(v):
"owned": 0,
"price": 50000
},
"snow": {
"kind": "snow",
"title": "Snow",
"description": "???",
"icon": "fas fa-snowflake",
"color": "text-gray",
"owned": 0,
"price": 300
},
"mistletoe": {
"kind": "mistletoe",
"title": "Mistletoe",
"description": "???",
"icon": "fas fa-mistletoe",
"color": "text-gray",
"owned": 0,
"price": 600
},
"mariah": {
"kind": "mariah",
"title": "Mariah",
"description": "???",
"icon": "fas fa-music",
"color": "text-gray",
"owned": 0,
"price": 800
},
}
for useraward in g.db.query(AwardRelationship).filter(AwardRelationship.user_id == v.id, AwardRelationship.submission_id == None, AwardRelationship.comment_id == None).all():
@ -380,6 +407,30 @@ def buy(v, award):
"color": "text-gold",
"price": 50000
},
"snow": {
"kind": "snow",
"title": "Snow",
"description": "???",
"icon": "fas fa-snowflake",
"color": "text-gray",
"price": 300
},
"mistletoe": {
"kind": "mistletoe",
"title": "Mistletoe",
"description": "???",
"icon": "fas fa-mistletoe",
"color": "text-gray",
"price": 600
},
"mariah": {
"kind": "mariah",
"title": "Mariah",
"description": "???",
"icon": "fas fa-music",
"color": "text-gray",
"price": 800
},
}
if award not in AWARDS: abort(400)