From d76a8d0a17a0afee563375e87fe568c0fdf8927e Mon Sep 17 00:00:00 2001
From: fheinrich <fheinrich@techfak.uni-bielefeld.de>
Date: Fri, 15 Mar 2024 10:15:53 +0100
Subject: [PATCH] Displaying multiple items in cookingequipment is not
 dependent on gridsize

---
 cooperative_cuisine/pygame_2d_vis/drawing.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cooperative_cuisine/pygame_2d_vis/drawing.py b/cooperative_cuisine/pygame_2d_vis/drawing.py
index 1207752c..12596f6e 100644
--- a/cooperative_cuisine/pygame_2d_vis/drawing.py
+++ b/cooperative_cuisine/pygame_2d_vis/drawing.py
@@ -537,7 +537,7 @@ class Visualizer:
             plate: item is on a plate (soup are is different on a plate and pot)
         """
 
-        if not isinstance(item, list):  # can we remove this check?w
+        if not isinstance(item, list):  # can we remove this check?
             if item["type"] in self.config or (
                 item["type"].startswith("Burnt")
                 and item["type"].replace("Burnt", "") in self.config
@@ -598,7 +598,7 @@ class Visualizer:
             )
         elif "content_list" in item and item["content_list"]:
             triangle_offsets = create_polygon(
-                len(item["content_list"]), np.array([0, 10])
+                len(item["content_list"]), np.array([0, grid_size * 0.15])
             )
             scale = 1 if len(item["content_list"]) == 1 else 0.6
             for idx, o in enumerate(item["content_list"]):
-- 
GitLab