Skip to content
Snippets Groups Projects
Commit 92e401e7 authored by Fabian Heinrich's avatar Fabian Heinrich
Browse files

Only pot and pan can be put on stove

parent af7d200b
Branches
Tags
1 merge request!1340-visualisierungsregeln
...@@ -184,6 +184,12 @@ class Trash(Counter): ...@@ -184,6 +184,12 @@ class Trash(Counter):
class Stove(Counter): class Stove(Counter):
def can_drop_off(self, item: Item) -> bool:
if self.occupied_by is None:
return isinstance(item, CookingEquipment) and item.name in ["Pot", "Pan"]
else:
return self.occupied_by.can_combine(item)
def progress(self): def progress(self):
"""Called by environment step function for time progression""" """Called by environment step function for time progression"""
if ( if (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment