Steel Carving (#11142)

This commit is contained in:
Geeves
2021-02-15 16:02:33 +02:00
committed by GitHub
parent c38d0a1ac6
commit 6f0af4cd62
3 changed files with 23 additions and 2 deletions

View File

@@ -66,8 +66,7 @@
new /datum/stack_recipe("key", /obj/item/key, 1, time = 10, one_per_turf = 0, on_floor = 1),
new /datum/stack_recipe("custodial cart", /obj/structure/janitorialcart, BUILD_AMT, time = 120, one_per_turf = 1, on_floor = 1),
new /datum/stack_recipe("closet", /obj/structure/closet, BUILD_AMT, time = 15, one_per_turf = 1, on_floor = 1),
new /datum/stack_recipe("canister", /obj/machinery/portable_atmospherics/canister, 10, time = 15, one_per_turf = 1, on_floor = 1),
new /datum/stack_recipe("steel wool", /obj/item/steelwool, 1, time = 15, one_per_turf = 1, on_floor = 1)
new /datum/stack_recipe("canister", /obj/machinery/portable_atmospherics/canister, 10, time = 15, one_per_turf = 1, on_floor = 1)
))
recipes += new /datum/stack_recipe_list("airlock assemblies",

View File

@@ -247,6 +247,21 @@
default_type = DEFAULT_WALL_MATERIAL
icon_has_variants = TRUE
/obj/item/stack/material/steel/attackby(obj/item/W, mob/user)
. = ..()
if(is_sharp(W))
if(amount < 5)
to_chat(user, SPAN_WARNING("You need at least five sheets of steel to do this!"))
return
user.visible_message("<b>[user]</b> starts carving some steel wool out of \the [src].", SPAN_NOTICE("You start carving some steel wool out of \the [src]."))
if(do_after(user, 10 SECONDS))
if(amount < 5)
return
to_chat(user, SPAN_NOTICE("You carve some steel wool out of \the [src]."))
var/obj/item/steelwool/SW = new /obj/item/steelwool(get_turf(src))
user.put_in_hands(SW)
use(5)
/obj/item/stack/material/steel/full/Initialize()
. = ..()
amount = max_amount

View File

@@ -0,0 +1,7 @@
author: Geeves
delete-after: True
changes:
- rscadd: "You can now carve steel wool out of steel sheets by using something sharp."
- rscdel: "Removed the cheap buildable steel wool recipe from steel sheets."