Skip to content
Snippets Groups Projects
Commit 6782de8c authored by Florian Schröder's avatar Florian Schröder
Browse files

fix sink and trash. Plate is now CleanPlate

parent d6cd453a
No related branches found
No related tags found
1 merge request!19Resolve "Add recipe yaml check + visualize recipes"
Pipeline #43948 failed
......@@ -316,7 +316,7 @@ class Trash(Counter):
def drop_off(self, item: Item) -> Item | None:
if isinstance(item, CookingEquipment):
item.content = None
item.reset_content()
return item
return None
......@@ -367,9 +367,9 @@ class Sink(Counter):
self.occupied_by[-1].progress(
equipment=self.__class__.__name__, percent=percent
)
print(self.occupied_by[-1].progress_percentage)
if self.occupied_by[-1].progress_percentage == 1.0:
self.occupied_by[-1].reset()
print(self.transitions[self.occupied_by[-1].name]["result"])
self.occupied_by[-1].name = self.transitions[self.occupied_by[-1].name][
"result"
]
......
......@@ -248,8 +248,7 @@ e:
def release(self):
content = self.content_list
self.content_list = None
self.content_ready = None
self.reset_content()
return content
@property
......@@ -322,7 +321,7 @@ class Plate(CookingEquipment):
# return not self.clean
def create_name(self):
return "CleanPlate" if self.clean else "DirtyPlate"
return "Plate" if self.clean else "DirtyPlate"
def can_combine(self, other):
if not super().can_combine(other):
......
......@@ -275,7 +275,7 @@ Cook:
path: images/pixel_cook.png
size: 1
CleanPlate:
Plate:
parts:
- type: image
path: images/plate_clean.png
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment