mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-09 07:57:50 +00:00
* initial commit * switcheroo * include the rest * fire triangle * a * update 2-20 * turfs and reagents and more * zburn first draft * remove fire_old * initial compat * stable compile * remove pressure factor * total autoignition death * thermal material datums * a * more autoignition * temporary fix for testing * everything is FUCK * burning now * stacks burning * recursive functionality * restore burnitselfup * specific burn case * everything is shit and fuck * refactor * nit * color & light performance increase * fix * smoke cap + changes * updates * final (for now) * remove double count, unit issues, and more tweaks * logspam and grammar * prevents worn or held items from burning * minimum burn time * fix runtime * The Cardboard Update * vis_contents * cigs burn lol * lmao * refactor fire protection * final fix * some more held/worn item fixes * maybe fix foods burning forever * compile * restore plasma burning lmao * review changes * copypasta error * copypasta errors 2: this time it's personal * declare * extensive fixes * fix liquid burning behavior * wtf * undo smoke cap * mutable appearances + removal of debug messages * DMDOC compat * review changes * return * misleading comment
50 lines
1.8 KiB
Plaintext
50 lines
1.8 KiB
Plaintext
#define POWERCREEP_PACKET_ACTIVATION_TIME_IN_SECONDS 3
|
|
|
|
/obj/item/deployable_packet
|
|
desc = ""
|
|
w_class = W_CLASS_TINY
|
|
w_type = RECYK_WOOD
|
|
flammable = TRUE
|
|
var/activated = 0
|
|
var/deployeditem = null
|
|
|
|
/obj/item/deployable_packet/attack_self(mob/user)
|
|
if(!istype(user))
|
|
return
|
|
if(activated)
|
|
return
|
|
|
|
to_chat(user, "<span class='warning'>You shake \the [src].</span>")
|
|
to_chat(user, "<span class='danger'>It starts vibrating weirdly!</span>")
|
|
activated = 1
|
|
|
|
spawn(POWERCREEP_PACKET_ACTIVATION_TIME_IN_SECONDS SECONDS)
|
|
new deployeditem(get_turf(src)) //used to have the [packet_override = 1] var for powercreep fast spawn from packet, but it broke biomass spawning
|
|
qdel(src)
|
|
|
|
/obj/item/deployable_packet/biomass
|
|
name = "biomass packet"
|
|
icon = 'icons/obj/biomass.dmi'
|
|
icon_state = "packet"
|
|
deployeditem = /obj/effect/biomass_controller
|
|
|
|
/obj/item/deployable_packet/biomass/examine(mob/user, size, show_name)
|
|
. = ..()
|
|
to_chat(user, "Derek Baum VII's latest innovation. Carries a cryo-stabilized sample of biomass tissue.")
|
|
to_chat(user, "It reads:\nStep 1: Shake to active.\nStep 2: Throw.\nStep 3: Enjoy.")
|
|
if(activated)
|
|
to_chat(user, "<span class='danger'>It's bubbling weirdly!</span>")
|
|
|
|
/obj/item/deployable_packet/powercreeper
|
|
name = "powercreeper packet"
|
|
icon = 'icons/obj/structures/powercreeper.dmi'
|
|
icon_state = "packet"
|
|
deployeditem = /obj/structure/cable/powercreeper
|
|
|
|
/obj/item/deployable_packet/powercreeper/examine(mob/user, size, show_name)
|
|
. = ..()
|
|
to_chat(user, "Derek Baum VII's most popular creation. Carries a self-replicating sample of powercreeper.")
|
|
to_chat(user, "It reads:\nStep 1: Shake to active.\nStep 2: You have [POWERCREEP_PACKET_ACTIVATION_TIME_IN_SECONDS] seconds to run.")
|
|
if(activated)
|
|
to_chat(user, "<span class='danger'>It's sizzling weirdly!</span>")
|