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

Update to hook

parent f2b475e5
No related branches found
No related tags found
1 merge request!95Updated arguments for some hooks that they have more complete information.
Pipeline #51416 failed
...@@ -423,7 +423,7 @@ class CuttingBoard(Counter): ...@@ -423,7 +423,7 @@ class CuttingBoard(Counter):
self.occupied_by.name = self.inverted_transition_dict[ self.occupied_by.name = self.inverted_transition_dict[
self.occupied_by.name self.occupied_by.name
].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): class ServingWindow(Counter):
......
...@@ -279,6 +279,7 @@ CUTTING_BOARD_100 = "cutting_board_100" ...@@ -279,6 +279,7 @@ CUTTING_BOARD_100 = "cutting_board_100"
Args: Args:
counter (Counter): the cutting board. counter (Counter): the cutting board.
item (Item): the item that was chopped.
player (str): player id. player (str): player id.
""" """
......
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