mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-08-22 12:46:40 +01:00
Merge pull request #9237 from MistakeNot4892/cubes
Condiment cubes now take colour from reagents.
This commit is contained in:
@@ -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 |
Reference in New Issue
Block a user