mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-01-06 07:32:15 +00:00
43 lines
1.1 KiB
Plaintext
43 lines
1.1 KiB
Plaintext
|
|
/obj/item/reagent_containers/honeycomb
|
|
name = "honeycomb"
|
|
desc = "A hexagonal mesh of honeycomb."
|
|
icon = 'icons/obj/hydroponics/harvest.dmi'
|
|
icon_state = "honeycomb"
|
|
possible_transfer_amounts = list()
|
|
disease_amount = 0
|
|
volume = 10
|
|
amount_per_transfer_from_this = 0
|
|
list_reagents = list("honey" = 5)
|
|
var/honey_color = ""
|
|
|
|
/obj/item/reagent_containers/honeycomb/New()
|
|
..()
|
|
pixel_x = rand(8,-8)
|
|
pixel_y = rand(8,-8)
|
|
update_icon()
|
|
|
|
/obj/item/reagent_containers/honeycomb/set_APTFT()
|
|
set hidden = TRUE
|
|
|
|
/obj/item/reagent_containers/honeycomb/update_icon()
|
|
overlays.Cut()
|
|
var/image/honey
|
|
if(honey_color)
|
|
honey = image(icon = 'icons/obj/hydroponics/harvest.dmi', icon_state = "greyscale_honey")
|
|
honey.color = honey_color
|
|
else
|
|
honey = image(icon = 'icons/obj/hydroponics/harvest.dmi', icon_state = "honey")
|
|
overlays += honey
|
|
|
|
|
|
/obj/item/reagent_containers/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.id,5)
|
|
else
|
|
honey_color = ""
|
|
update_icon()
|