From 1c52c8b1be2d9fca43837d3cd146f1c3d6c06a63 Mon Sep 17 00:00:00 2001 From: fheinrich <fheinrich@techfak.uni-bielefeld.de> Date: Tue, 23 Apr 2024 11:38:03 +0200 Subject: [PATCH] Update to hook --- cooperative_cuisine/counters.py | 2 +- cooperative_cuisine/hooks.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cooperative_cuisine/counters.py b/cooperative_cuisine/counters.py index ecacb487..627c0693 100644 --- a/cooperative_cuisine/counters.py +++ b/cooperative_cuisine/counters.py @@ -423,7 +423,7 @@ class CuttingBoard(Counter): self.occupied_by.name = self.inverted_transition_dict[ self.occupied_by.name ].name - self.hook(CUTTING_BOARD_100, counter=self, player=player) + self.hook(CUTTING_BOARD_100, counter=self, item=self.occupied_by, player=player) class ServingWindow(Counter): diff --git a/cooperative_cuisine/hooks.py b/cooperative_cuisine/hooks.py index e25d02a5..8ef10d9f 100644 --- a/cooperative_cuisine/hooks.py +++ b/cooperative_cuisine/hooks.py @@ -279,6 +279,7 @@ CUTTING_BOARD_100 = "cutting_board_100" Args: counter (Counter): the cutting board. + item (Item): the item that was chopped. player (str): player id. """ -- GitLab