06-20-2019, 05:26 PM
(This post was last modified: 06-21-2019, 07:50 AM by Gerhazo. Edited 4 times in total.
Edit Reason: another tiny mistake fixed
)
Instant noodles, from the sprites subforum courtesy of Jaimsey: https://forum.ss13.co/showthread.php?tid=12408
in code\datums\chemistry\tools\food_and_drink.dm
add following code: https://pastebin.com/4KaVDqei inside /obj/item/reagent_containers/food/drinks/bowl 's attackby(obj/item/W as obj, mob/user as mob) function
in code\obj\item\food\snacks.dm
add following code: https://pastebin.com/3Y9Fk9Fp anywhere
in code\obj\machinery\vending.dm
add
product_list += new/datum/data/vending_product("/obj/item/instant_noodles_packet", 20, cost=2)
at /obj/machinery/vending/snack next to the other vendor products added similarly to have it appear in the snacks vendor.
Two .dmi files for the sprites in attachments:
icons\obj\foodNdrink\food_snacks.dmi has new iconstates: instantnoodles_open, instantnoodles_closed, instantnoodles_noodles
and
icons\obj\foodNdrink\food_meals.dmi has a new iconstate: noodles_bowl
(edit: oops I just noticed the request for a single dmi on submissions, if it's not too much trouble try to just incorporate these but otherwise if it is too much screwing around do reply/ping me and I'll dump them into a new dmi and change the code to reference that instead)
https://github.com/goonstation/goonstati...s?expand=1 git compare
in code\datums\chemistry\tools\food_and_drink.dm
add following code: https://pastebin.com/4KaVDqei inside /obj/item/reagent_containers/food/drinks/bowl 's attackby(obj/item/W as obj, mob/user as mob) function
in code\obj\item\food\snacks.dm
add following code: https://pastebin.com/3Y9Fk9Fp anywhere
in code\obj\machinery\vending.dm
add
product_list += new/datum/data/vending_product("/obj/item/instant_noodles_packet", 20, cost=2)
at /obj/machinery/vending/snack next to the other vendor products added similarly to have it appear in the snacks vendor.
Two .dmi files for the sprites in attachments:
icons\obj\foodNdrink\food_snacks.dmi has new iconstates: instantnoodles_open, instantnoodles_closed, instantnoodles_noodles
and
icons\obj\foodNdrink\food_meals.dmi has a new iconstate: noodles_bowl
(edit: oops I just noticed the request for a single dmi on submissions, if it's not too much trouble try to just incorporate these but otherwise if it is too much screwing around do reply/ping me and I'll dump them into a new dmi and change the code to reference that instead)
https://github.com/goonstation/goonstati...s?expand=1 git compare