This commit is contained in:
TrilbySpaceClone
2019-12-28 17:55:20 -05:00
parent 0b63e79098
commit 8aee20cdf3
9 changed files with 348 additions and 84 deletions
-70
View File
@@ -1,70 +0,0 @@
/obj/machinery/kilm
name = "kilm"
desc = "A stone kilm, can be filled with logs for fuel."
icon = 'icons/obj/fireplace.dmi'
icon_state = "kilm"
use_power = NO_POWER_USE
density = TRUE
var/on = FALSE
var/filled = FALSE
var/charges = 0
var/making = null
/obj/machinery/kilm/attackby(obj/item/T, mob/user)
if(istype(T, /obj/item/grown/log))
charges ++
qdel(T)
/obj/machinery/kilm/attackby(obj/item/stack/ore/S, mob/user)
if(istype(S, /obj/item/stack/ore/glass))
if(S.amount <= 5)
user.show_message("<span class='notice'>You add the sand to the kilm.</span>", 1)
filled = TRUE
S.amount = (S.amount - 5)
if(S.amount < 5)
qdel(S)
else
user.show_message("<span class='notice'>You need a at lest five sand piles to make anything of use.</span>", 1)
/obj/machinery/kilm/attack_hand(mob/living/carbon/user)
. = ..()
if(.)
return
if(charges == 0)
to_chat(user, "The Kilm needs fuel to use.")
making = null
return
if(charges == 1)
to_chat(user, "The Kilm has some fuel and can be used to make a small flask.")
making = /obj/item/reagent_containers/glass/beaker/flask_small
return
if(charges == 2)
to_chat(user, "The Kilm has some fuel and can be used to make a honey jar.")
making = /obj/item/reagent_containers/glass/beaker/jar
return
if(charges == 3)
to_chat(user, "The Kilm has fuel and can be used to make a large flask.")
making = /obj/item/reagent_containers/glass/beaker/flask_large
return
if(charges == 4)
to_chat(user, "The Kilm has fuel and can be used to make a spouty flask.")
making = /obj/item/reagent_containers/glass/beaker/flaskspouty
return
if(charges == 5)
to_chat(user, "The Kilm has fuel and can be used to make a glass disk.")
making = /obj/item/reagent_containers/glass/beaker/glass_dish
return
if(charges >= 6) //You may want glass slug!
to_chat(user, "The Kilm has a lot of fuel and will make glass slug...")
making = null
return
return
@@ -10,7 +10,15 @@
*/
GLOBAL_LIST_INIT(glass_recipes, list ( \
new/datum/stack_recipe("directional window", /obj/structure/window/unanchored, time = 0, on_floor = TRUE, window_checks = TRUE), \
new/datum/stack_recipe("fulltile window", /obj/structure/window/fulltile/unanchored, 2, time = 0, on_floor = TRUE, window_checks = TRUE) \
new/datum/stack_recipe("fulltile window", /obj/structure/window/fulltile/unanchored, 2, time = 0, on_floor = TRUE, window_checks = TRUE), \
null, \
new/datum/stack_recipe_list("glass working bases", list( \
new/datum/stack_recipe("chem dish", /obj/item/glasswork/glass_base/dish, 10), \
new/datum/stack_recipe("lens", /obj/item/glasswork/glass_base/lens, 15), \
new/datum/stack_recipe("spout flask", /obj/item/glasswork/glass_base/spouty, 20), \
new/datum/stack_recipe("small bulb flask", /obj/item/glasswork/glass_base/flask_small, 5), \
new/datum/stack_recipe("large bottle flask", /obj/item/glasswork/glass_base/flask_large, 15), \
)), \
))
/obj/item/stack/sheet/glass