Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Cooperative Cuisine Environment
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Social Cognitive Systems
CoCoSy
Cooperative Cuisine Environment
Commits
69eca204
Commit
69eca204
authored
10 months ago
by
Fabian Heinrich
Browse files
Options
Downloads
Patches
Plain Diff
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
!96
More hook updates
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cooperative_cuisine/hooks.py
+10
-0
10 additions, 0 deletions
cooperative_cuisine/hooks.py
with
10 additions
and
0 deletions
cooperative_cuisine/hooks.py
+
10
−
0
View file @
69eca204
...
...
@@ -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
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment