Convert disrobe implant to use LPD

Updates the Rapid Disrobe implant to use the LPD clothing burst effect, and slightly updates the flavor text.
This commit is contained in:
Darius
2023-01-10 17:59:13 -05:00
parent b605e0ee6a
commit a1a35ad4ef
@@ -15,8 +15,8 @@
<b>Important Notes:</b> Nanotransen requires employees to follow workplace safety standards, including protective clothing.<BR>
<HR>
<b>Implant Details:</b><BR>
<b>Function:</b> Allows the user to launch covering clothing items from the body.<BR>
<b>Special Features:</b> Allows the express removal of embarrassing maid outfits.<BR>
<b>Function:</b> Lines the subject's epidermis with high power static charge nodes, allowing the rapid removal of worn clothing.<BR>
<b>Special Features:</b> Will not cause drunkenness in most subjects.<BR>
<b>Integrity:</b> Implant will last so long as it is inside the host.
"}
@@ -33,44 +33,11 @@
/obj/item/implant/disrobe/activate()
. = ..()
// Get worn items
var/items = imp_in.get_contents()
// Define target
var/mob/living/carbon/target_user = imp_in
// Did the action succeed?
var/user_disrobed = FALSE
// Iterate over worn items
for(var/obj/item/item_worn in items)
// Ignore non-mob (storage)
if(!ismob(item_worn.loc))
continue
// Ignore held items
if(imp_in.is_holding(item_worn))
continue
// Check for anything covering CHEST or GROIN
// These are the regions used by the nudist quirk
if((item_worn.body_parts_covered & CHEST) || (item_worn.body_parts_covered & GROIN))
// Drop the target item
imp_in.dropItemToGround(item_worn, TRUE)
// Throw item to a random spot
item_worn.throw_at(pick(oview(7,get_turf(src))),10,1)
// Play the poster rip sound
playsound(imp_in.loc, 'sound/items/poster_ripped.ogg', 50, 1)
// Set the activation variable
user_disrobed = TRUE
// Display a chat message on success
if(user_disrobed)
imp_in.visible_message(span_notice("[imp_in] bursts out of [imp_in.p_their()] clothes!</span>"), span_notice("You burst out of your clothes!</span>"))
// Alert the user on failure
else
to_chat(imp_in, span_notice("You have nothing to disrobe!"))
// Perform LPD effect
target_user.clothing_burst(target_user)
/*
* Action datums
@@ -79,7 +46,7 @@
// Action for rapid wardrobe removal
/datum/action/item_action/disrobe
name = "Rapid Disrobe"
desc = "Eject all torso-covering clothing from your body."
desc = "Instantly eject all covering clothing from your body."
icon_icon = 'modular_splurt/icons/mob/actions/misc_actions.dmi'
button_icon_state = "no_uniform"
background_icon_state = "bg_tech"