mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-21 19:17:50 +01:00
* Removes unused sling icons * first wave of icons * more icons and stuff * more icons and fixes * mindswap fixed * more actions.dmi adjustments * some more * dust biochip unique icon * small fix * test * Update actions.dmi * mhm * reverse of some changes that are pointless as it stands * Update implant_dust.dm * bio-chip icons * dust_implant new icon path * missing icon for human form cling ability added * removed the directional icons of the immrod action icon (yes)
41 lines
1.4 KiB
Plaintext
41 lines
1.4 KiB
Plaintext
// Dust implant, for CC officers. Prevents gear theft if they die.
|
|
|
|
/obj/item/implant/dust
|
|
name = "duster bio-chip"
|
|
desc = "A remote controlled bio-chip that will dust the user upon activation (or death of user)."
|
|
icon = 'icons/obj/implants.dmi'
|
|
icon_state = "dust"
|
|
actions_types = list(/datum/action/item_action/hands_free/activate/always)
|
|
trigger_causes = BIOCHIP_TRIGGER_DEATH_ONCE | BIOCHIP_TRIGGER_NOT_WHEN_GIBBED
|
|
implant_data = /datum/implant_fluff/dust
|
|
implant_state = "implant-nanotrasen"
|
|
|
|
/obj/item/implant/dust/death_trigger(mob/source, force)
|
|
activate("death")
|
|
|
|
/obj/item/implant/dust/activate(cause)
|
|
if(!cause || !imp_in || cause == "emp")
|
|
return FALSE
|
|
if(cause == "action_button" && alert(imp_in, "Are you sure you want to activate your dusting bio-chip? This will turn you to ash!", "Dusting Confirmation", "Yes", "No") != "Yes")
|
|
return FALSE
|
|
to_chat(imp_in, "<span class='notice'>Your dusting bio-chip activates!</span>")
|
|
imp_in.visible_message("<span class = 'warning'>[imp_in] burns up in a flash!</span>")
|
|
for(var/obj/item/I in imp_in.contents)
|
|
if(I == src)
|
|
continue
|
|
if(I.flags & NODROP)
|
|
qdel(I)
|
|
imp_in.dust()
|
|
|
|
/obj/item/implant/dust/emp_act(severity)
|
|
return
|
|
|
|
/obj/item/implanter/dust
|
|
name = "bio-chip implanter (Dust-on-death)"
|
|
implant_type = /obj/item/implant/dust
|
|
|
|
/obj/item/implantcase/dust
|
|
name = "bio-chip case - 'Dust'"
|
|
desc = "A glass case containing a dust bio-chip."
|
|
implant_type = /obj/item/implant/dust
|