mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2025-12-17 21:52:42 +00:00
@@ -9,18 +9,30 @@
|
|||||||
/datum/supply_pack/supply/food
|
/datum/supply_pack/supply/food
|
||||||
name = "Kitchen supply crate"
|
name = "Kitchen supply crate"
|
||||||
contains = list(
|
contains = list(
|
||||||
/obj/item/reagent_containers/food/condiment/flour = 6,
|
/obj/item/reagent_containers/food/condiment/carton/flour = 6,
|
||||||
/obj/item/reagent_containers/food/drinks/milk = 3,
|
/obj/item/reagent_containers/food/drinks/milk = 3,
|
||||||
/obj/item/reagent_containers/food/drinks/soymilk = 2,
|
/obj/item/reagent_containers/food/drinks/soymilk = 2,
|
||||||
/obj/item/storage/fancy/egg_box = 2,
|
/obj/item/storage/fancy/egg_box = 2,
|
||||||
/obj/item/reagent_containers/food/snacks/tofu = 4,
|
/obj/item/reagent_containers/food/snacks/tofu = 4,
|
||||||
/obj/item/reagent_containers/food/snacks/meat = 4,
|
/obj/item/reagent_containers/food/snacks/meat = 4,
|
||||||
/obj/item/reagent_containers/food/condiment/yeast = 3
|
/obj/item/reagent_containers/food/condiment/yeast = 3,
|
||||||
|
/obj/item/weapon/reagent_containers/food/condiment/sprinkles = 1
|
||||||
)
|
)
|
||||||
cost = 10
|
cost = 10
|
||||||
containertype = /obj/structure/closet/crate/freezer/centauri
|
containertype = /obj/structure/closet/crate/freezer/centauri
|
||||||
containername = "Food crate"
|
containername = "Food crate"
|
||||||
|
|
||||||
|
/datum/supply_pack/supply/fancyfood
|
||||||
|
name = "Artisanal food delivery"
|
||||||
|
contains = list(
|
||||||
|
/obj/item/reagent_containers/food/condiment/carton/flour/rustic = 6,
|
||||||
|
/obj/item/reagent_containers/food/condiment/carton/sugar/rustic = 6
|
||||||
|
)
|
||||||
|
cost = 25
|
||||||
|
containertype = /obj/structure/closet/crate/freezer/centauri
|
||||||
|
containername = "Artisanal food crate"
|
||||||
|
|
||||||
|
|
||||||
/datum/supply_pack/supply/toner
|
/datum/supply_pack/supply/toner
|
||||||
name = "Toner cartridges"
|
name = "Toner cartridges"
|
||||||
contains = list(/obj/item/toner = 6)
|
contains = list(/obj/item/toner = 6)
|
||||||
|
|||||||
@@ -4,8 +4,10 @@
|
|||||||
door_anim_time = 0 //Unsupported
|
door_anim_time = 0 //Unsupported
|
||||||
|
|
||||||
starts_with = list(
|
starts_with = list(
|
||||||
/obj/item/reagent_containers/food/condiment/flour = 7,
|
/obj/item/reagent_containers/food/condiment/carton/flour = 6,
|
||||||
/obj/item/reagent_containers/food/condiment/sugar = 2,
|
/obj/item/reagent_containers/food/condiment/carton/sugar = 1,
|
||||||
|
/obj/item/reagent_containers/food/condiment/carton/flour/rustic = 1,
|
||||||
|
/obj/item/reagent_containers/food/condiment/carton/sugar/rustic = 1,
|
||||||
/obj/item/reagent_containers/food/condiment/spacespice = 2
|
/obj/item/reagent_containers/food/condiment/spacespice = 2
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -135,6 +135,11 @@
|
|||||||
desc = "Barbecue sauce, it's labeled 'sweet and spicy'."
|
desc = "Barbecue sauce, it's labeled 'sweet and spicy'."
|
||||||
icon_state = "barbecue"
|
icon_state = "barbecue"
|
||||||
center_of_mass = list("x"=16, "y"=6)
|
center_of_mass = list("x"=16, "y"=6)
|
||||||
|
if("sprinkles")
|
||||||
|
name = "sprinkles"
|
||||||
|
desc = "Bottle of sprinkles, colourful!"
|
||||||
|
icon_state= "sprinkles"
|
||||||
|
center_of_mass = list("x"=16, "y"=6)
|
||||||
else
|
else
|
||||||
name = "Misc Condiment Bottle"
|
name = "Misc Condiment Bottle"
|
||||||
if (reagents.reagent_list.len==1)
|
if (reagents.reagent_list.len==1)
|
||||||
@@ -201,6 +206,13 @@
|
|||||||
. = ..()
|
. = ..()
|
||||||
reagents.add_reagent("yeast", 50)
|
reagents.add_reagent("yeast", 50)
|
||||||
|
|
||||||
|
/obj/item/weapon/reagent_containers/food/condiment/sprinkles
|
||||||
|
name = "Sprinkles"
|
||||||
|
|
||||||
|
/obj/item/weapon/reagent_containers/food/condiment/sprinkles/Initialize()
|
||||||
|
. = ..()
|
||||||
|
reagents.add_reagent("sprinkles", 50)
|
||||||
|
|
||||||
/obj/item/reagent_containers/food/condiment/small
|
/obj/item/reagent_containers/food/condiment/small
|
||||||
possible_transfer_amounts = list(1,20)
|
possible_transfer_amounts = list(1,20)
|
||||||
amount_per_transfer_from_this = 1
|
amount_per_transfer_from_this = 1
|
||||||
@@ -441,26 +453,61 @@
|
|||||||
|
|
||||||
//End of MRE stuff.
|
//End of MRE stuff.
|
||||||
|
|
||||||
/obj/item/reagent_containers/food/condiment/flour
|
/obj/item/reagent_containers/food/condiment/carton/flour
|
||||||
name = "flour sack"
|
name = "flour carton"
|
||||||
desc = "A big bag of flour. Good for baking!"
|
desc = "A big carton of flour. Good for baking!"
|
||||||
icon = 'icons/obj/food.dmi'
|
icon = 'icons/obj/food.dmi'
|
||||||
icon_state = "flour"
|
icon_state = "flour"
|
||||||
volume = 220
|
volume = 220
|
||||||
center_of_mass = list("x"=16, "y"=8)
|
center_of_mass = list("x"=16, "y"=8)
|
||||||
|
|
||||||
/obj/item/reagent_containers/food/condiment/flour/on_reagent_change()
|
/obj/item/reagent_containers/food/condiment/carton/flour/on_reagent_change()
|
||||||
|
update_icon()
|
||||||
return
|
return
|
||||||
|
|
||||||
/obj/item/reagent_containers/food/condiment/flour/Initialize()
|
/obj/item/reagent_containers/food/condiment/carton/flour/Initialize()
|
||||||
. = ..()
|
. = ..()
|
||||||
reagents.add_reagent("flour", 200)
|
reagents.add_reagent("flour", 200)
|
||||||
randpixel_xy()
|
randpixel_xy()
|
||||||
|
|
||||||
|
/obj/item/reagent_containers/food/condiment/carton/update_icon()
|
||||||
|
overlays.Cut()
|
||||||
|
|
||||||
|
if(reagents.total_volume)
|
||||||
|
var/image/filling = image('icons/obj/food.dmi', src, "[icon_state]10")
|
||||||
|
|
||||||
|
filling.icon_state = "[icon_state]-[clamp(round(100 * reagents.total_volume / volume, 25), 0, 100)]"
|
||||||
|
|
||||||
|
overlays += filling
|
||||||
|
|
||||||
|
/obj/item/reagent_containers/food/condiment/carton/flour/rustic
|
||||||
|
name = "flour sack"
|
||||||
|
desc = "An artisanal sack of flour. Classy!"
|
||||||
|
icon_state = "flour_bag"
|
||||||
|
|
||||||
|
/obj/item/reagent_containers/food/condiment/carton/sugar
|
||||||
|
name = "sugar carton"
|
||||||
|
desc = "A big carton of sugar. Sweet!"
|
||||||
|
icon_state = "sugar"
|
||||||
|
volume = 120
|
||||||
|
center_of_mass = list("x"=16, "y"=8)
|
||||||
|
|
||||||
|
/obj/item/reagent_containers/food/condiment/carton/sugar/on_reagent_change()
|
||||||
|
update_icon()
|
||||||
|
return
|
||||||
|
|
||||||
|
/obj/item/reagent_containers/food/condiment/carton/sugar/Initialize()
|
||||||
|
. = ..()
|
||||||
|
reagents.add_reagent("sugar", 100)
|
||||||
|
|
||||||
|
/obj/item/reagent_containers/food/condiment/carton/sugar/rustic
|
||||||
|
name = "sugar sack"
|
||||||
|
desc = "An artisanal sack of sugar. Classy!"
|
||||||
|
icon_state = "sugar_bag"
|
||||||
|
|
||||||
/obj/item/reagent_containers/food/condiment/spacespice
|
/obj/item/reagent_containers/food/condiment/spacespice
|
||||||
name = "space spices"
|
name = "space spices"
|
||||||
desc = "An exotic blend of spices for cooking. Definitely not worms."
|
desc = "An exotic blend of spices for cooking. Definitely not worms."
|
||||||
icon = 'icons/obj/food.dmi'
|
|
||||||
icon_state = "spacespicebottle"
|
icon_state = "spacespicebottle"
|
||||||
possible_transfer_amounts = list(1,40) //for clown turning the lid off
|
possible_transfer_amounts = list(1,40) //for clown turning the lid off
|
||||||
amount_per_transfer_from_this = 1
|
amount_per_transfer_from_this = 1
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
var/shortname
|
var/shortname
|
||||||
var/max_space = 20//Maximum sum of w-classes of foods in this container at once
|
var/max_space = 20//Maximum sum of w-classes of foods in this container at once
|
||||||
var/max_reagents = 80//Maximum units of reagents
|
var/max_reagents = 80//Maximum units of reagents
|
||||||
|
var/food_items = 0 // Used for icon updates
|
||||||
flags = OPENCONTAINER | NOREACT
|
flags = OPENCONTAINER | NOREACT
|
||||||
var/list/insertable = list(
|
var/list/insertable = list(
|
||||||
/obj/item/reagent_containers/food/snacks,
|
/obj/item/reagent_containers/food/snacks,
|
||||||
@@ -59,6 +60,8 @@
|
|||||||
return
|
return
|
||||||
I.forceMove(src)
|
I.forceMove(src)
|
||||||
to_chat(user, "<span class='notice'>You put the [I] into the [src].</span>")
|
to_chat(user, "<span class='notice'>You put the [I] into the [src].</span>")
|
||||||
|
food_items += 1
|
||||||
|
update_icon()
|
||||||
return
|
return
|
||||||
|
|
||||||
/obj/item/reagent_containers/cooking_container/verb/empty()
|
/obj/item/reagent_containers/cooking_container/verb/empty()
|
||||||
@@ -102,6 +105,8 @@
|
|||||||
|
|
||||||
/obj/item/reagent_containers/cooking_container/AltClick(var/mob/user)
|
/obj/item/reagent_containers/cooking_container/AltClick(var/mob/user)
|
||||||
do_empty(user)
|
do_empty(user)
|
||||||
|
food_items = 0
|
||||||
|
update_icon()
|
||||||
|
|
||||||
//Deletes contents of container.
|
//Deletes contents of container.
|
||||||
//Used when food is burned, before replacing it with a burned mess
|
//Used when food is burned, before replacing it with a burned mess
|
||||||
@@ -158,6 +163,22 @@
|
|||||||
if (weights[I])
|
if (weights[I])
|
||||||
holder.trans_to(I, weights[I] / total)
|
holder.trans_to(I, weights[I] / total)
|
||||||
|
|
||||||
|
/obj/item/reagent_containers/cooking_container/update_icon()
|
||||||
|
overlays.Cut()
|
||||||
|
|
||||||
|
if(food_items)
|
||||||
|
var/image/filling = image('icons/obj/cooking_machines.dmi', src, "[icon_state]10")
|
||||||
|
|
||||||
|
var/percent = round((food_items / max_space) * 100)
|
||||||
|
switch(percent)
|
||||||
|
if(0 to 2) filling.icon_state = "[icon_state]"
|
||||||
|
if(3 to 24) filling.icon_state = "[icon_state]1"
|
||||||
|
if(25 to 49) filling.icon_state = "[icon_state]2"
|
||||||
|
if(50 to 74) filling.icon_state = "[icon_state]3"
|
||||||
|
if(75 to 79) filling.icon_state = "[icon_state]4"
|
||||||
|
if(80 to INFINITY) filling.icon_state = "[icon_state]5"
|
||||||
|
|
||||||
|
overlays += filling
|
||||||
|
|
||||||
/obj/item/reagent_containers/cooking_container/oven
|
/obj/item/reagent_containers/cooking_container/oven
|
||||||
name = "oven dish"
|
name = "oven dish"
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 23 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 170 KiB After Width: | Height: | Size: 177 KiB |
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user