From c72a623ec604840a1a1cd53f757c9d14084ce428 Mon Sep 17 00:00:00 2001 From: UmeFuu <35434208+UmeFuu@users.noreply.github.com> Date: Wed, 13 Feb 2019 17:37:54 -0300 Subject: [PATCH] Fixes cookie tray code Makes it kinda shorter, more flexible for future variations of cookies. --- code/game/objects/items/weapons/storage/bags.dm | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/code/game/objects/items/weapons/storage/bags.dm b/code/game/objects/items/weapons/storage/bags.dm index 3ab3434fad7..085d5d0c9da 100644 --- a/code/game/objects/items/weapons/storage/bags.dm +++ b/code/game/objects/items/weapons/storage/bags.dm @@ -460,20 +460,28 @@ return ..() +/obj/item/storage/bag/tray/cookies_tray/ + var/cookie = /obj/item/reagent_containers/food/snacks/cookie + /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) + var/obj/item/C = new 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() +*/ +/obj/item/storage/bag/tray/cookies_tray/sugarcookie + cookie = /obj/item/reagent_containers/food/snacks/sugarcookie +//obj/item/storage/bag/tray/cookies_tray/cookie +/// cookie = /obj/item/reagent_containers/food/snacks/cookie(src) /* * Chemistry bag */