mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-23 15:38:08 +00:00
39 lines
977 B
Plaintext
39 lines
977 B
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_state = "glass_wire"
|
|
w_class = 3.0
|
|
force = 3.0
|
|
throwforce = 5.0
|
|
throw_speed = 3
|
|
throw_range = 7
|
|
flags = CONDUCT
|
|
max_amount = 60
|
|
|
|
/obj/item/stack/light_w/attackby(var/obj/item/O as obj, var/mob/user as mob)
|
|
..()
|
|
if(istype(O,/obj/item/weapon/wirecutters))
|
|
var/obj/item/stack/cable_coil/CC = new (user.loc)
|
|
CC.amount = 5
|
|
CC.add_fingerprint(user)
|
|
amount--
|
|
var/obj/item/stack/sheet/glass/G = new (user.loc)
|
|
G.add_fingerprint(user)
|
|
if(amount <= 0)
|
|
user.unEquip(src, 1)
|
|
del(src)
|
|
|
|
if(istype(O,/obj/item/stack/sheet/metal))
|
|
var/obj/item/stack/sheet/metal/M = O
|
|
M.amount--
|
|
if(M.amount <= 0)
|
|
user.unEquip(M, 1)
|
|
del(M)
|
|
amount--
|
|
var/obj/item/stack/tile/light/L = new (user.loc)
|
|
L.add_fingerprint(user)
|
|
if(amount <= 0)
|
|
user.unEquip(src, 1)
|
|
del(src)
|