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

Added hook: PICK_UP_ON_COOKING_EQUIPMENT

Added what the player was holding to POST_COUNTER_PICK_UP
parent 4295e996
No related branches found
No related tags found
1 merge request!96More hook updates
......@@ -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"
......
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