mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-07-16 02:32:55 +01:00
Fixes/tweaks from testing bonfires and cooking.
This commit is contained in:
@@ -11,7 +11,7 @@
|
||||
no_variants = FALSE
|
||||
max_amount = 20
|
||||
stacktype = "wetleather"
|
||||
drying_wetness = 30
|
||||
drying_wetness = 120
|
||||
dried_type = /obj/item/stack/material/leather
|
||||
|
||||
/obj/item/stack/wetleather/get_drying_state(var/obj/rack)
|
||||
|
||||
@@ -1,10 +1,20 @@
|
||||
/obj/structure/drying_rack
|
||||
name = "drying rack"
|
||||
desc = "A rack used to stretch leather out and hold it taut during the tanning process."
|
||||
desc = "A rack used to hold meat or vegetables for drying, or to stretch leather out and hold it taut during the tanning process."
|
||||
icon = 'icons/obj/drying_rack.dmi'
|
||||
icon_state = "rack"
|
||||
var/dismantle_product = /obj/item/stack/material/steel
|
||||
var/dismantle_amount = 3
|
||||
var/obj/item/drying
|
||||
|
||||
/obj/structure/drying_rack/wood
|
||||
icon_state = "rack_wooden"
|
||||
dismantle_product = /obj/item/stack/material/fuel/wood
|
||||
|
||||
/obj/structure/drying_rack/sifwood
|
||||
icon_state = "rack_wooden_sif"
|
||||
dismantle_product = /obj/item/stack/material/fuel/wood/sif
|
||||
|
||||
/obj/structure/drying_rack/Initialize()
|
||||
. = ..()
|
||||
START_PROCESSING(SSobj, src) // SSObj fires ~every 2s , starting from wetness 30 takes ~1m
|
||||
@@ -36,13 +46,28 @@
|
||||
if(drying_state)
|
||||
add_overlay(drying_state)
|
||||
|
||||
/obj/structure/drying_rack/attackby(var/obj/item/I, var/mob/user)
|
||||
if(istype(I) && I.is_dryable() && !istype(I, /obj/item/stack/material/fuel))
|
||||
if(user.unEquip(I))
|
||||
I.forceMove(src)
|
||||
drying = I
|
||||
/obj/structure/drying_rack/attackby(var/obj/item/W, var/mob/user)
|
||||
|
||||
if(W.is_wrench())
|
||||
playsound(src, W.usesound, 75, 1)
|
||||
visible_message(SPAN_NOTICE("\The [user] begins dismantling \the [src]."))
|
||||
if(do_after(user, 5 SECONDS * W.toolspeed))
|
||||
visible_message(SPAN_NOTICE("\The [user] dismantles \the [src]."))
|
||||
if(drying)
|
||||
drying.dropInto(loc)
|
||||
drying = null
|
||||
if(dismantle_product && dismantle_amount)
|
||||
new dismantle_product(loc, dismantle_amount)
|
||||
qdel(src)
|
||||
return TRUE
|
||||
|
||||
if(!drying && W.is_dryable() && !istype(W, /obj/item/stack/material/fuel))
|
||||
if(user.unEquip(W))
|
||||
W.forceMove(src)
|
||||
drying = W
|
||||
update_icon()
|
||||
return TRUE
|
||||
|
||||
return ..()
|
||||
|
||||
/obj/structure/drying_rack/attack_hand(var/mob/user)
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
drop_sound = 'sound/items/drop/wooden.ogg'
|
||||
pickup_sound = 'sound/items/pickup/wooden.ogg'
|
||||
no_variants = FALSE
|
||||
drying_wetness = 50
|
||||
drying_wetness = 120
|
||||
dried_type = /obj/item/stack/material/fuel/wood/dried
|
||||
bonfire_fuel_time = 3 MINUTES
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
description_info = "Use inhand to craft things, or use a sharp and edged object on this to convert it into two wooden planks."
|
||||
drop_sound = 'sound/items/drop/wooden.ogg'
|
||||
pickup_sound = 'sound/items/pickup/wooden.ogg'
|
||||
drying_wetness = 80
|
||||
drying_wetness = 180
|
||||
dried_type = /obj/item/stack/material/fuel/log/dried
|
||||
bonfire_fuel_time = 4 MINUTES
|
||||
var/plank_type = /obj/item/stack/material/fuel/wood
|
||||
|
||||
Reference in New Issue
Block a user