mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-21 13:05:36 +01:00
f0b265b6bb
* Foodening * Update chem_dispenser.dm * Juicening? * Update big_mortar.dm * Adds crafting complexities to modular foods * Olive oil repath * Cooking oil repath --------- Co-authored-by: Andrew <mt.forspam@gmail.com> Co-authored-by: Bloop <13398309+vinylspiders@users.noreply.github.com>
35 lines
985 B
Plaintext
35 lines
985 B
Plaintext
/obj/item/food/honeycomb
|
|
name = "honeycomb"
|
|
desc = "A hexagonal mesh of honeycomb."
|
|
icon = 'icons/obj/service/hydroponics/harvest.dmi'
|
|
icon_state = "honeycomb"
|
|
max_volume = 10
|
|
food_reagents = list(/datum/reagent/consumable/honey = 5)
|
|
tastes = list("honey" = 1)
|
|
preserved_food = TRUE
|
|
starting_reagent_purity = 1
|
|
var/honey_color = ""
|
|
|
|
/obj/item/food/honeycomb/Initialize(mapload)
|
|
. = ..()
|
|
pixel_x = base_pixel_x + rand(-5, 5)
|
|
pixel_y = base_pixel_y + rand(-5, 5)
|
|
|
|
/obj/item/food/honeycomb/update_overlays()
|
|
. = ..()
|
|
var/mutable_appearance/honey_overlay = mutable_appearance(icon, "honey")
|
|
if(honey_color)
|
|
honey_overlay.icon_state = "greyscale_honey"
|
|
honey_overlay.color = honey_color
|
|
. += honey_overlay
|
|
|
|
/obj/item/food/honeycomb/proc/set_reagent(reagent)
|
|
var/datum/reagent/R = GLOB.chemical_reagents_list[reagent]
|
|
if(istype(R))
|
|
name = "honeycomb ([R.name])"
|
|
honey_color = R.color
|
|
reagents.add_reagent(R.type,5)
|
|
else
|
|
honey_color = ""
|
|
update_appearance()
|