Skip to content

Commit

Permalink
Tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
Crowbar764 committed Sep 28, 2023
1 parent be49c71 commit a0d92e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
6 changes: 3 additions & 3 deletions code/game/machinery/kitchen/microwave.dm
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@
var/list/items_measures = list()
var/list/items_measures_p = list()

for (var/obj/contents_item in contents)
for (var/obj/contents_item as anything in contents)
var/display_name = contents_item.name

if (istype(contents_item, /obj/item/reagent_container/food/snacks/tofu))
Expand All @@ -192,7 +192,7 @@
items_measures_p[display_name] = "fillets of meat"
items_counts[display_name]++

for (var/contents_item as anything in items_counts)
for (var/contents_item in items_counts)
var/list/item = list()

item["name"] = capitalize(contents_item)
Expand All @@ -207,7 +207,7 @@

ingredients += list(item)

for (var/datum/reagent/contents_reagent in reagents.reagent_list)
for (var/datum/reagent/contents_reagent as anything in reagents.reagent_list)
var/list/reagent = list()

reagent["count"] = contents_reagent.volume
Expand Down
9 changes: 5 additions & 4 deletions tgui/packages/tgui/interfaces/Microwave.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { useBackend } from '../backend';
import { Button, NoticeBox, Section, Flex, Box } from '../components';
import { BooleanLike } from 'common/react';
import { Window } from '../layouts';

type Ingredient = {
Expand All @@ -9,9 +10,9 @@ type Ingredient = {
};

type BackendContext = {
operating: 0 | 1;
broken: 0 | 1;
dirty: 0 | 1;
operating: BooleanLike;
broken: BooleanLike;
dirty: BooleanLike;
ingredients: Ingredient[];
};

Expand All @@ -24,7 +25,7 @@ export const Microwave = (props, context) => {
<Window.Content scrollable>
<Section
fill
title="Ingredients:"
title="Ingredients"
buttons={
<Flex>
<Button
Expand Down

0 comments on commit a0d92e5

Please sign in to comment.