[MIRROR] Autodocs the slippery component + changes the hardcoded slot whitelist to a variable (#4318)

* Autodocs the slippery component + changes the hardcoded slot whitelist to a variable (#57878)

* Autodocs the slippery component + changes the hardcoded slot whitelist to a variable

Co-authored-by: MrMelbert <51863163+MrMelbert@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-03-22 13:04:45 +00:00
committed by GitHub
co-authored by MrMelbert
parent 71c4f1c20e
commit 973c2c8a6c
2 changed files with 56 additions and 11 deletions
@@ -9,7 +9,7 @@
/obj/item/pda/clown/ComponentInitialize()
. = ..()
AddComponent(/datum/component/slippery/clowning, 120, NO_SLIP_WHEN_WALKING, CALLBACK(src, .proc/AfterSlip))
AddComponent(/datum/component/slippery/clowning, 120, NO_SLIP_WHEN_WALKING, CALLBACK(src, .proc/AfterSlip), slot_whitelist = list(ITEM_SLOT_ID, ITEM_SLOT_BELT))
AddComponent(/datum/component/wearertargeting/sitcomlaughter, CALLBACK(src, .proc/after_sitcom_laugh))
/obj/item/pda/clown/proc/AfterSlip(mob/living/carbon/human/M)