mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Supermatter splinter interactions (#30411)
* Supermatter Splinter Interactions * compile
This commit is contained in:
@@ -22,35 +22,51 @@
|
|||||||
icon = original
|
icon = original
|
||||||
|
|
||||||
/obj/item/supermatter_splinter/prepickup(mob/living/user)
|
/obj/item/supermatter_splinter/prepickup(mob/living/user)
|
||||||
var/datum/organ/external/external = user.get_active_hand_organ()
|
var/obj/item/supermatter_shielding/SS = locate(/obj/item/supermatter_shielding) in contents
|
||||||
if(external)
|
if(SS)
|
||||||
user.visible_message("<span class = 'warning>As \the [user] grasps onto \the [src], their [external.display_name] begins rapidly combusting!</span>", "<span class = 'warning'>As you try to get a grip onto \the [src], you feel your [external.display_name] tingle and glow, before it rapidly dissipates into ash.</span>")
|
SS.supermatter_act(src)
|
||||||
playsound(src, 'sound/effects/supermatter.ogg', 50, 1)
|
else
|
||||||
external.dust()
|
var/obj/item/clothing/gloves/golden/G = user.get_item_by_slot(slot_gloves)
|
||||||
return 1
|
if(istype(G))
|
||||||
|
to_chat(user,"<span class='notice'>The special lubrication on \the [G] prevents your hand from melting, but also prevents you from getting a grip.</span>")
|
||||||
|
return 1
|
||||||
|
var/datum/organ/external/external = user.get_active_hand_organ()
|
||||||
|
if(external)
|
||||||
|
user.visible_message("<span class='warning'>As \the [user] grasps onto \the [src], their [external.display_name] begins rapidly combusting!</span>", "<span class = 'warning'>As you try to get a grip onto \the [src], you feel your [external.display_name] tingle and glow, before it rapidly dissipates into ash.</span>")
|
||||||
|
playsound(src, 'sound/effects/supermatter.ogg', 50, 1)
|
||||||
|
external.dust()
|
||||||
|
return 1
|
||||||
|
|
||||||
/obj/item/supermatter_splinter/kick_act(mob/living/carbon/human/user)
|
/obj/item/supermatter_splinter/kick_act(mob/living/carbon/human/user)
|
||||||
var/obj/shoes = user.shoes
|
var/obj/item/supermatter_shielding/SS = locate(/obj/item/supermatter_shielding) in contents
|
||||||
if(shoes)
|
if(SS)
|
||||||
user.visible_message("<span class = 'warning'>As \the [user] goes to kick \the [src], their [shoes] collide with \the [src] and rapidly flash into ash.</span>")
|
SS.supermatter_act(src)
|
||||||
user.u_equip(shoes, 1)
|
else
|
||||||
var/obj/O = shoes.ashtype()
|
var/obj/shoes = user.shoes
|
||||||
new O(user.loc)
|
if(shoes)
|
||||||
qdel(shoes)
|
user.visible_message("<span class = 'warning'>As \the [user] goes to kick \the [src], their [shoes] collide with \the [src] and rapidly flash into ash.</span>")
|
||||||
else //Oh nooo
|
user.u_equip(shoes, 1)
|
||||||
var/datum/organ/external/external = user.get_organ(pick(LIMB_RIGHT_LEG, LIMB_LEFT_LEG, LIMB_RIGHT_FOOT, LIMB_LEFT_FOOT))
|
var/obj/O = shoes.ashtype()
|
||||||
user.visible_message("<span class = 'warning>As \the [user] goes to punt \the [src], their [external.display_name] begins rapidly combusting!</span>", "<span class = 'warning'>As you try to kick \the [src], you feel your [external.display_name] tingle and glow, before it rapidly dissipates into ash.</span>")
|
new O(user.loc)
|
||||||
playsound(src, 'sound/effects/supermatter.ogg', 50, 1)
|
qdel(shoes)
|
||||||
external.dust()
|
else //Oh nooo
|
||||||
return 0
|
var/datum/organ/external/external = user.get_organ(pick(LIMB_RIGHT_LEG, LIMB_LEFT_LEG, LIMB_RIGHT_FOOT, LIMB_LEFT_FOOT))
|
||||||
|
user.visible_message("<span class = 'warning>As \the [user] goes to punt \the [src], their [external.display_name] begins rapidly combusting!</span>", "<span class = 'warning'>As you try to kick \the [src], you feel your [external.display_name] tingle and glow, before it rapidly dissipates into ash.</span>")
|
||||||
|
playsound(src, 'sound/effects/supermatter.ogg', 50, 1)
|
||||||
|
external.dust()
|
||||||
|
return 0
|
||||||
|
|
||||||
/obj/item/supermatter_splinter/bite_act(mob/living/carbon/human/user)
|
/obj/item/supermatter_splinter/bite_act(mob/living/carbon/human/user)
|
||||||
var/datum/organ/external/head = user.get_organ(LIMB_HEAD)
|
var/obj/item/supermatter_shielding/SS = locate(/obj/item/supermatter_shielding) in contents
|
||||||
if(head)
|
if(SS)
|
||||||
user.visible_message("<span class = 'warning'>As \the [user] bites down into \the [src], their [head.display_name] begins glowing a deep crimson before turning to dust.","<span class = 'warning'>As you bite down onto \the [src], you realize that supermatter tastes oddly like cheese and pickles before your tastebuds, then your tongue, and finally your entire head ceases to be.</span>")
|
SS.supermatter_act(src)
|
||||||
playsound(src, 'sound/effects/supermatter.ogg', 50, 1)
|
else
|
||||||
head.dust()
|
var/datum/organ/external/head = user.get_organ(LIMB_HEAD)
|
||||||
return 0
|
if(head)
|
||||||
|
user.visible_message("<span class = 'warning'>As \the [user] bites down into \the [src], their [head.display_name] begins glowing a deep crimson before turning to dust.","<span class = 'warning'>As you bite down onto \the [src], you realize that supermatter tastes oddly like cheese and pickles before your tastebuds, then your tongue, and finally your entire head ceases to be.</span>")
|
||||||
|
playsound(src, 'sound/effects/supermatter.ogg', 50, 1)
|
||||||
|
head.dust()
|
||||||
|
return 0
|
||||||
|
|
||||||
/obj/item/supermatter_splinter/can_be_stored(var/obj/item/weapon/storage/S)
|
/obj/item/supermatter_splinter/can_be_stored(var/obj/item/weapon/storage/S)
|
||||||
if(istype(S, /obj/item/weapon/storage/backpack/holding))
|
if(istype(S, /obj/item/weapon/storage/backpack/holding))
|
||||||
|
|||||||
Reference in New Issue
Block a user