fix bug with deflection

remotes/1693176582716663532/tmp_refs/heads/watchparty
Aevann1 2022-10-30 23:27:53 +02:00
parent 4ff2a55ed2
commit 1032a3193f
2 changed files with 135 additions and 67 deletions

View File

@ -527,7 +527,8 @@ AWARDS = {
"description": "", "description": "",
"icon": "fas fa-ghost", "icon": "fas fa-ghost",
"color": "text-white", "color": "text-white",
"price": 3000 "price": 3000,
"deflectable": False
}, },
"nword": { "nword": {
"kind": "nword", "kind": "nword",
@ -535,7 +536,8 @@ AWARDS = {
"description": "", "description": "",
"icon": "fas fa-edit", "icon": "fas fa-edit",
"color": "text-success", "color": "text-success",
"price": 10000 "price": 10000,
"deflectable": True
}, },
### Fistmas 2021 ### Fistmas 2021
"snow": { "snow": {
@ -544,7 +546,8 @@ AWARDS = {
"description": "", "description": "",
"icon": "fas fa-snowflake", "icon": "fas fa-snowflake",
"color": "text-blue-200", "color": "text-blue-200",
"price": 300 "price": 300,
"deflectable": False
}, },
"gingerbread": { "gingerbread": {
"kind": "gingerbread", "kind": "gingerbread",
@ -552,7 +555,8 @@ AWARDS = {
"description": "", "description": "",
"icon": "fas fa-gingerbread-man", "icon": "fas fa-gingerbread-man",
"color": "", "color": "",
"price": 300 "price": 300,
"deflectable": False
}, },
"lights": { "lights": {
"kind": "lights", "kind": "lights",
@ -560,7 +564,8 @@ AWARDS = {
"description": "", "description": "",
"icon": "fas fa-lights-holiday", "icon": "fas fa-lights-holiday",
"color": "", "color": "",
"price": 300 "price": 300,
"deflectable": False
}, },
"candycane": { "candycane": {
"kind": "candycane", "kind": "candycane",
@ -568,7 +573,8 @@ AWARDS = {
"description": "", "description": "",
"icon": "fas fa-candy-cane", "icon": "fas fa-candy-cane",
"color": "", "color": "",
"price": 400 "price": 400,
"deflectable": False
}, },
"fireplace": { "fireplace": {
"kind": "fireplace", "kind": "fireplace",
@ -576,7 +582,8 @@ AWARDS = {
"description": "", "description": "",
"icon": "fas fa-fireplace", "icon": "fas fa-fireplace",
"color": "", "color": "",
"price": 600 "price": 600,
"deflectable": False
}, },
"grinch": { "grinch": {
"kind": "grinch", "kind": "grinch",
@ -584,7 +591,8 @@ AWARDS = {
"description": "", "description": "",
"icon": "fas fa-angry", "icon": "fas fa-angry",
"color": "text-green-500", "color": "text-green-500",
"price": 1000 "price": 1000,
"deflectable": True
}, },
### Homoween 2021 & 2022 ### Homoween 2021 & 2022
"haunt": { "haunt": {
@ -593,7 +601,8 @@ AWARDS = {
"description": "", "description": "",
"icon": "fas fa-book-dead", "icon": "fas fa-book-dead",
"color": "text-warning", "color": "text-warning",
"price": 500 "price": 500,
"deflectable": False
}, },
"upsidedown": { "upsidedown": {
"kind": "upsidedown", "kind": "upsidedown",
@ -601,7 +610,8 @@ AWARDS = {
"description": "", "description": "",
"icon": "fas fa-lights-holiday", "icon": "fas fa-lights-holiday",
"color": "", "color": "",
"price": 400 "price": 400,
"deflectable": False
}, },
"stab": { "stab": {
"kind": "stab", "kind": "stab",
@ -609,7 +619,8 @@ AWARDS = {
"description": "", "description": "",
"icon": "fas fa-knife-kitchen", "icon": "fas fa-knife-kitchen",
"color": "text-danger", "color": "text-danger",
"price": 300 "price": 300,
"deflectable": False
}, },
"spiders": { "spiders": {
"kind": "spiders", "kind": "spiders",
@ -617,7 +628,8 @@ AWARDS = {
"description": "", "description": "",
"icon": "fas fa-spider", "icon": "fas fa-spider",
"color": "text-black", "color": "text-black",
"price": 200 "price": 200,
"deflectable": False
}, },
"fog": { "fog": {
"kind": "fog", "kind": "fog",
@ -625,7 +637,8 @@ AWARDS = {
"description": "", "description": "",
"icon": "fas fa-smoke", "icon": "fas fa-smoke",
"color": "text-gray", "color": "text-gray",
"price": 200 "price": 200,
"deflectable": False
}, },
### Homoween 2022 ### Homoween 2022
"jumpscare": { "jumpscare": {
@ -634,7 +647,8 @@ AWARDS = {
"description": "", "description": "",
"icon": "fas fa-coffin-cross", "icon": "fas fa-coffin-cross",
"color": "text-purple", "color": "text-purple",
"price": 600 "price": 600,
"deflectable": True
}, },
"hw-bite": { "hw-bite": {
"kind": "hw-bite", "kind": "hw-bite",
@ -642,7 +656,8 @@ AWARDS = {
"description": "", "description": "",
"icon": "fas fa-biohazard", "icon": "fas fa-biohazard",
"color": "text-danger", "color": "text-danger",
"price": 500 "price": 500,
"deflectable": True
}, },
"hw-vax": { "hw-vax": {
"kind": "hw-vax", "kind": "hw-vax",
@ -650,7 +665,8 @@ AWARDS = {
"description": "", "description": "",
"icon": "fas fa-syringe", "icon": "fas fa-syringe",
"color": "text-blue", "color": "text-blue",
"price": 500 "price": 500,
"deflectable": True
}, },
"hw-grinch": { "hw-grinch": {
"kind": "hw-grinch", "kind": "hw-grinch",
@ -658,7 +674,9 @@ AWARDS = {
"description": "", "description": "",
"icon": "fas fa-angry", "icon": "fas fa-angry",
"color": "text-orange", "color": "text-orange",
"price": 1000 "price": 1000,
"deflectable": True
}, },
"flashlight": { "flashlight": {
"kind": "flashlight", "kind": "flashlight",
@ -666,7 +684,8 @@ AWARDS = {
"description": "", "description": "",
"icon": "fas fa-flashlight", "icon": "fas fa-flashlight",
"color": "text-black", "color": "text-black",
"price": 400 "price": 400,
"deflectable": False
}, },
"candy-corn": { "candy-corn": {
"kind": "candy-corn", "kind": "candy-corn",
@ -674,7 +693,8 @@ AWARDS = {
"description": "", "description": "",
"icon": "fas fa-candy-corn", "icon": "fas fa-candy-corn",
"color": "text-orange", "color": "text-orange",
"price": 400 "price": 400,
"deflectable": False
}, },
"ectoplasm": { "ectoplasm": {
"kind": "ectoplasm", "kind": "ectoplasm",
@ -682,7 +702,8 @@ AWARDS = {
"description": "", "description": "",
"icon": "fas fa-ghost", "icon": "fas fa-ghost",
"color": "text-success", "color": "text-success",
"price": 400 "price": 400,
"deflectable": False
}, },
"bones": { "bones": {
"kind": "bones", "kind": "bones",
@ -690,7 +711,8 @@ AWARDS = {
"description": "", "description": "",
"icon": "fas fa-bone", "icon": "fas fa-bone",
"color": "text-white", "color": "text-white",
"price": 200 "price": 200,
"deflectable": False
}, },
"pumpkin": { "pumpkin": {
"kind": "pumpkin", "kind": "pumpkin",
@ -698,7 +720,8 @@ AWARDS = {
"description": "", "description": "",
"icon": "fas fa-jack-o-lantern", "icon": "fas fa-jack-o-lantern",
"color": "text-orange", "color": "text-orange",
"price": 200 "price": 200,
"deflectable": False
}, },
### Standard ### Standard
"marsify": { "marsify": {
@ -707,7 +730,8 @@ AWARDS = {
"description": "Marsifies the recipient's comments for 6 hours.", "description": "Marsifies the recipient's comments for 6 hours.",
"icon": "fas fa-cat", "icon": "fas fa-cat",
"color": "text-white", "color": "text-white",
"price": 150 "price": 150,
"deflectable": True
}, },
"shit": { "shit": {
"kind": "shit", "kind": "shit",
@ -715,7 +739,8 @@ AWARDS = {
"description": "Makes flies swarm the post.", "description": "Makes flies swarm the post.",
"icon": "fas fa-poop", "icon": "fas fa-poop",
"color": "text-black-50", "color": "text-black-50",
"price": 150 "price": 150,
"deflectable": False
}, },
"fireflies": { "fireflies": {
"kind": "fireflies", "kind": "fireflies",
@ -723,7 +748,8 @@ AWARDS = {
"description": "Makes fireflies swarm the post.", "description": "Makes fireflies swarm the post.",
"icon": "fas fa-sparkles", "icon": "fas fa-sparkles",
"color": "text-warning", "color": "text-warning",
"price": 150 "price": 150,
"deflectable": False
}, },
"train": { "train": {
"kind": "train", "kind": "train",
@ -731,7 +757,8 @@ AWARDS = {
"description": "Summons a train on the post.", "description": "Summons a train on the post.",
"icon": "fas fa-train", "icon": "fas fa-train",
"color": "text-pink", "color": "text-pink",
"price": 150 "price": 150,
"deflectable": False
}, },
"scooter": { "scooter": {
"kind": "scooter", "kind": "scooter",
@ -739,7 +766,8 @@ AWARDS = {
"description": "Summons a scooter on the post.", "description": "Summons a scooter on the post.",
"icon": "fas fa-flag-usa", "icon": "fas fa-flag-usa",
"color": "text-muted", "color": "text-muted",
"price": 150 "price": 150,
"deflectable": False
}, },
"wholesome": { "wholesome": {
"kind": "wholesome", "kind": "wholesome",
@ -747,7 +775,8 @@ AWARDS = {
"description": "Summons a wholesome marsey on the post.", "description": "Summons a wholesome marsey on the post.",
"icon": "fas fa-smile-beam", "icon": "fas fa-smile-beam",
"color": "text-yellow", "color": "text-yellow",
"price": 150 "price": 150,
"deflectable": False
}, },
"firework": { "firework": {
"kind": "firework", "kind": "firework",
@ -755,7 +784,8 @@ AWARDS = {
"description": "Summons fireworks on the post.", "description": "Summons fireworks on the post.",
"icon": "fas fa-bahai", "icon": "fas fa-bahai",
"color": "text-danger", "color": "text-danger",
"price": 150 "price": 150,
"deflectable": False
}, },
"confetti": { "confetti": {
"kind": "confetti", "kind": "confetti",
@ -763,7 +793,8 @@ AWARDS = {
"description": "Summons confetti to fall on the post.", "description": "Summons confetti to fall on the post.",
"icon": "fas fa-party-horn", "icon": "fas fa-party-horn",
"color": "text-yellow", "color": "text-yellow",
"price": 150 "price": 150,
"deflectable": False
}, },
"ricardo": { "ricardo": {
"kind": "ricardo", "kind": "ricardo",
@ -771,7 +802,8 @@ AWARDS = {
"description": "Summons Ricardo to dance on the post.", "description": "Summons Ricardo to dance on the post.",
"icon": "fas fa-pinata", "icon": "fas fa-pinata",
"color": "text-pink", "color": "text-pink",
"price": 150 "price": 150,
"deflectable": False
}, },
"tilt": { "tilt": {
"kind": "tilt", "kind": "tilt",
@ -779,7 +811,8 @@ AWARDS = {
"description": "Tilts the post or comment", "description": "Tilts the post or comment",
"icon": "fas fa-car-tilt", "icon": "fas fa-car-tilt",
"color": "text-blue", "color": "text-blue",
"price": 150 "price": 150,
"deflectable": False
}, },
"glowie": { "glowie": {
"kind": "glowie", "kind": "glowie",
@ -787,7 +820,8 @@ AWARDS = {
"description": "Indicates that the recipient can be seen when driving. Just run them over.", "description": "Indicates that the recipient can be seen when driving. Just run them over.",
"icon": "fas fa-user-secret", "icon": "fas fa-user-secret",
"color": "text-green", "color": "text-green",
"price": 150 "price": 150,
"deflectable": False
}, },
"agendaposter": { "agendaposter": {
"kind": "agendaposter", "kind": "agendaposter",
@ -795,7 +829,8 @@ AWARDS = {
"description": "Forces the chud theme on the recipient for 24 hours.", "description": "Forces the chud theme on the recipient for 24 hours.",
"icon": "fas fa-snooze", "icon": "fas fa-snooze",
"color": "text-purple", "color": "text-purple",
"price": 500 "price": 500,
"deflectable": True
}, },
"rehab": { "rehab": {
"kind": "rehab", "kind": "rehab",
@ -803,7 +838,8 @@ AWARDS = {
"description": "Prevents the user from gambling for 24 hours in a last ditch effort to save them from themself.", "description": "Prevents the user from gambling for 24 hours in a last ditch effort to save them from themself.",
"icon": "fas fa-dice-six", "icon": "fas fa-dice-six",
"color": "text-black", "color": "text-black",
"price": 777 "price": 777,
"deflectable": True
}, },
"offsitementions": { "offsitementions": {
"kind": "offsitementions", "kind": "offsitementions",
@ -812,6 +848,7 @@ AWARDS = {
"icon": "fas fa-eyes", "icon": "fas fa-eyes",
"color": "text-orange", "color": "text-orange",
"price": 1000, "price": 1000,
"deflectable": True
}, },
"lootbox": { "lootbox": {
"kind": "lootbox", "kind": "lootbox",
@ -819,7 +856,8 @@ AWARDS = {
"description": "", "description": "",
"icon": "fas fa-box-open", "icon": "fas fa-box-open",
"color": "text-blue", "color": "text-blue",
"price": 1000 "price": 1000,
"deflectable": True
}, },
"beano": { "beano": {
"kind": "beano", "kind": "beano",
@ -827,7 +865,8 @@ AWARDS = {
"description": "Stops you from embarrassing yourself with your flatulence", "description": "Stops you from embarrassing yourself with your flatulence",
"icon": "fas fa-gas-pump-slash", "icon": "fas fa-gas-pump-slash",
"color": "text-green", "color": "text-green",
"price": 1000 "price": 1000,
"deflectable": True
}, },
"unpin": { "unpin": {
"kind": "unpin", "kind": "unpin",
@ -835,7 +874,8 @@ AWARDS = {
"description": "Removes 1 hour from the pin duration of a post or 6 hours from the pin duration of a comment.", "description": "Removes 1 hour from the pin duration of a post or 6 hours from the pin duration of a comment.",
"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
}, },
"flairlock": { "flairlock": {
"kind": "flairlock", "kind": "flairlock",
@ -843,7 +883,8 @@ AWARDS = {
"description": "Sets a flair for the recipient and locks it for 24 hours.", "description": "Sets a flair for the recipient and locks it for 24 hours.",
"icon": "fas fa-lock", "icon": "fas fa-lock",
"color": "text-black", "color": "text-black",
"price": 1250 "price": 1250,
"deflectable": True
}, },
"pin": { "pin": {
"kind": "pin", "kind": "pin",
@ -851,7 +892,8 @@ AWARDS = {
"description": "Pins a post for 1 hour or a comment for 6 hours.", "description": "Pins a post for 1 hour or a comment for 6 hours.",
"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
}, },
"progressivestack": { "progressivestack": {
"kind": "progressivestack", "kind": "progressivestack",
@ -859,7 +901,8 @@ AWARDS = {
"description": "Makes votes on the recipient's posts and comments weigh double in the ranking algorithm for 6 hours.", "description": "Makes votes on the recipient's posts and comments weigh double in the ranking algorithm for 6 hours.",
"icon": "fas fa-bullhorn", "icon": "fas fa-bullhorn",
"color": "text-danger", "color": "text-danger",
"price": 1500 "price": 1500,
"deflectable": True
}, },
"pizzashill": { "pizzashill": {
"kind": "pizzashill", "kind": "pizzashill",
@ -867,7 +910,8 @@ AWARDS = {
"description": "Forces the recipient to make all posts/comments > 280 characters for 24 hours.", "description": "Forces the recipient to make all posts/comments > 280 characters for 24 hours.",
"icon": "fas fa-pizza-slice", "icon": "fas fa-pizza-slice",
"color": "text-orange", "color": "text-orange",
"price": 1500 "price": 1500,
"deflectable": True
}, },
"bird": { "bird": {
"kind": "bird", "kind": "bird",
@ -875,7 +919,8 @@ AWARDS = {
"description": "Forces the recipient to make all posts/comments < 140 characters for 24 hours.", "description": "Forces the recipient to make all posts/comments < 140 characters for 24 hours.",
"icon": "fab fa-twitter", "icon": "fab fa-twitter",
"color": "text-blue", "color": "text-blue",
"price": 1500 "price": 1500,
"deflectable": True
}, },
"spider": { "spider": {
"kind": "spider", "kind": "spider",
@ -883,7 +928,8 @@ AWARDS = {
"description": f"Summons a spider to terrorize the recipient for 24 hours.", "description": f"Summons a spider to terrorize the recipient for 24 hours.",
"icon": "fas fa-spider", "icon": "fas fa-spider",
"color": "text-brown", "color": "text-brown",
"price": 2000 "price": 2000,
"deflectable": True
}, },
"deflector": { "deflector": {
"kind": "deflector", "kind": "deflector",
@ -891,7 +937,8 @@ AWARDS = {
"description": "Causes most awards received for the next 10 hours to be deflected back at their giver.", "description": "Causes most awards received for the next 10 hours to be deflected back at their giver.",
"icon": "fas fa-shield", "icon": "fas fa-shield",
"color": "text-pink", "color": "text-pink",
"price": 2750 "price": 2750,
"deflectable": True
}, },
"marsey": { "marsey": {
"kind": "marsey", "kind": "marsey",
@ -899,7 +946,8 @@ AWARDS = {
"description": "Makes the recipient unable to post/comment anything but marsey emojis for 24 hours.", "description": "Makes the recipient unable to post/comment anything but marsey emojis for 24 hours.",
"icon": "fas fa-cat", "icon": "fas fa-cat",
"color": "text-orange", "color": "text-orange",
"price": 3000 "price": 3000,
"deflectable": True
}, },
"ban": { "ban": {
"kind": "ban", "kind": "ban",
@ -907,7 +955,8 @@ AWARDS = {
"description": "Bans the recipient for a day.", "description": "Bans the recipient for a day.",
"icon": "fas fa-gavel", "icon": "fas fa-gavel",
"color": "text-danger", "color": "text-danger",
"price": 3000 "price": 3000,
"deflectable": True
}, },
"unban": { "unban": {
"kind": "unban", "kind": "unban",
@ -915,7 +964,8 @@ AWARDS = {
"description": "Removes 1 day from the ban duration of the recipient.", "description": "Removes 1 day from the ban duration of the recipient.",
"icon": "fas fa-gavel", "icon": "fas fa-gavel",
"color": "text-success", "color": "text-success",
"price": 3500 "price": 3500,
"deflectable": True
}, },
"benefactor": { "benefactor": {
"kind": "benefactor", "kind": "benefactor",
@ -923,7 +973,8 @@ AWARDS = {
"description": f"Grants one month of {patron} status and 2500 marseybux to the recipient. Cannot be used on yourself.", "description": f"Grants one month of {patron} status and 2500 marseybux to the recipient. Cannot be used on yourself.",
"icon": "fas fa-gift", "icon": "fas fa-gift",
"color": "text-blue", "color": "text-blue",
"price": 4000 "price": 4000,
"deflectable": False
}, },
"grass": { "grass": {
"kind": "grass", "kind": "grass",
@ -931,7 +982,8 @@ AWARDS = {
"description": "Ban the recipient for 30 days (if they provide a timestamped picture of them touching grass/snow/sand/ass to the admins, they will get unbanned immediately)", "description": "Ban the recipient for 30 days (if they provide a timestamped picture of them touching grass/snow/sand/ass to the admins, they will get unbanned immediately)",
"icon": "fas fa-seedling", "icon": "fas fa-seedling",
"color": "text-success", "color": "text-success",
"price": 10000 "price": 10000,
"deflectable": True
}, },
"eye": { "eye": {
"kind": "eye", "kind": "eye",
@ -939,7 +991,8 @@ AWARDS = {
"description": "Gives the recipient the ability to view private profiles.", "description": "Gives the recipient the ability to view private profiles.",
"icon": "fas fa-eye", "icon": "fas fa-eye",
"color": "text-silver", "color": "text-silver",
"price": 10000 "price": 10000,
"deflectable": True
}, },
"unblockable": { "unblockable": {
"kind": "unblockable", "kind": "unblockable",
@ -947,7 +1000,8 @@ AWARDS = {
"description": "Makes the recipient unblockable and removes all blocks on them.", "description": "Makes the recipient unblockable and removes all blocks on them.",
"icon": "fas fa-laugh-squint", "icon": "fas fa-laugh-squint",
"color": "text-lightgreen", "color": "text-lightgreen",
"price": 20000 "price": 20000,
"deflectable": True
}, },
"fish": { "fish": {
"kind": "fish", "kind": "fish",
@ -955,7 +1009,8 @@ AWARDS = {
"description": "This user cannot be unfollowed", "description": "This user cannot be unfollowed",
"icon": "fas fa-fish", "icon": "fas fa-fish",
"color": "text-lightblue", "color": "text-lightblue",
"price": 20000 "price": 20000,
"deflectable": True
}, },
"pause": { "pause": {
"kind": "pause", "kind": "pause",
@ -963,7 +1018,8 @@ AWARDS = {
"description": "Gives the recipient the ability to pause profile anthems.", "description": "Gives the recipient the ability to pause profile anthems.",
"icon": "fas fa-volume-mute", "icon": "fas fa-volume-mute",
"color": "text-danger", "color": "text-danger",
"price": 20000 "price": 20000,
"deflectable": True
}, },
"unpausable": { "unpausable": {
"kind": "unpausable", "kind": "unpausable",
@ -971,7 +1027,8 @@ AWARDS = {
"description": "Makes the profile anthem of the recipient unpausable.", "description": "Makes the profile anthem of the recipient unpausable.",
"icon": "fas fa-volume", "icon": "fas fa-volume",
"color": "text-success", "color": "text-success",
"price": 40000 "price": 40000,
"deflectable": True
}, },
"alt": { "alt": {
"kind": "alt", "kind": "alt",
@ -979,7 +1036,8 @@ AWARDS = {
"description": "Gives the recipient the ability to view alts.", "description": "Gives the recipient the ability to view alts.",
"icon": "fas fa-eye", "icon": "fas fa-eye",
"color": "text-gold", "color": "text-gold",
"price": 50000 "price": 50000,
"deflectable": True
}, },
"checkmark": { "checkmark": {
"kind": "checkmark", "kind": "checkmark",
@ -987,7 +1045,8 @@ AWARDS = {
"description": "Gives the recipient a checkmark.", "description": "Gives the recipient a checkmark.",
"icon": "fas fa-badge-check", "icon": "fas fa-badge-check",
"color": "checkmark", "color": "checkmark",
"price": 100000 "price": 50000,
"deflectable": True
}, },
} }
@ -999,7 +1058,8 @@ if SITE_NAME != 'rDrama':
"description": "OwOifies the recipient's comments for 6 hours.", "description": "OwOifies the recipient's comments for 6 hours.",
"icon": "fas fa-paw-simple", "icon": "fas fa-paw-simple",
"color": "text-purple", "color": "text-purple",
"price": 400 "price": 400,
"deflectable": True
}, },
"rainbow": { "rainbow": {
"kind": "rainbow", "kind": "rainbow",
@ -1007,7 +1067,8 @@ if SITE_NAME != 'rDrama':
"description": "Makes the recipient's comments and posts in rainbow text for 24 hours.", "description": "Makes the recipient's comments and posts in rainbow text for 24 hours.",
"icon": "fas fa-cloud-rainbow", "icon": "fas fa-cloud-rainbow",
"color": "text-pink", "color": "text-pink",
"price": 400 "price": 400,
"deflectable": True
}, },
} }
AWARDS.update(EXTRA_AWARDS) AWARDS.update(EXTRA_AWARDS)
@ -1020,7 +1081,8 @@ if SITE_NAME == 'PCM':
"description": "Summons Croag on the post.", "description": "Summons Croag on the post.",
"icon": "fas fa-head-side", "icon": "fas fa-head-side",
"color": "text-gold", "color": "text-gold",
"price": 150 "price": 150,
"deflectable": False
}, },
"toe": { "toe": {
"kind": "toe", "kind": "toe",
@ -1028,7 +1090,8 @@ if SITE_NAME == 'PCM':
"description": "Summons Blade's toe on the post.", "description": "Summons Blade's toe on the post.",
"icon": "fas fa-socks", "icon": "fas fa-socks",
"color": "text-blue", "color": "text-blue",
"price": 150 "price": 150,
"deflectable": False
}, },
"crab": { "crab": {
"kind": "crab", "kind": "crab",
@ -1036,7 +1099,8 @@ if SITE_NAME == 'PCM':
"description": "Rave time!", "description": "Rave time!",
"icon": "fas fa-crab", "icon": "fas fa-crab",
"color": "text-danger", "color": "text-danger",
"price": 4000 "price": 4000,
"deflectable": False
} }
} }
AWARDS.update(PCM_AWARDS) AWARDS.update(PCM_AWARDS)
@ -1058,7 +1122,8 @@ HOUSE_AWARDS = {
"description": "OwOifies the recipient's comments for 6 hours.", "description": "OwOifies the recipient's comments for 6 hours.",
"icon": "fas fa-paw-simple", "icon": "fas fa-paw-simple",
"color": "text-purple", "color": "text-purple",
"price": 400 "price": 400,
"deflectable": True
}, },
"Femboy": { "Femboy": {
"kind": "Femboy", "kind": "Femboy",
@ -1066,7 +1131,8 @@ HOUSE_AWARDS = {
"description": "Makes the recipient's comments and posts in rainbow text for 24 hours.", "description": "Makes the recipient's comments and posts in rainbow text for 24 hours.",
"icon": "fas fa-cloud-rainbow", "icon": "fas fa-cloud-rainbow",
"color": "text-pink", "color": "text-pink",
"price": 400 "price": 400,
"deflectable": True
}, },
"Vampire": { "Vampire": {
"kind": "Vampire", "kind": "Vampire",
@ -1074,7 +1140,8 @@ HOUSE_AWARDS = {
"description": "Turns the recipient into a vampire for 24 hours.", "description": "Turns the recipient into a vampire for 24 hours.",
"icon": "fas fa-bat", "icon": "fas fa-bat",
"color": "text-gray", "color": "text-gray",
"price": 400 "price": 400,
"deflectable": True
}, },
"Racist": { "Racist": {
"kind": "Racist", "kind": "Racist",
@ -1082,7 +1149,8 @@ HOUSE_AWARDS = {
"description": "Checks the recipient's Early Life section on Wikipedia. Notices.", "description": "Checks the recipient's Early Life section on Wikipedia. Notices.",
"icon": "fas fa-star-of-david", "icon": "fas fa-star-of-david",
"color": "text-yellow", "color": "text-yellow",
"price": 400 "price": 400,
"deflectable": True
}, },
} }

View File

@ -182,7 +182,7 @@ def award_thing(v, thing_type, id):
return {"message": f"{AWARDS[kind]['title']} award given to {thing_type} successfully!"} return {"message": f"{AWARDS[kind]['title']} award given to {thing_type} successfully!"}
if author.deflector and (AWARDS[kind]['price'] > 500 or kind == 'marsify' or kind.istitle()) and kind not in ('pin','unpin','benefactor'): if author.deflector and AWARDS[kind]['deflectable']:
msg = f"@{v.username} has tried to give your [{thing_type}]({thing.shortlink}) the {AWARDS[kind]['title']} Award but it was deflected and applied to them :marseytroll:" msg = f"@{v.username} has tried to give your [{thing_type}]({thing.shortlink}) the {AWARDS[kind]['title']} Award but it was deflected and applied to them :marseytroll:"
send_repeatable_notification(author.id, msg) send_repeatable_notification(author.id, msg)
msg = f"{safe_username} is under the effect of a deflector award; your {AWARDS[kind]['title']} Award has been deflected back to you :marseytroll:" msg = f"{safe_username} is under the effect of a deflector award; your {AWARDS[kind]['title']} Award has been deflected back to you :marseytroll:"