mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-17 18:19:16 +01:00
## About The Pull Request Commit messages should be descriptive of all changes. The "incorrect `\The` macro capitalization" was intentional when it was added, but as far as I know TG says "the supermatter" rather than "The Supermatter," so it's incorrect now. This is completely untested. I don't even know how you'd go about testing this, it's just a fuckton of strings. Someday I want to extract them and run NLP on it to catch grammar problems... ## Why It's Good For The Game Basic grammar pass for name strings. Should make `\the` work better and avoid cases like `the John Smith`.
45 lines
1.3 KiB
Plaintext
45 lines
1.3 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
|
|
obj_flags = CONDUCTS_ELECTRICITY
|
|
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/examine(mob/user)
|
|
. = ..()
|
|
. += span_warning("\The [src] looks unfinished, add <b>iron</b> to complete it.")
|
|
|
|
/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."))
|
|
if (!QDELETED(L))
|
|
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)
|
|
if (!QDELETED(CC))
|
|
CC.add_fingerprint(user)
|
|
var/obj/item/stack/sheet/glass/G = new (Tsec)
|
|
if (!QDELETED(G))
|
|
G.add_fingerprint(user)
|
|
use(1)
|