mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-12 19:22:56 +00:00
34 lines
996 B
Plaintext
34 lines
996 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 = 5
|
|
throw_range = 20
|
|
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/obj/item/stack/cable_coil(user.loc)
|
|
CC.amount = 5
|
|
amount--
|
|
new/obj/item/stack/material/glass(user.loc)
|
|
if(amount <= 0)
|
|
user.drop_from_inventory(src)
|
|
qdel(src)
|
|
|
|
if(istype(O,/obj/item/stack/material/steel))
|
|
var/obj/item/stack/material/steel/M = O
|
|
if (M.use(1))
|
|
use(1)
|
|
new/obj/item/stack/tile/light(get_turf(user))
|
|
user << "<span class='notice'>You make a light tile.</span>"
|
|
else
|
|
user << "<span class='warning'>You need one metal sheet to finish the light tile.</span>"
|
|
return
|