mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-22 15:41:41 +00:00
Moves singulo and supermatter dmis into obj/engine, renamed from obj/tesla_engine Moves Halloween, Christmas, and misc holiday items to obj/holiday Moves lollipops to obj/food Moves crates, closets, and storage to obj/storage Moves assemblies to obj/assemblies Renames decals.dmi to signs.dmi ...because they're signs and not decals Moves statues, cutouts, instruments, art supplies, and crayons to obj/art Moves balloons, plushes, toys, cards, dice, the hourglass, and TCG to obj/toys Moves guns, swords, shields to obj/weapons
44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
/obj/item/assembly/shock_kit
|
|
name = "electrohelmet assembly"
|
|
desc = "This appears to be made from both an electropack and a helmet."
|
|
icon = 'icons/obj/assemblies/assemblies.dmi'
|
|
icon_state = "shock_kit"
|
|
var/obj/item/clothing/head/helmet/helmet_part = null
|
|
var/obj/item/electropack/electropack_part = null
|
|
w_class = WEIGHT_CLASS_HUGE
|
|
flags_1 = CONDUCT_1
|
|
|
|
/obj/item/assembly/shock_kit/Destroy()
|
|
QDEL_NULL(helmet_part)
|
|
QDEL_NULL(electropack_part)
|
|
return ..()
|
|
|
|
/obj/item/assembly/shock_kit/Initialize(mapload)
|
|
. = ..()
|
|
if(!helmet_part)
|
|
helmet_part = new(src)
|
|
helmet_part.master = src
|
|
if(!electropack_part)
|
|
electropack_part = new(src)
|
|
electropack_part.master = src
|
|
|
|
/obj/item/assembly/shock_kit/wrench_act(mob/living/user, obj/item/I)
|
|
..()
|
|
to_chat(user, span_notice("You disassemble [src]."))
|
|
if(helmet_part)
|
|
helmet_part.forceMove(drop_location())
|
|
helmet_part.master = null
|
|
helmet_part = null
|
|
if(electropack_part)
|
|
electropack_part.forceMove(drop_location())
|
|
electropack_part.master = null
|
|
electropack_part = null
|
|
qdel(src)
|
|
return TRUE
|
|
|
|
/obj/item/assembly/shock_kit/attack_self(mob/user)
|
|
helmet_part.attack_self(user)
|
|
electropack_part.attack_self(user)
|
|
add_fingerprint(user)
|
|
return
|