Files
Bubberstation/code/game/objects/items/stacks/tape.dm
SkyratBot 7d1d0e1fad [MIRROR] Refactors most spans into span procs (#6315)
* Refactors most spans into span procs

* AA

* a

* AAAAAAAAAAAAAAAAAAAAAA

* Update species.dm

Co-authored-by: Watermelon914 <37270891+Watermelon914@users.noreply.github.com>
Co-authored-by: Gandalf <jzo123@hotmail.com>
2021-06-16 00:24:49 +01:00

111 lines
3.7 KiB
Plaintext

/obj/item/stack/sticky_tape
name = "sticky tape"
singular_name = "sticky tape"
desc = "Used for sticking to things for sticking said things to people."
icon = 'icons/obj/tapes.dmi'
icon_state = "tape_w"
var/prefix = "sticky"
w_class = WEIGHT_CLASS_TINY
full_w_class = WEIGHT_CLASS_TINY
item_flags = NOBLUDGEON
amount = 5
max_amount = 5
resistance_flags = FLAMMABLE
grind_results = list(/datum/reagent/cellulose = 5)
splint_factor = 0.8
merge_type = /obj/item/stack/sticky_tape
var/list/conferred_embed = EMBED_HARMLESS
/obj/item/stack/sticky_tape/afterattack(obj/item/I, mob/living/user, proximity)
if(!proximity)
return
if(!istype(I))
return
//SKYRAT EDIT ADDITION
if(istype(I, /obj/item/clothing/shoes/combat/peacekeeper))
var/obj/item/clothing/shoes/combat/peacekeeper/boot = I
var/datum/component/squeak/annoyance = boot.GetComponent(/datum/component/squeak)
if(!annoyance)
to_chat(user, "<span class='notice'>[src] have already been silenced!")
return
if(do_after(user, 30, target=boot))
if(use(5))
to_chat(user, "<span class='notice'>You tape [src] tightly together, reducing the sound they make as you walk.</span>")
qdel(annoyance)
return
else
to_chat(user, "<span class='notice'>[src] does not have enough tape in it!</span>")
return
//SKYRAT EDIT END
if(I.embedding && I.embedding == conferred_embed)
to_chat(user, span_warning("[I] is already coated in [src]!"))
return
user.visible_message(span_notice("[user] begins wrapping [I] with [src]."), span_notice("You begin wrapping [I] with [src]."))
if(do_after(user, 30, target=I))
use(1)
if(istype(I, /obj/item/clothing/gloves/fingerless))
var/obj/item/clothing/gloves/tackler/offbrand/O = new /obj/item/clothing/gloves/tackler/offbrand
to_chat(user, span_notice("You turn [I] into [O] with [src]."))
QDEL_NULL(I)
user.put_in_hands(O)
return
if(I.embedding && I.embedding == conferred_embed)
to_chat(user, span_warning("[I] is already coated in [src]!"))
return
I.embedding = conferred_embed
I.updateEmbedding()
to_chat(user, span_notice("You finish wrapping [I] with [src]."))
I.name = "[prefix] [I.name]"
if(istype(I, /obj/item/grenade))
var/obj/item/grenade/sticky_bomb = I
sticky_bomb.sticky = TRUE
/obj/item/stack/sticky_tape/super
name = "super sticky tape"
singular_name = "super sticky tape"
desc = "Quite possibly the most mischevious substance in the galaxy. Use with extreme lack of caution."
icon_state = "tape_y"
prefix = "super sticky"
conferred_embed = EMBED_HARMLESS_SUPERIOR
splint_factor = 0.6
merge_type = /obj/item/stack/sticky_tape/super
/obj/item/stack/sticky_tape/pointy
name = "pointy tape"
singular_name = "pointy tape"
desc = "Used for sticking to things for sticking said things inside people."
icon_state = "tape_evil"
prefix = "pointy"
conferred_embed = EMBED_POINTY
merge_type = /obj/item/stack/sticky_tape/pointy
/obj/item/stack/sticky_tape/pointy/super
name = "super pointy tape"
singular_name = "super pointy tape"
desc = "You didn't know tape could look so sinister. Welcome to Space Station 13."
icon_state = "tape_spikes"
prefix = "super pointy"
conferred_embed = EMBED_POINTY_SUPERIOR
merge_type = /obj/item/stack/sticky_tape/pointy/super
/obj/item/stack/sticky_tape/surgical
name = "surgical tape"
singular_name = "surgical tape"
desc = "Made for patching broken bones back together alongside bone gel, not for playing pranks."
//icon_state = "tape_spikes"
prefix = "surgical"
conferred_embed = list("embed_chance" = 30, "pain_mult" = 0, "jostle_pain_mult" = 0, "ignore_throwspeed_threshold" = TRUE)
splint_factor = 0.4
custom_price = PAYCHECK_MEDIUM
merge_type = /obj/item/stack/sticky_tape/surgical