From 69eca204f64d1880c5b7cad358535e53056aa587 Mon Sep 17 00:00:00 2001
From: fheinrich <fheinrich@techfak.uni-bielefeld.de>
Date: Tue, 30 Apr 2024 14:16:13 +0200
Subject: [PATCH] Added hook: PICK_UP_ON_COOKING_EQUIPMENT

Added what the player was holding to POST_COUNTER_PICK_UP
---
 cooperative_cuisine/hooks.py | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/cooperative_cuisine/hooks.py b/cooperative_cuisine/hooks.py
index 8ef10d9f..8d071249 100644
--- a/cooperative_cuisine/hooks.py
+++ b/cooperative_cuisine/hooks.py
@@ -151,6 +151,7 @@ Args:
     on_hands (bool): if the picked up item is put on the free player hands (True) or on a cooking equipment (False).
     return_this (Item | None): what will be put on the player (holding)
     player (str): player id.
+    player_holding: (Item | None): the item that the player is holding.
 """
 
 PRE_DISPENSER_PICK_UP = "pre_dispenser_pick_up"
@@ -221,6 +222,15 @@ Args:
     player (str): player id.
     return_this (Item | None): what will be put on the player (holding)
 """
+PICK_UP_ON_COOKING_EQUIPMENT = "pick_up_on_cooking_equipment"
+"""When pick up from a counter when the player is holding a cooking equipment. Before the combining happens.
+
+Args:
+    return_this (Item): the item returned from the counter.
+    occupied_by (Item): What is now in the counter.
+    counter (Counter): the counter from which to pick up.
+    player (str): player id.
+"""
 
 
 PRE_PLATE_DISPENSER_DROP_OFF = "pre_plate_dispenser_drop_off"
-- 
GitLab