mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-01-29 02:31:49 +00:00
Our SSOverlays system is outdated, and is likely the cause of many of the issues seen in #18895. It has also been linked to a massive server performance decrease. This brings an updated system from Baystation, hopefully with speed increases. Should be testmerged, ideally with #18895. --------- Co-authored-by: Cody Brittain <cbrittain10@live.com>
27 lines
658 B
Plaintext
27 lines
658 B
Plaintext
/obj/item/bee_pack
|
|
name = "bee pack"
|
|
desc = "A stasis pack for moving bees. Contains a queen bee and some worker bees. Everything you'll need to start a hive!"
|
|
icon = 'icons/obj/beekeeping.dmi'
|
|
icon_state = "bee_pack"
|
|
var/full = TRUE
|
|
|
|
/obj/item/bee_pack/Initialize()
|
|
. = ..()
|
|
AddOverlays("bee_pack-full")
|
|
|
|
/obj/item/bee_pack/update_icon()
|
|
ClearOverlays()
|
|
AddOverlays("bee_pack-[full ? "full" : "empty"]")
|
|
|
|
/obj/item/bee_pack/proc/empty()
|
|
name = "empty bee pack"
|
|
desc = "A stasis pack for moving bees. It's empty."
|
|
full = FALSE
|
|
update_icon()
|
|
|
|
/obj/item/bee_pack/proc/fill()
|
|
name = initial(name)
|
|
desc = initial(desc)
|
|
full = TRUE
|
|
update_icon()
|