mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-01-07 07:22:56 +00:00
* renames metal sheets to iron sheets * Merge branch 'master' into upstream-merge-56643 * yay metal * Update DeltaStation2_skyrat.dmm * a * Update CentCom_skyrat_z2.dmm * a * a Co-authored-by: Fikou <piotrbryla@onet.pl> Co-authored-by: Gandalf2k15 <jzo123@hotmail.com>
27 lines
807 B
Plaintext
27 lines
807 B
Plaintext
/obj/item/stack/tile/light
|
|
name = "light tile"
|
|
singular_name = "light floor tile"
|
|
desc = "A floor tile, made out of glass. It produces light."
|
|
icon_state = "tile_e"
|
|
flags_1 = CONDUCT_1
|
|
attack_verb_continuous = list("bashes", "batters", "bludgeons", "thrashes", "smashes")
|
|
attack_verb_simple = list("bash", "batter", "bludgeon", "thrash", "smash")
|
|
turf_type = /turf/open/floor/light
|
|
merge_type = /obj/item/stack/tile/light
|
|
var/state = 0
|
|
|
|
/obj/item/stack/tile/light/attackby(obj/item/O, mob/user, params)
|
|
if(O.tool_behaviour == TOOL_CROWBAR)
|
|
new/obj/item/stack/sheet/iron(user.loc)
|
|
amount--
|
|
new/obj/item/stack/light_w(user.loc)
|
|
if(amount <= 0)
|
|
qdel(src)
|
|
else
|
|
return ..()
|
|
|
|
/obj/item/stack/tile/light/place_tile(turf/open/T)
|
|
. = ..()
|
|
var/turf/open/floor/light/F = .
|
|
F?.state = state
|