Skip to content
Snippets Groups Projects
Commit c279f635 authored by Christoph Kowalski's avatar Christoph Kowalski
Browse files

Adapted combine hook

parent 385309f4
No related branches found
No related tags found
2 merge requests!110V1.2.0 changes,!109SB3 RL with Hydra
Pipeline #62150 passed
......@@ -244,15 +244,16 @@ class Counter:
before_combine = copy.copy(item)
occupied_before_combine = copy.deepcopy(self.occupied_by)
return_this = self.occupied_by.combine(item)
self.hook(
DROP_OFF_ON_COOKING_EQUIPMENT,
item=before_combine,
equipment=self.occupied_by,
counter=self,
occupied_before=occupied_before_combine,
player=player,
return_this=return_this,
)
if item.name != "Plate":
self.hook(
DROP_OFF_ON_COOKING_EQUIPMENT,
item=before_combine,
equipment=self.occupied_by,
counter=self,
occupied_before=occupied_before_combine,
player=player,
return_this=return_this,
)
return return_this
return None
......
......@@ -110,7 +110,7 @@ hook_callbacks:
_target_: "cooperative_cuisine.scores.ScoreViaHooks"
_partial_: true
callback_class_kwargs:
static_score: 0
static_score: 0.00
item_cut:
hooks: [ cutting_board_100 ]
callback_class:
......@@ -145,7 +145,7 @@ hook_callbacks:
_target_: "cooperative_cuisine.scores.ScoreViaHooks"
_partial_: true
callback_class_kwargs:
static_score: 0.1
static_score: 0.05
cooking_finished:
hooks: [ cooking_finished ]
callback_class:
......
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