diff --git a/code/game/objects/structures/kitchen_foodcart_vr.dm b/code/game/objects/structures/kitchen_foodcart_vr.dm new file mode 100644 index 00000000000..2e9d65d9705 --- /dev/null +++ b/code/game/objects/structures/kitchen_foodcart_vr.dm @@ -0,0 +1,42 @@ +/obj/structure/foodcart + name = "Foodcart" + icon = 'icons/obj/kitchen_vr.dmi' + icon_state = "foodcart-0" + desc = "The ultimate in food transport! When opened you notice two compartments with odd blue glows to them. One feels very warm, while the other is very cold." + anchored = 0 + opacity = 0 + density = 1 + +/obj/structure/foodcart/Initialize() + . = ..() + for(var/obj/item/I in loc) + if(istype(I, /obj/item/weapon/reagent_containers/food)) + I.loc = src + update_icon() + +/obj/structure/foodcart/attackby(obj/item/O as obj, mob/user as mob) + if(istype(O, /obj/item/weapon/reagent_containers/food)) + user.drop_item() + O.loc = src + update_icon() + else + return + +/obj/structure/foodcart/attack_hand(var/mob/user as mob) + if(contents.len) + var/obj/item/weapon/reagent_containers/food/choice = input("What would you like to grab from the cart?") as null|obj in contents + if(choice) + if(!usr.canmove || usr.stat || usr.restrained() || !in_range(loc, usr)) + return + if(ishuman(user)) + if(!user.get_active_hand()) + user.put_in_hands(choice) + else + choice.loc = get_turf(src) + update_icon() + +/obj/structure/foodcart/update_icon() + if(contents.len < 5) + icon_state = "foodcart-[contents.len]" + else + icon_state = "foodcart-5" \ No newline at end of file diff --git a/icons/obj/kitchen_vr.dmi b/icons/obj/kitchen_vr.dmi new file mode 100644 index 00000000000..29b0b536bdd Binary files /dev/null and b/icons/obj/kitchen_vr.dmi differ diff --git a/maps/tether/tether-03-surface3.dmm b/maps/tether/tether-03-surface3.dmm index 05d3f4927a6..e3f7c292928 100644 --- a/maps/tether/tether-03-surface3.dmm +++ b/maps/tether/tether-03-surface3.dmm @@ -31880,6 +31880,11 @@ /obj/machinery/atmospherics/unary/vent_scrubber/on, /turf/simulated/floor/tiled, /area/tether/surfacebase/surface_three_hall) +"uNM" = ( +/obj/effect/floor_decal/corner/grey/diagonal, +/obj/structure/foodcart, +/turf/simulated/floor/tiled/white, +/area/crew_quarters/kitchen) "uOc" = ( /obj/effect/floor_decal/techfloor{ dir = 4 @@ -48250,7 +48255,7 @@ asN atb atn asO -asO +uNM aup auR avr diff --git a/vorestation.dme b/vorestation.dme index ab2095fcfb8..d8f2911a7d1 100644 --- a/vorestation.dme +++ b/vorestation.dme @@ -1363,6 +1363,7 @@ #include "code\game\objects\structures\holoplant.dm" #include "code\game\objects\structures\inflatable.dm" #include "code\game\objects\structures\janicart.dm" +#include "code\game\objects\structures\kitchen_foodcart_vr.dm" #include "code\game\objects\structures\kitchen_spike.dm" #include "code\game\objects\structures\lattice.dm" #include "code\game\objects\structures\ledges.dm"