mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-01 12:31:32 +00:00
* 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>
38 lines
1.1 KiB
Plaintext
38 lines
1.1 KiB
Plaintext
/obj/item/stack/light_w
|
|
name = "wired glass tile"
|
|
singular_name = "wired glass floor tile"
|
|
desc = "A glass tile, which is wired, somehow."
|
|
icon = 'icons/obj/tiles.dmi'
|
|
icon_state = "glass_wire"
|
|
w_class = WEIGHT_CLASS_NORMAL
|
|
force = 3
|
|
throwforce = 5
|
|
throw_speed = 3
|
|
throw_range = 7
|
|
flags_1 = CONDUCT_1
|
|
max_amount = 60
|
|
grind_results = list(/datum/reagent/silicon = 20, /datum/reagent/copper = 5)
|
|
merge_type = /obj/item/stack/light_w
|
|
|
|
/obj/item/stack/light_w/attackby(obj/item/O, mob/user, params)
|
|
if(istype(O, /obj/item/stack/sheet/iron))
|
|
var/obj/item/stack/sheet/iron/M = O
|
|
if (M.use(1))
|
|
var/obj/item/L = new /obj/item/stack/tile/light(user.drop_location())
|
|
to_chat(user, span_notice("You make a light tile."))
|
|
L.add_fingerprint(user)
|
|
use(1)
|
|
else
|
|
to_chat(user, span_warning("You need one iron sheet to finish the light tile!"))
|
|
else
|
|
return ..()
|
|
|
|
/obj/item/stack/light_w/wirecutter_act(mob/living/user, obj/item/I)
|
|
. = ..()
|
|
var/atom/Tsec = user.drop_location()
|
|
var/obj/item/stack/cable_coil/CC = new (Tsec, 5)
|
|
CC.add_fingerprint(user)
|
|
var/obj/item/stack/sheet/glass/G = new (Tsec)
|
|
G.add_fingerprint(user)
|
|
use(1)
|