awards: make cosmetic awards give 10% of the price to the recipient

master
justcool393 2022-11-04 21:16:08 -05:00
parent 87d5a0de46
commit 81ed8cfc81
2 changed files with 144 additions and 69 deletions

View File

@ -381,6 +381,8 @@ TRANSFER_MESSAGE_LENGTH_LIMIT = 200 # do not make larger than 10000 characters (
MIN_REPOST_CHECK_URL_LENGTH = 9 # also change the constant in checkRepost() of submit.js MIN_REPOST_CHECK_URL_LENGTH = 9 # also change the constant in checkRepost() of submit.js
ADMIN_PING_TRUESCORE_MINIMUM = 500 ADMIN_PING_TRUESCORE_MINIMUM = 500
TRUESCORE_DONATE_LIMIT = 100 TRUESCORE_DONATE_LIMIT = 100
COSMETIC_AWARD_COIN_AWARD_PCT = 0.10
LOGGEDIN_ACTIVE_TIME = 15 * 60 LOGGEDIN_ACTIVE_TIME = 15 * 60
PFP_DEFAULT_MARSEY = True PFP_DEFAULT_MARSEY = True
@ -575,7 +577,8 @@ AWARDS = {
"icon": "fas fa-ghost", "icon": "fas fa-ghost",
"color": "text-white", "color": "text-white",
"price": 3000, "price": 3000,
"deflectable": False "deflectable": False,
"is_cosmetic": False
}, },
"nword": { "nword": {
"kind": "nword", "kind": "nword",
@ -584,7 +587,8 @@ AWARDS = {
"icon": "fas fa-edit", "icon": "fas fa-edit",
"color": "text-success", "color": "text-success",
"price": 10000, "price": 10000,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
### Fistmas 2021 ### Fistmas 2021
"snow": { "snow": {
@ -594,7 +598,8 @@ AWARDS = {
"icon": "fas fa-snowflake", "icon": "fas fa-snowflake",
"color": "text-blue-200", "color": "text-blue-200",
"price": 300, "price": 300,
"deflectable": False "deflectable": False,
"is_cosmetic": True
}, },
"gingerbread": { "gingerbread": {
"kind": "gingerbread", "kind": "gingerbread",
@ -603,7 +608,8 @@ AWARDS = {
"icon": "fas fa-gingerbread-man", "icon": "fas fa-gingerbread-man",
"color": "", "color": "",
"price": 300, "price": 300,
"deflectable": False "deflectable": False,
"is_cosmetic": True
}, },
"lights": { "lights": {
"kind": "lights", "kind": "lights",
@ -612,7 +618,8 @@ AWARDS = {
"icon": "fas fa-lights-holiday", "icon": "fas fa-lights-holiday",
"color": "", "color": "",
"price": 300, "price": 300,
"deflectable": False "deflectable": False,
"is_cosmetic": True
}, },
"candycane": { "candycane": {
"kind": "candycane", "kind": "candycane",
@ -621,7 +628,8 @@ AWARDS = {
"icon": "fas fa-candy-cane", "icon": "fas fa-candy-cane",
"color": "", "color": "",
"price": 400, "price": 400,
"deflectable": False "deflectable": False,
"is_cosmetic": True
}, },
"fireplace": { "fireplace": {
"kind": "fireplace", "kind": "fireplace",
@ -630,7 +638,8 @@ AWARDS = {
"icon": "fas fa-fireplace", "icon": "fas fa-fireplace",
"color": "", "color": "",
"price": 600, "price": 600,
"deflectable": False "deflectable": False,
"is_cosmetic": True
}, },
"grinch": { "grinch": {
"kind": "grinch", "kind": "grinch",
@ -639,7 +648,8 @@ AWARDS = {
"icon": "fas fa-angry", "icon": "fas fa-angry",
"color": "text-green-500", "color": "text-green-500",
"price": 1000, "price": 1000,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
### Homoween 2021 & 2022 ### Homoween 2021 & 2022
"haunt": { "haunt": {
@ -649,7 +659,8 @@ AWARDS = {
"icon": "fas fa-book-dead", "icon": "fas fa-book-dead",
"color": "text-warning", "color": "text-warning",
"price": 500, "price": 500,
"deflectable": False "deflectable": False,
"is_cosmetic": True
}, },
"upsidedown": { "upsidedown": {
"kind": "upsidedown", "kind": "upsidedown",
@ -658,7 +669,8 @@ AWARDS = {
"icon": "fas fa-lights-holiday", "icon": "fas fa-lights-holiday",
"color": "", "color": "",
"price": 400, "price": 400,
"deflectable": False "deflectable": False,
"is_cosmetic": True
}, },
"stab": { "stab": {
"kind": "stab", "kind": "stab",
@ -667,7 +679,8 @@ AWARDS = {
"icon": "fas fa-knife-kitchen", "icon": "fas fa-knife-kitchen",
"color": "text-danger", "color": "text-danger",
"price": 300, "price": 300,
"deflectable": False "deflectable": False,
"is_cosmetic": True
}, },
"spiders": { "spiders": {
"kind": "spiders", "kind": "spiders",
@ -676,7 +689,8 @@ AWARDS = {
"icon": "fas fa-spider", "icon": "fas fa-spider",
"color": "text-black", "color": "text-black",
"price": 200, "price": 200,
"deflectable": False "deflectable": False,
"is_cosmetic": True
}, },
"fog": { "fog": {
"kind": "fog", "kind": "fog",
@ -685,7 +699,8 @@ AWARDS = {
"icon": "fas fa-smoke", "icon": "fas fa-smoke",
"color": "text-gray", "color": "text-gray",
"price": 200, "price": 200,
"deflectable": False "deflectable": False,
"is_cosmetic": True
}, },
### Homoween 2022 ### Homoween 2022
"jumpscare": { "jumpscare": {
@ -695,7 +710,8 @@ AWARDS = {
"icon": "fas fa-coffin-cross", "icon": "fas fa-coffin-cross",
"color": "text-purple", "color": "text-purple",
"price": 600, "price": 600,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
"hw-bite": { "hw-bite": {
"kind": "hw-bite", "kind": "hw-bite",
@ -704,7 +720,8 @@ AWARDS = {
"icon": "fas fa-biohazard", "icon": "fas fa-biohazard",
"color": "text-danger", "color": "text-danger",
"price": 500, "price": 500,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
"hw-vax": { "hw-vax": {
"kind": "hw-vax", "kind": "hw-vax",
@ -713,7 +730,8 @@ AWARDS = {
"icon": "fas fa-syringe", "icon": "fas fa-syringe",
"color": "text-blue", "color": "text-blue",
"price": 500, "price": 500,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
"hw-grinch": { "hw-grinch": {
"kind": "hw-grinch", "kind": "hw-grinch",
@ -722,8 +740,8 @@ AWARDS = {
"icon": "fas fa-angry", "icon": "fas fa-angry",
"color": "text-orange", "color": "text-orange",
"price": 1000, "price": 1000,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
"flashlight": { "flashlight": {
"kind": "flashlight", "kind": "flashlight",
@ -732,7 +750,8 @@ AWARDS = {
"icon": "fas fa-flashlight", "icon": "fas fa-flashlight",
"color": "text-black", "color": "text-black",
"price": 400, "price": 400,
"deflectable": False "deflectable": False,
"is_cosmetic": True
}, },
"candy-corn": { "candy-corn": {
"kind": "candy-corn", "kind": "candy-corn",
@ -741,7 +760,8 @@ AWARDS = {
"icon": "fas fa-candy-corn", "icon": "fas fa-candy-corn",
"color": "text-orange", "color": "text-orange",
"price": 400, "price": 400,
"deflectable": False "deflectable": False,
"is_cosmetic": True
}, },
"ectoplasm": { "ectoplasm": {
"kind": "ectoplasm", "kind": "ectoplasm",
@ -750,7 +770,8 @@ AWARDS = {
"icon": "fas fa-ghost", "icon": "fas fa-ghost",
"color": "text-success", "color": "text-success",
"price": 400, "price": 400,
"deflectable": False "deflectable": False,
"is_cosmetic": True
}, },
"bones": { "bones": {
"kind": "bones", "kind": "bones",
@ -759,7 +780,8 @@ AWARDS = {
"icon": "fas fa-bone", "icon": "fas fa-bone",
"color": "text-white", "color": "text-white",
"price": 200, "price": 200,
"deflectable": False "deflectable": False,
"is_cosmetic": True
}, },
"pumpkin": { "pumpkin": {
"kind": "pumpkin", "kind": "pumpkin",
@ -768,7 +790,8 @@ AWARDS = {
"icon": "fas fa-jack-o-lantern", "icon": "fas fa-jack-o-lantern",
"color": "text-orange", "color": "text-orange",
"price": 200, "price": 200,
"deflectable": False "deflectable": False,
"is_cosmetic": True
}, },
### Standard ### Standard
"marsify": { "marsify": {
@ -778,7 +801,8 @@ AWARDS = {
"icon": "fas fa-cat", "icon": "fas fa-cat",
"color": "text-white", "color": "text-white",
"price": 150, "price": 150,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
"shit": { "shit": {
"kind": "shit", "kind": "shit",
@ -787,7 +811,8 @@ AWARDS = {
"icon": "fas fa-poop", "icon": "fas fa-poop",
"color": "text-black-50", "color": "text-black-50",
"price": 150, "price": 150,
"deflectable": False "deflectable": False,
"is_cosmetic": True
}, },
"fireflies": { "fireflies": {
"kind": "fireflies", "kind": "fireflies",
@ -796,7 +821,8 @@ AWARDS = {
"icon": "fas fa-sparkles", "icon": "fas fa-sparkles",
"color": "text-warning", "color": "text-warning",
"price": 150, "price": 150,
"deflectable": False "deflectable": False,
"is_cosmetic": True
}, },
"train": { "train": {
"kind": "train", "kind": "train",
@ -805,7 +831,8 @@ AWARDS = {
"icon": "fas fa-train", "icon": "fas fa-train",
"color": "text-pink", "color": "text-pink",
"price": 150, "price": 150,
"deflectable": False "deflectable": False,
"is_cosmetic": True
}, },
"scooter": { "scooter": {
"kind": "scooter", "kind": "scooter",
@ -814,7 +841,8 @@ AWARDS = {
"icon": "fas fa-flag-usa", "icon": "fas fa-flag-usa",
"color": "text-muted", "color": "text-muted",
"price": 150, "price": 150,
"deflectable": False "deflectable": False,
"is_cosmetic": True
}, },
"wholesome": { "wholesome": {
"kind": "wholesome", "kind": "wholesome",
@ -823,7 +851,8 @@ AWARDS = {
"icon": "fas fa-smile-beam", "icon": "fas fa-smile-beam",
"color": "text-yellow", "color": "text-yellow",
"price": 150, "price": 150,
"deflectable": False "deflectable": False,
"is_cosmetic": True
}, },
"firework": { "firework": {
"kind": "firework", "kind": "firework",
@ -832,7 +861,8 @@ AWARDS = {
"icon": "fas fa-bahai", "icon": "fas fa-bahai",
"color": "text-danger", "color": "text-danger",
"price": 150, "price": 150,
"deflectable": False "deflectable": False,
"is_cosmetic": True
}, },
"confetti": { "confetti": {
"kind": "confetti", "kind": "confetti",
@ -841,7 +871,8 @@ AWARDS = {
"icon": "fas fa-party-horn", "icon": "fas fa-party-horn",
"color": "text-yellow", "color": "text-yellow",
"price": 150, "price": 150,
"deflectable": False "deflectable": False,
"is_cosmetic": True
}, },
"ricardo": { "ricardo": {
"kind": "ricardo", "kind": "ricardo",
@ -850,7 +881,8 @@ AWARDS = {
"icon": "fas fa-pinata", "icon": "fas fa-pinata",
"color": "text-pink", "color": "text-pink",
"price": 150, "price": 150,
"deflectable": False "deflectable": False,
"is_cosmetic": True
}, },
"tilt": { "tilt": {
"kind": "tilt", "kind": "tilt",
@ -859,7 +891,8 @@ AWARDS = {
"icon": "fas fa-car-tilt", "icon": "fas fa-car-tilt",
"color": "text-blue", "color": "text-blue",
"price": 150, "price": 150,
"deflectable": False "deflectable": False,
"is_cosmetic": True
}, },
"glowie": { "glowie": {
"kind": "glowie", "kind": "glowie",
@ -868,7 +901,8 @@ AWARDS = {
"icon": "fas fa-user-secret", "icon": "fas fa-user-secret",
"color": "text-green", "color": "text-green",
"price": 150, "price": 150,
"deflectable": False "deflectable": False,
"is_cosmetic": True
}, },
"rehab": { "rehab": {
"kind": "rehab", "kind": "rehab",
@ -877,7 +911,8 @@ AWARDS = {
"icon": "fas fa-dice-six", "icon": "fas fa-dice-six",
"color": "text-black", "color": "text-black",
"price": 777, "price": 777,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
"offsitementions": { "offsitementions": {
"kind": "offsitementions", "kind": "offsitementions",
@ -886,7 +921,8 @@ AWARDS = {
"icon": "fas fa-eyes", "icon": "fas fa-eyes",
"color": "text-orange", "color": "text-orange",
"price": 1000, "price": 1000,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
"lootbox": { "lootbox": {
"kind": "lootbox", "kind": "lootbox",
@ -895,7 +931,8 @@ AWARDS = {
"icon": "fas fa-box-open", "icon": "fas fa-box-open",
"color": "text-blue", "color": "text-blue",
"price": 1000, "price": 1000,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
"beano": { "beano": {
"kind": "beano", "kind": "beano",
@ -904,7 +941,8 @@ AWARDS = {
"icon": "fas fa-gas-pump-slash", "icon": "fas fa-gas-pump-slash",
"color": "text-green", "color": "text-green",
"price": 1000, "price": 1000,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
"unpin": { "unpin": {
"kind": "unpin", "kind": "unpin",
@ -913,7 +951,8 @@ AWARDS = {
"icon": "fas fa-thumbtack fa-rotate--45", "icon": "fas fa-thumbtack fa-rotate--45",
"color": "text-black", "color": "text-black",
"price": 1000, "price": 1000,
"deflectable": False "deflectable": False,
"is_cosmetic": False
}, },
"flairlock": { "flairlock": {
"kind": "flairlock", "kind": "flairlock",
@ -922,7 +961,8 @@ AWARDS = {
"icon": "fas fa-lock", "icon": "fas fa-lock",
"color": "text-black", "color": "text-black",
"price": 1250, "price": 1250,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
"pin": { "pin": {
"kind": "pin", "kind": "pin",
@ -931,7 +971,8 @@ AWARDS = {
"icon": "fas fa-thumbtack fa-rotate--45", "icon": "fas fa-thumbtack fa-rotate--45",
"color": "text-warning", "color": "text-warning",
"price": 1500, "price": 1500,
"deflectable": False "deflectable": False,
"is_cosmetic": False
}, },
"progressivestack": { "progressivestack": {
"kind": "progressivestack", "kind": "progressivestack",
@ -940,7 +981,8 @@ AWARDS = {
"icon": "fas fa-bullhorn", "icon": "fas fa-bullhorn",
"color": "text-danger", "color": "text-danger",
"price": 1500, "price": 1500,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
"pizzashill": { "pizzashill": {
"kind": "pizzashill", "kind": "pizzashill",
@ -949,7 +991,8 @@ AWARDS = {
"icon": "fas fa-pizza-slice", "icon": "fas fa-pizza-slice",
"color": "text-orange", "color": "text-orange",
"price": 1500, "price": 1500,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
"bird": { "bird": {
"kind": "bird", "kind": "bird",
@ -958,7 +1001,8 @@ AWARDS = {
"icon": "fab fa-twitter", "icon": "fab fa-twitter",
"color": "text-blue", "color": "text-blue",
"price": 1500, "price": 1500,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
"spider": { "spider": {
"kind": "spider", "kind": "spider",
@ -967,7 +1011,8 @@ AWARDS = {
"icon": "fas fa-spider", "icon": "fas fa-spider",
"color": "text-brown", "color": "text-brown",
"price": 2000, "price": 2000,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
"agendaposter": { "agendaposter": {
"kind": "agendaposter", "kind": "agendaposter",
@ -976,7 +1021,8 @@ AWARDS = {
"icon": "fas fa-snooze", "icon": "fas fa-snooze",
"color": "text-purple", "color": "text-purple",
"price": 2500, "price": 2500,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
"deflector": { "deflector": {
"kind": "deflector", "kind": "deflector",
@ -985,7 +1031,8 @@ AWARDS = {
"icon": "fas fa-shield", "icon": "fas fa-shield",
"color": "text-pink", "color": "text-pink",
"price": 2750, "price": 2750,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
"marsey": { "marsey": {
"kind": "marsey", "kind": "marsey",
@ -994,7 +1041,8 @@ AWARDS = {
"icon": "fas fa-cat", "icon": "fas fa-cat",
"color": "text-orange", "color": "text-orange",
"price": 3000, "price": 3000,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
"ban": { "ban": {
"kind": "ban", "kind": "ban",
@ -1003,7 +1051,8 @@ AWARDS = {
"icon": "fas fa-gavel", "icon": "fas fa-gavel",
"color": "text-danger", "color": "text-danger",
"price": 3000, "price": 3000,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
"unban": { "unban": {
"kind": "unban", "kind": "unban",
@ -1012,7 +1061,8 @@ AWARDS = {
"icon": "fas fa-gavel", "icon": "fas fa-gavel",
"color": "text-success", "color": "text-success",
"price": 3500, "price": 3500,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
"benefactor": { "benefactor": {
"kind": "benefactor", "kind": "benefactor",
@ -1021,7 +1071,8 @@ AWARDS = {
"icon": "fas fa-gift", "icon": "fas fa-gift",
"color": "text-blue", "color": "text-blue",
"price": 4000, "price": 4000,
"deflectable": False "deflectable": False,
"is_cosmetic": False
}, },
"grass": { "grass": {
"kind": "grass", "kind": "grass",
@ -1030,7 +1081,8 @@ AWARDS = {
"icon": "fas fa-seedling", "icon": "fas fa-seedling",
"color": "text-success", "color": "text-success",
"price": 10000, "price": 10000,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
"eye": { "eye": {
"kind": "eye", "kind": "eye",
@ -1039,7 +1091,8 @@ AWARDS = {
"icon": "fas fa-eye", "icon": "fas fa-eye",
"color": "text-silver", "color": "text-silver",
"price": 10000, "price": 10000,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
"unblockable": { "unblockable": {
"kind": "unblockable", "kind": "unblockable",
@ -1048,7 +1101,8 @@ AWARDS = {
"icon": "fas fa-laugh-squint", "icon": "fas fa-laugh-squint",
"color": "text-lightgreen", "color": "text-lightgreen",
"price": 20000, "price": 20000,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
"fish": { "fish": {
"kind": "fish", "kind": "fish",
@ -1057,7 +1111,8 @@ AWARDS = {
"icon": "fas fa-fish", "icon": "fas fa-fish",
"color": "text-lightblue", "color": "text-lightblue",
"price": 20000, "price": 20000,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
"pause": { "pause": {
"kind": "pause", "kind": "pause",
@ -1066,7 +1121,8 @@ AWARDS = {
"icon": "fas fa-volume-mute", "icon": "fas fa-volume-mute",
"color": "text-danger", "color": "text-danger",
"price": 20000, "price": 20000,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
"unpausable": { "unpausable": {
"kind": "unpausable", "kind": "unpausable",
@ -1075,7 +1131,8 @@ AWARDS = {
"icon": "fas fa-volume", "icon": "fas fa-volume",
"color": "text-success", "color": "text-success",
"price": 40000, "price": 40000,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
"alt": { "alt": {
"kind": "alt", "kind": "alt",
@ -1084,7 +1141,8 @@ AWARDS = {
"icon": "fas fa-eye", "icon": "fas fa-eye",
"color": "text-gold", "color": "text-gold",
"price": 50000, "price": 50000,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
"checkmark": { "checkmark": {
"kind": "checkmark", "kind": "checkmark",
@ -1093,7 +1151,8 @@ AWARDS = {
"icon": "fas fa-badge-check", "icon": "fas fa-badge-check",
"color": "checkmark", "color": "checkmark",
"price": 50000, "price": 50000,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
} }
@ -1106,7 +1165,8 @@ if SITE_NAME != 'rDrama':
"icon": "fas fa-paw-simple", "icon": "fas fa-paw-simple",
"color": "text-purple", "color": "text-purple",
"price": 400, "price": 400,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
"rainbow": { "rainbow": {
"kind": "rainbow", "kind": "rainbow",
@ -1115,7 +1175,8 @@ if SITE_NAME != 'rDrama':
"icon": "fas fa-cloud-rainbow", "icon": "fas fa-cloud-rainbow",
"color": "text-pink", "color": "text-pink",
"price": 400, "price": 400,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
} }
AWARDS.update(EXTRA_AWARDS) AWARDS.update(EXTRA_AWARDS)
@ -1129,7 +1190,8 @@ if SITE_NAME == 'PCM':
"icon": "fas fa-head-side", "icon": "fas fa-head-side",
"color": "text-gold", "color": "text-gold",
"price": 150, "price": 150,
"deflectable": False "deflectable": False,
"is_cosmetic": True
}, },
"toe": { "toe": {
"kind": "toe", "kind": "toe",
@ -1138,7 +1200,8 @@ if SITE_NAME == 'PCM':
"icon": "fas fa-socks", "icon": "fas fa-socks",
"color": "text-blue", "color": "text-blue",
"price": 150, "price": 150,
"deflectable": False "deflectable": False,
"is_cosmetic": True
}, },
"crab": { "crab": {
"kind": "crab", "kind": "crab",
@ -1147,7 +1210,8 @@ if SITE_NAME == 'PCM':
"icon": "fas fa-crab", "icon": "fas fa-crab",
"color": "text-danger", "color": "text-danger",
"price": 4000, "price": 4000,
"deflectable": False "deflectable": False,
"is_cosmetic": True
} }
} }
AWARDS.update(PCM_AWARDS) AWARDS.update(PCM_AWARDS)
@ -1170,7 +1234,8 @@ HOUSE_AWARDS = {
"icon": "fas fa-paw-simple", "icon": "fas fa-paw-simple",
"color": "text-purple", "color": "text-purple",
"price": 400, "price": 400,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
"Femboy": { "Femboy": {
"kind": "Femboy", "kind": "Femboy",
@ -1179,7 +1244,8 @@ HOUSE_AWARDS = {
"icon": "fas fa-cloud-rainbow", "icon": "fas fa-cloud-rainbow",
"color": "text-pink", "color": "text-pink",
"price": 400, "price": 400,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
"Vampire": { "Vampire": {
"kind": "Vampire", "kind": "Vampire",
@ -1188,7 +1254,8 @@ HOUSE_AWARDS = {
"icon": "fas fa-bat", "icon": "fas fa-bat",
"color": "text-gray", "color": "text-gray",
"price": 400, "price": 400,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
"Racist": { "Racist": {
"kind": "Racist", "kind": "Racist",
@ -1197,7 +1264,8 @@ HOUSE_AWARDS = {
"icon": "fas fa-star-of-david", "icon": "fas fa-star-of-david",
"color": "text-yellow", "color": "text-yellow",
"price": 400, "price": 400,
"deflectable": True "deflectable": True,
"is_cosmetic": False
}, },
} }

View File

@ -188,7 +188,14 @@ 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':
msg = f"@{v.username} has given your [{thing_type}]({thing.shortlink}) the {AWARDS[kind]['title']} Award!" awarded_coins = AWARDS[kind]['price'] * COSMETIC_AWARD_COIN_AWARD_PCT if AWARDS[kind]['is_cosmetic'] else 0
if AWARDS[kind]['is_cosmetic']:
author.coins += awarded_coins
msg = f"@{v.username} has given your [{thing_type}]({thing.shortlink}) the {AWARDS[kind]['title']} Award"
if awarded_coins > 0:
msg += f" and got {awarded_coins} coins"
msg += "!"
if note: msg += f"\n\n> {note}" if note: msg += f"\n\n> {note}"
send_repeatable_notification(author.id, msg) send_repeatable_notification(author.id, msg)