mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-23 20:16:55 +01:00
Fixes cookie tray code
Makes it kinda shorter, more flexible for future variations of cookies.
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user