mirror of
https://github.com/vgstation-coders/vgstation13.git
synced 2025-12-10 18:32:03 +00:00
Merge pull request #6529 from dylanstrategie/Donuts
Fix donut boxes, fix fancy empty subtypes
This commit is contained in:
@@ -233,9 +233,9 @@ var/global/list/datum/stack_recipe/cardboard_recipes = list ( \
|
|||||||
new/datum/stack_recipe("cardborg helmet", /obj/item/clothing/head/cardborg), \
|
new/datum/stack_recipe("cardborg helmet", /obj/item/clothing/head/cardborg), \
|
||||||
new/datum/stack_recipe("pizza box", /obj/item/pizzabox), \
|
new/datum/stack_recipe("pizza box", /obj/item/pizzabox), \
|
||||||
new/datum/stack_recipe("folder", /obj/item/weapon/folder), \
|
new/datum/stack_recipe("folder", /obj/item/weapon/folder), \
|
||||||
new/datum/stack_recipe("flare box", /obj/item/weapon/storage/fancy/flares), \
|
new/datum/stack_recipe("flare box", /obj/item/weapon/storage/fancy/flares/empty), \
|
||||||
new/datum/stack_recipe("donut box", /obj/item/weapon/storage/fancy/donut_box), \
|
new/datum/stack_recipe("donut box", /obj/item/weapon/storage/fancy/donut_box/empty), \
|
||||||
new/datum/stack_recipe("eggbox", /obj/item/weapon/storage/fancy/egg_box), \
|
new/datum/stack_recipe("eggbox", /obj/item/weapon/storage/fancy/egg_box/empty), \
|
||||||
new/datum/stack_recipe("paper bin", /obj/item/weapon/paper_bin/empty), \
|
new/datum/stack_recipe("paper bin", /obj/item/weapon/paper_bin/empty), \
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -22,6 +22,7 @@
|
|||||||
name = "donut box"
|
name = "donut box"
|
||||||
var/icon_type = "donut"
|
var/icon_type = "donut"
|
||||||
var/plural_type = "s" //Why does the english language have to be so complicated to work with ?
|
var/plural_type = "s" //Why does the english language have to be so complicated to work with ?
|
||||||
|
var/empty = 0
|
||||||
|
|
||||||
//Note : Fancy storages generally collect one specific type of objects only due to their properties
|
//Note : Fancy storages generally collect one specific type of objects only due to their properties
|
||||||
//As such, it would make sense that one click on a stack of the corresponding objects should shove everything in here
|
//As such, it would make sense that one click on a stack of the corresponding objects should shove everything in here
|
||||||
@@ -55,15 +56,23 @@
|
|||||||
icon_type = "donut"
|
icon_type = "donut"
|
||||||
name = "donut box"
|
name = "donut box"
|
||||||
storage_slots = 6
|
storage_slots = 6
|
||||||
can_hold = list("/obj/item/weapon/reagent_containers/food/snacks/donut")
|
can_hold = list("/obj/item/weapon/reagent_containers/food/snacks/donut", \
|
||||||
|
"/obj/item/weapon/reagent_containers/food/snacks/customizable/candy/donut")
|
||||||
|
|
||||||
foldable = /obj/item/stack/sheet/cardboard
|
foldable = /obj/item/stack/sheet/cardboard
|
||||||
starting_materials = list(MAT_CARDBOARD = 3750)
|
starting_materials = list(MAT_CARDBOARD = 3750)
|
||||||
w_type=RECYK_MISC
|
w_type = RECYK_MISC
|
||||||
|
|
||||||
|
/obj/item/weapon/storage/fancy/donut_box/empty
|
||||||
|
empty = 1
|
||||||
|
icon_state = "donutbox0"
|
||||||
|
|
||||||
/obj/item/weapon/storage/fancy/donut_box/New()
|
/obj/item/weapon/storage/fancy/donut_box/New()
|
||||||
..()
|
..()
|
||||||
for(var/i=1; i <= storage_slots; i++)
|
if(empty)
|
||||||
|
update_icon() //Make it look actually empty
|
||||||
|
return
|
||||||
|
for(var/i = 1; i <= storage_slots; i++)
|
||||||
new /obj/item/weapon/reagent_containers/food/snacks/donut/normal(src)
|
new /obj/item/weapon/reagent_containers/food/snacks/donut/normal(src)
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -81,11 +90,18 @@
|
|||||||
|
|
||||||
foldable = /obj/item/stack/sheet/cardboard
|
foldable = /obj/item/stack/sheet/cardboard
|
||||||
starting_materials = list(MAT_CARDBOARD = 3750)
|
starting_materials = list(MAT_CARDBOARD = 3750)
|
||||||
w_type=RECYK_MISC
|
w_type = RECYK_MISC
|
||||||
|
|
||||||
|
/obj/item/weapon/storage/fancy/egg_box/empty
|
||||||
|
empty = 1
|
||||||
|
icon_state = "eggbox0"
|
||||||
|
|
||||||
/obj/item/weapon/storage/fancy/egg_box/New()
|
/obj/item/weapon/storage/fancy/egg_box/New()
|
||||||
..()
|
..()
|
||||||
for(var/i=1; i <= storage_slots; i++)
|
if(empty)
|
||||||
|
update_icon() //Make it look actually empty
|
||||||
|
return
|
||||||
|
for(var/i = 1; i <= storage_slots; i++)
|
||||||
new /obj/item/weapon/reagent_containers/food/snacks/egg(src)
|
new /obj/item/weapon/reagent_containers/food/snacks/egg(src)
|
||||||
return
|
return
|
||||||
|
|
||||||
@@ -107,7 +123,6 @@
|
|||||||
throwforce = 2
|
throwforce = 2
|
||||||
flags = 0
|
flags = 0
|
||||||
slot_flags = SLOT_BELT
|
slot_flags = SLOT_BELT
|
||||||
var/empty = 0
|
|
||||||
|
|
||||||
/obj/item/weapon/storage/fancy/candle_box/empty
|
/obj/item/weapon/storage/fancy/candle_box/empty
|
||||||
empty = 1
|
empty = 1
|
||||||
@@ -136,7 +151,6 @@
|
|||||||
w_class = 2.0
|
w_class = 2.0
|
||||||
storage_slots = 6
|
storage_slots = 6
|
||||||
icon_type = "crayon"
|
icon_type = "crayon"
|
||||||
var/empty = 0
|
|
||||||
can_hold = list(
|
can_hold = list(
|
||||||
"/obj/item/toy/crayon"
|
"/obj/item/toy/crayon"
|
||||||
)
|
)
|
||||||
@@ -187,13 +201,13 @@
|
|||||||
storage_slots = 21 //3 rows of 7 items
|
storage_slots = 21 //3 rows of 7 items
|
||||||
w_class = 1
|
w_class = 1
|
||||||
flags = 0
|
flags = 0
|
||||||
var/empty = 0
|
|
||||||
var/matchtype = /obj/item/weapon/match
|
var/matchtype = /obj/item/weapon/match
|
||||||
can_hold = list("/obj/item/weapon/match") // Strict type check.
|
can_hold = list("/obj/item/weapon/match") // Strict type check.
|
||||||
slot_flags = SLOT_BELT
|
slot_flags = SLOT_BELT
|
||||||
|
|
||||||
/obj/item/weapon/storage/fancy/matchbox/empty
|
/obj/item/weapon/storage/fancy/matchbox/empty
|
||||||
empty = 1
|
empty = 1
|
||||||
|
icon_state = "matchbox_e"
|
||||||
|
|
||||||
/obj/item/weapon/storage/fancy/matchbox/New()
|
/obj/item/weapon/storage/fancy/matchbox/New()
|
||||||
..()
|
..()
|
||||||
@@ -368,8 +382,15 @@
|
|||||||
starting_materials = list(MAT_CARDBOARD = 3750)
|
starting_materials = list(MAT_CARDBOARD = 3750)
|
||||||
w_type=RECYK_MISC
|
w_type=RECYK_MISC
|
||||||
|
|
||||||
|
/obj/item/weapon/storage/fancy/flares/empty
|
||||||
|
empty = 1
|
||||||
|
icon_state = "flarebox0"
|
||||||
|
|
||||||
/obj/item/weapon/storage/fancy/flares/New()
|
/obj/item/weapon/storage/fancy/flares/New()
|
||||||
..()
|
..()
|
||||||
|
if(empty)
|
||||||
|
update_icon() //Make it look actually empty
|
||||||
|
return
|
||||||
for(var/i=1; i <= storage_slots; i++)
|
for(var/i=1; i <= storage_slots; i++)
|
||||||
new /obj/item/device/flashlight/flare(src)
|
new /obj/item/device/flashlight/flare(src)
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user