rename is_cosmetic to cosmetic

master
justcool393 2022-11-04 21:22:10 -05:00
parent f924f88821
commit 0943ee064c
2 changed files with 69 additions and 69 deletions

View File

@ -578,7 +578,7 @@ AWARDS = {
"color": "text-white", "color": "text-white",
"price": 3000, "price": 3000,
"deflectable": False, "deflectable": False,
"is_cosmetic": False "cosmetic": False
}, },
"nword": { "nword": {
"kind": "nword", "kind": "nword",
@ -588,7 +588,7 @@ AWARDS = {
"color": "text-success", "color": "text-success",
"price": 10000, "price": 10000,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
### Fistmas 2021 ### Fistmas 2021
"snow": { "snow": {
@ -599,7 +599,7 @@ AWARDS = {
"color": "text-blue-200", "color": "text-blue-200",
"price": 300, "price": 300,
"deflectable": False, "deflectable": False,
"is_cosmetic": True "cosmetic": True
}, },
"gingerbread": { "gingerbread": {
"kind": "gingerbread", "kind": "gingerbread",
@ -609,7 +609,7 @@ AWARDS = {
"color": "", "color": "",
"price": 300, "price": 300,
"deflectable": False, "deflectable": False,
"is_cosmetic": True "cosmetic": True
}, },
"lights": { "lights": {
"kind": "lights", "kind": "lights",
@ -619,7 +619,7 @@ AWARDS = {
"color": "", "color": "",
"price": 300, "price": 300,
"deflectable": False, "deflectable": False,
"is_cosmetic": True "cosmetic": True
}, },
"candycane": { "candycane": {
"kind": "candycane", "kind": "candycane",
@ -629,7 +629,7 @@ AWARDS = {
"color": "", "color": "",
"price": 400, "price": 400,
"deflectable": False, "deflectable": False,
"is_cosmetic": True "cosmetic": True
}, },
"fireplace": { "fireplace": {
"kind": "fireplace", "kind": "fireplace",
@ -639,7 +639,7 @@ AWARDS = {
"color": "", "color": "",
"price": 600, "price": 600,
"deflectable": False, "deflectable": False,
"is_cosmetic": True "cosmetic": True
}, },
"grinch": { "grinch": {
"kind": "grinch", "kind": "grinch",
@ -649,7 +649,7 @@ AWARDS = {
"color": "text-green-500", "color": "text-green-500",
"price": 1000, "price": 1000,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
### Homoween 2021 & 2022 ### Homoween 2021 & 2022
"haunt": { "haunt": {
@ -660,7 +660,7 @@ AWARDS = {
"color": "text-warning", "color": "text-warning",
"price": 500, "price": 500,
"deflectable": False, "deflectable": False,
"is_cosmetic": True "cosmetic": True
}, },
"upsidedown": { "upsidedown": {
"kind": "upsidedown", "kind": "upsidedown",
@ -670,7 +670,7 @@ AWARDS = {
"color": "", "color": "",
"price": 400, "price": 400,
"deflectable": False, "deflectable": False,
"is_cosmetic": True "cosmetic": True
}, },
"stab": { "stab": {
"kind": "stab", "kind": "stab",
@ -680,7 +680,7 @@ AWARDS = {
"color": "text-danger", "color": "text-danger",
"price": 300, "price": 300,
"deflectable": False, "deflectable": False,
"is_cosmetic": True "cosmetic": True
}, },
"spiders": { "spiders": {
"kind": "spiders", "kind": "spiders",
@ -690,7 +690,7 @@ AWARDS = {
"color": "text-black", "color": "text-black",
"price": 200, "price": 200,
"deflectable": False, "deflectable": False,
"is_cosmetic": True "cosmetic": True
}, },
"fog": { "fog": {
"kind": "fog", "kind": "fog",
@ -700,7 +700,7 @@ AWARDS = {
"color": "text-gray", "color": "text-gray",
"price": 200, "price": 200,
"deflectable": False, "deflectable": False,
"is_cosmetic": True "cosmetic": True
}, },
### Homoween 2022 ### Homoween 2022
"jumpscare": { "jumpscare": {
@ -711,7 +711,7 @@ AWARDS = {
"color": "text-purple", "color": "text-purple",
"price": 600, "price": 600,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
"hw-bite": { "hw-bite": {
"kind": "hw-bite", "kind": "hw-bite",
@ -721,7 +721,7 @@ AWARDS = {
"color": "text-danger", "color": "text-danger",
"price": 500, "price": 500,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
"hw-vax": { "hw-vax": {
"kind": "hw-vax", "kind": "hw-vax",
@ -731,7 +731,7 @@ AWARDS = {
"color": "text-blue", "color": "text-blue",
"price": 500, "price": 500,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
"hw-grinch": { "hw-grinch": {
"kind": "hw-grinch", "kind": "hw-grinch",
@ -741,7 +741,7 @@ AWARDS = {
"color": "text-orange", "color": "text-orange",
"price": 1000, "price": 1000,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
"flashlight": { "flashlight": {
"kind": "flashlight", "kind": "flashlight",
@ -751,7 +751,7 @@ AWARDS = {
"color": "text-black", "color": "text-black",
"price": 400, "price": 400,
"deflectable": False, "deflectable": False,
"is_cosmetic": True "cosmetic": True
}, },
"candy-corn": { "candy-corn": {
"kind": "candy-corn", "kind": "candy-corn",
@ -761,7 +761,7 @@ AWARDS = {
"color": "text-orange", "color": "text-orange",
"price": 400, "price": 400,
"deflectable": False, "deflectable": False,
"is_cosmetic": True "cosmetic": True
}, },
"ectoplasm": { "ectoplasm": {
"kind": "ectoplasm", "kind": "ectoplasm",
@ -771,7 +771,7 @@ AWARDS = {
"color": "text-success", "color": "text-success",
"price": 400, "price": 400,
"deflectable": False, "deflectable": False,
"is_cosmetic": True "cosmetic": True
}, },
"bones": { "bones": {
"kind": "bones", "kind": "bones",
@ -781,7 +781,7 @@ AWARDS = {
"color": "text-white", "color": "text-white",
"price": 200, "price": 200,
"deflectable": False, "deflectable": False,
"is_cosmetic": True "cosmetic": True
}, },
"pumpkin": { "pumpkin": {
"kind": "pumpkin", "kind": "pumpkin",
@ -791,7 +791,7 @@ AWARDS = {
"color": "text-orange", "color": "text-orange",
"price": 200, "price": 200,
"deflectable": False, "deflectable": False,
"is_cosmetic": True "cosmetic": True
}, },
### Standard ### Standard
"marsify": { "marsify": {
@ -802,7 +802,7 @@ AWARDS = {
"color": "text-white", "color": "text-white",
"price": 150, "price": 150,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
"shit": { "shit": {
"kind": "shit", "kind": "shit",
@ -812,7 +812,7 @@ AWARDS = {
"color": "text-black-50", "color": "text-black-50",
"price": 150, "price": 150,
"deflectable": False, "deflectable": False,
"is_cosmetic": True "cosmetic": True
}, },
"fireflies": { "fireflies": {
"kind": "fireflies", "kind": "fireflies",
@ -822,7 +822,7 @@ AWARDS = {
"color": "text-warning", "color": "text-warning",
"price": 150, "price": 150,
"deflectable": False, "deflectable": False,
"is_cosmetic": True "cosmetic": True
}, },
"train": { "train": {
"kind": "train", "kind": "train",
@ -832,7 +832,7 @@ AWARDS = {
"color": "text-pink", "color": "text-pink",
"price": 150, "price": 150,
"deflectable": False, "deflectable": False,
"is_cosmetic": True "cosmetic": True
}, },
"scooter": { "scooter": {
"kind": "scooter", "kind": "scooter",
@ -842,7 +842,7 @@ AWARDS = {
"color": "text-muted", "color": "text-muted",
"price": 150, "price": 150,
"deflectable": False, "deflectable": False,
"is_cosmetic": True "cosmetic": True
}, },
"wholesome": { "wholesome": {
"kind": "wholesome", "kind": "wholesome",
@ -852,7 +852,7 @@ AWARDS = {
"color": "text-yellow", "color": "text-yellow",
"price": 150, "price": 150,
"deflectable": False, "deflectable": False,
"is_cosmetic": True "cosmetic": True
}, },
"firework": { "firework": {
"kind": "firework", "kind": "firework",
@ -862,7 +862,7 @@ AWARDS = {
"color": "text-danger", "color": "text-danger",
"price": 150, "price": 150,
"deflectable": False, "deflectable": False,
"is_cosmetic": True "cosmetic": True
}, },
"confetti": { "confetti": {
"kind": "confetti", "kind": "confetti",
@ -872,7 +872,7 @@ AWARDS = {
"color": "text-yellow", "color": "text-yellow",
"price": 150, "price": 150,
"deflectable": False, "deflectable": False,
"is_cosmetic": True "cosmetic": True
}, },
"ricardo": { "ricardo": {
"kind": "ricardo", "kind": "ricardo",
@ -882,7 +882,7 @@ AWARDS = {
"color": "text-pink", "color": "text-pink",
"price": 150, "price": 150,
"deflectable": False, "deflectable": False,
"is_cosmetic": True "cosmetic": True
}, },
"tilt": { "tilt": {
"kind": "tilt", "kind": "tilt",
@ -892,7 +892,7 @@ AWARDS = {
"color": "text-blue", "color": "text-blue",
"price": 150, "price": 150,
"deflectable": False, "deflectable": False,
"is_cosmetic": True "cosmetic": True
}, },
"glowie": { "glowie": {
"kind": "glowie", "kind": "glowie",
@ -902,7 +902,7 @@ AWARDS = {
"color": "text-green", "color": "text-green",
"price": 150, "price": 150,
"deflectable": False, "deflectable": False,
"is_cosmetic": True "cosmetic": True
}, },
"rehab": { "rehab": {
"kind": "rehab", "kind": "rehab",
@ -912,7 +912,7 @@ AWARDS = {
"color": "text-black", "color": "text-black",
"price": 777, "price": 777,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
"offsitementions": { "offsitementions": {
"kind": "offsitementions", "kind": "offsitementions",
@ -922,7 +922,7 @@ AWARDS = {
"color": "text-orange", "color": "text-orange",
"price": 1000, "price": 1000,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
"lootbox": { "lootbox": {
"kind": "lootbox", "kind": "lootbox",
@ -932,7 +932,7 @@ AWARDS = {
"color": "text-blue", "color": "text-blue",
"price": 1000, "price": 1000,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
"beano": { "beano": {
"kind": "beano", "kind": "beano",
@ -942,7 +942,7 @@ AWARDS = {
"color": "text-green", "color": "text-green",
"price": 1000, "price": 1000,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
"unpin": { "unpin": {
"kind": "unpin", "kind": "unpin",
@ -952,7 +952,7 @@ AWARDS = {
"color": "text-black", "color": "text-black",
"price": 1000, "price": 1000,
"deflectable": False, "deflectable": False,
"is_cosmetic": False "cosmetic": False
}, },
"flairlock": { "flairlock": {
"kind": "flairlock", "kind": "flairlock",
@ -962,7 +962,7 @@ AWARDS = {
"color": "text-black", "color": "text-black",
"price": 1250, "price": 1250,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
"pin": { "pin": {
"kind": "pin", "kind": "pin",
@ -972,7 +972,7 @@ AWARDS = {
"color": "text-warning", "color": "text-warning",
"price": 1500, "price": 1500,
"deflectable": False, "deflectable": False,
"is_cosmetic": False "cosmetic": False
}, },
"progressivestack": { "progressivestack": {
"kind": "progressivestack", "kind": "progressivestack",
@ -982,7 +982,7 @@ AWARDS = {
"color": "text-danger", "color": "text-danger",
"price": 1500, "price": 1500,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
"pizzashill": { "pizzashill": {
"kind": "pizzashill", "kind": "pizzashill",
@ -992,7 +992,7 @@ AWARDS = {
"color": "text-orange", "color": "text-orange",
"price": 1500, "price": 1500,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
"bird": { "bird": {
"kind": "bird", "kind": "bird",
@ -1002,7 +1002,7 @@ AWARDS = {
"color": "text-blue", "color": "text-blue",
"price": 1500, "price": 1500,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
"spider": { "spider": {
"kind": "spider", "kind": "spider",
@ -1012,7 +1012,7 @@ AWARDS = {
"color": "text-brown", "color": "text-brown",
"price": 2000, "price": 2000,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
"agendaposter": { "agendaposter": {
"kind": "agendaposter", "kind": "agendaposter",
@ -1022,7 +1022,7 @@ AWARDS = {
"color": "text-purple", "color": "text-purple",
"price": 2500, "price": 2500,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
"deflector": { "deflector": {
"kind": "deflector", "kind": "deflector",
@ -1032,7 +1032,7 @@ AWARDS = {
"color": "text-pink", "color": "text-pink",
"price": 2750, "price": 2750,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
"marsey": { "marsey": {
"kind": "marsey", "kind": "marsey",
@ -1042,7 +1042,7 @@ AWARDS = {
"color": "text-orange", "color": "text-orange",
"price": 3000, "price": 3000,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
"ban": { "ban": {
"kind": "ban", "kind": "ban",
@ -1052,7 +1052,7 @@ AWARDS = {
"color": "text-danger", "color": "text-danger",
"price": 3000, "price": 3000,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
"unban": { "unban": {
"kind": "unban", "kind": "unban",
@ -1062,7 +1062,7 @@ AWARDS = {
"color": "text-success", "color": "text-success",
"price": 3500, "price": 3500,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
"benefactor": { "benefactor": {
"kind": "benefactor", "kind": "benefactor",
@ -1072,7 +1072,7 @@ AWARDS = {
"color": "text-blue", "color": "text-blue",
"price": 4000, "price": 4000,
"deflectable": False, "deflectable": False,
"is_cosmetic": False "cosmetic": False
}, },
"grass": { "grass": {
"kind": "grass", "kind": "grass",
@ -1082,7 +1082,7 @@ AWARDS = {
"color": "text-success", "color": "text-success",
"price": 10000, "price": 10000,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
"eye": { "eye": {
"kind": "eye", "kind": "eye",
@ -1092,7 +1092,7 @@ AWARDS = {
"color": "text-silver", "color": "text-silver",
"price": 10000, "price": 10000,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
"unblockable": { "unblockable": {
"kind": "unblockable", "kind": "unblockable",
@ -1102,7 +1102,7 @@ AWARDS = {
"color": "text-lightgreen", "color": "text-lightgreen",
"price": 20000, "price": 20000,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
"fish": { "fish": {
"kind": "fish", "kind": "fish",
@ -1112,7 +1112,7 @@ AWARDS = {
"color": "text-lightblue", "color": "text-lightblue",
"price": 20000, "price": 20000,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
"pause": { "pause": {
"kind": "pause", "kind": "pause",
@ -1122,7 +1122,7 @@ AWARDS = {
"color": "text-danger", "color": "text-danger",
"price": 20000, "price": 20000,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
"unpausable": { "unpausable": {
"kind": "unpausable", "kind": "unpausable",
@ -1132,7 +1132,7 @@ AWARDS = {
"color": "text-success", "color": "text-success",
"price": 40000, "price": 40000,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
"alt": { "alt": {
"kind": "alt", "kind": "alt",
@ -1142,7 +1142,7 @@ AWARDS = {
"color": "text-gold", "color": "text-gold",
"price": 50000, "price": 50000,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
"checkmark": { "checkmark": {
"kind": "checkmark", "kind": "checkmark",
@ -1152,7 +1152,7 @@ AWARDS = {
"color": "checkmark", "color": "checkmark",
"price": 50000, "price": 50000,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
} }
@ -1166,7 +1166,7 @@ if SITE_NAME != 'rDrama':
"color": "text-purple", "color": "text-purple",
"price": 400, "price": 400,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
"rainbow": { "rainbow": {
"kind": "rainbow", "kind": "rainbow",
@ -1176,7 +1176,7 @@ if SITE_NAME != 'rDrama':
"color": "text-pink", "color": "text-pink",
"price": 400, "price": 400,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
} }
AWARDS.update(EXTRA_AWARDS) AWARDS.update(EXTRA_AWARDS)
@ -1191,7 +1191,7 @@ if SITE_NAME == 'PCM':
"color": "text-gold", "color": "text-gold",
"price": 150, "price": 150,
"deflectable": False, "deflectable": False,
"is_cosmetic": True "cosmetic": True
}, },
"toe": { "toe": {
"kind": "toe", "kind": "toe",
@ -1201,7 +1201,7 @@ if SITE_NAME == 'PCM':
"color": "text-blue", "color": "text-blue",
"price": 150, "price": 150,
"deflectable": False, "deflectable": False,
"is_cosmetic": True "cosmetic": True
}, },
"crab": { "crab": {
"kind": "crab", "kind": "crab",
@ -1211,7 +1211,7 @@ if SITE_NAME == 'PCM':
"color": "text-danger", "color": "text-danger",
"price": 4000, "price": 4000,
"deflectable": False, "deflectable": False,
"is_cosmetic": True "cosmetic": True
} }
} }
AWARDS.update(PCM_AWARDS) AWARDS.update(PCM_AWARDS)
@ -1235,7 +1235,7 @@ HOUSE_AWARDS = {
"color": "text-purple", "color": "text-purple",
"price": 400, "price": 400,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
"Femboy": { "Femboy": {
"kind": "Femboy", "kind": "Femboy",
@ -1245,7 +1245,7 @@ HOUSE_AWARDS = {
"color": "text-pink", "color": "text-pink",
"price": 400, "price": 400,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
"Vampire": { "Vampire": {
"kind": "Vampire", "kind": "Vampire",
@ -1255,7 +1255,7 @@ HOUSE_AWARDS = {
"color": "text-gray", "color": "text-gray",
"price": 400, "price": 400,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
"Racist": { "Racist": {
"kind": "Racist", "kind": "Racist",
@ -1265,7 +1265,7 @@ HOUSE_AWARDS = {
"color": "text-yellow", "color": "text-yellow",
"price": 400, "price": 400,
"deflectable": True, "deflectable": True,
"is_cosmetic": False "cosmetic": False
}, },
} }

View File

@ -188,8 +188,8 @@ def award_thing(v, thing_type, id):
send_repeatable_notification(v.id, msg) send_repeatable_notification(v.id, msg)
author = v author = v
elif kind != 'spider': elif kind != 'spider':
awarded_coins = AWARDS[kind]['price'] * COSMETIC_AWARD_COIN_AWARD_PCT if AWARDS[kind]['is_cosmetic'] else 0 awarded_coins = AWARDS[kind]['price'] * COSMETIC_AWARD_COIN_AWARD_PCT if AWARDS[kind]['cosmetic'] else 0
if AWARDS[kind]['is_cosmetic']: if AWARDS[kind]['cosmetic']:
author.coins += awarded_coins author.coins += awarded_coins
msg = f"@{v.username} has given your [{thing_type}]({thing.shortlink}) the {AWARDS[kind]['title']} Award" msg = f"@{v.username} has given your [{thing_type}]({thing.shortlink}) the {AWARDS[kind]['title']} Award"