Merge pull request #9237 from MistakeNot4892/cubes

Condiment cubes now take colour from reagents.
This commit is contained in:
Spookerton
2023-09-10 14:39:43 +01:00
committed by GitHub
2 changed files with 4 additions and 1 deletions
@@ -275,6 +275,7 @@
if(!amount || !arguments["id"])
return
tgui_act("remove", list("id" = arguments["id"], "amount" = amount), ui, state)
if("create_condi_pack")
if(!condi || !reagents.total_volume)
return
@@ -283,8 +284,10 @@
var/obj/item/reagent_containers/pill/P = new(loc)
P.name = "[answer] pack"
P.desc = "A small condiment pack. The label says it contains [answer]."
P.icon_state = "bouilloncube"//Reskinned monkey cube
P.icon_state = "cube"
reagents.trans_to_obj(P, 10)
P.color = P.reagents.get_color()
if("create_pill")
if(condi || !reagents.total_volume)
return
Binary file not shown.

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB