Food Cart Refactor (#16869)

* Food Cart Refactor

* delete unused old sprites

* No longer can be deconstructed or destroyed into smartfridge parts
This commit is contained in:
PacifistDalek
2021-10-26 23:33:03 +01:00
committed by GitHub
parent 758908e5ff
commit f486448a95
7 changed files with 41 additions and 184 deletions
@@ -396,6 +396,44 @@
/obj/item/seeds
))
/**
* # Food and Drink Cart
*
* Variant of the [Smart Fridge][/obj/machinery/smartfridge] that holds food and drinks in a mobile form
*/
/obj/machinery/smartfridge/foodcart
name = "\improper Food and Drink Cart"
desc = "A portable cart for hawking your food and drink wares around the station"
icon = 'icons/obj/foodcart.dmi'
icon_state = "cart"
anchored = FALSE
use_power = NO_POWER_USE
visible_contents = FALSE
face_while_pulling = FALSE
/obj/machinery/smartfridge/foodcart/Initialize(mapload)
. = ..()
accepted_items_typecache = typecacheof(list(
/obj/item/reagent_containers/food/snacks,
/obj/item/reagent_containers/food/drinks,
/obj/item/reagent_containers/food/condiment,
))
/obj/machinery/smartfridge/foodcart/screwdriver_act(mob/living/user, obj/item/I)
return
/obj/machinery/smartfridge/foodcart/crowbar_act(mob/living/user, obj/item/I)
return
/obj/machinery/smartfridge/foodcart/exchange_parts()
return
/obj/machinery/smartfridge/foodcart/deconstruct(disassembled = TRUE)
if(!(flags & NODECONSTRUCT))
new /obj/item/stack/sheet/metal(loc, 4)
qdel(src)
/**
* # Circuit Boards Storage
*