From 4f371cb7c2c8f79de984a11962a7d2d6123f0de5 Mon Sep 17 00:00:00 2001 From: UmeFuu <35434208+UmeFuu@users.noreply.github.com> Date: Tue, 12 Feb 2019 20:28:54 -0300 Subject: [PATCH] Adds trays with cookies Adds two trays, one with x6 cookies and the other with x6 sugar cookies, needed for the new cookies recipe. --- code/game/objects/items/weapons/storage/bags.dm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/code/game/objects/items/weapons/storage/bags.dm b/code/game/objects/items/weapons/storage/bags.dm index 26309f885fa..3ab3434fad7 100644 --- a/code/game/objects/items/weapons/storage/bags.dm +++ b/code/game/objects/items/weapons/storage/bags.dm @@ -460,6 +460,20 @@ return ..() +/obj/item/storage/bag/tray/cookies_tray/New() /// By Azule Utama, thank you a lot! + ..() + for(var/i in 1 to 6) + var/obj/item/C = new /obj/item/reagent_containers/food/snacks/cookie(src) + handle_item_insertion(C) // Done this way so the tray actually has the cookies visible when spawned + rebuild_overlays() + +/obj/item/storage/bag/tray/sugarcookies_tray/New() /// By Azule Utama, thank you a lot! + ..() + for(var/i in 1 to 6) + var/obj/item/C = new /obj/item/reagent_containers/food/snacks/sugarcookie(src) + handle_item_insertion(C) // Done this way so the tray actually has the cookies visible when spawned + rebuild_overlays() + /* * Chemistry bag */