mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-06 23:41:57 +00:00
Steel Carving (#11142)
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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
|
||||
|
||||
7
html/changelogs/geeves-steel_wool.yml
Normal file
7
html/changelogs/geeves-steel_wool.yml
Normal 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."
|
||||
Reference in New Issue
Block a user