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
Admin message
Looking for advice? Join the
Matrix channel for GitLab users in Bielefeld
!
Show more breadcrumbs
Social Cognitive Systems
CoCoSy
Cooperative Cuisine Environment
Commits
c5ed4702
Commit
c5ed4702
authored
1 year ago
by
Fabian Heinrich
Browse files
Options
Downloads
Patches
Plain Diff
Fixed putting multiple onions on a plate
parent
7b03cb1a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!27
Resolve "Orders"
Pipeline
#43963
passed
1 year ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
overcooked_simulator/game_items.py
+8
-2
8 additions, 2 deletions
overcooked_simulator/game_items.py
with
8 additions
and
2 deletions
overcooked_simulator/game_items.py
+
8
−
2
View file @
c5ed4702
...
@@ -200,8 +200,14 @@ class CookingEquipment(Item):
...
@@ -200,8 +200,14 @@ class CookingEquipment(Item):
class
Plate
(
CookingEquipment
):
class
Plate
(
CookingEquipment
):
def
__init__
(
self
,
transitions
,
clean
,
*
args
,
**
kwargs
):
def
__init__
(
self
,
transitions
,
clean
,
*
args
,
**
kwargs
):
self
.
clean
=
clean
self
.
clean
=
clean
self
.
meals
=
set
(
transitions
.
keys
())
super
().
__init__
(
super
().
__init__
(
name
=
self
.
create_name
(),
transitions
=
transitions
,
*
args
,
**
kwargs
name
=
self
.
create_name
(),
transitions
=
{
k
:
v
for
k
,
v
in
transitions
.
items
()
if
not
v
[
"
info
"
].
equipment
},
*
args
,
**
kwargs
,
)
)
def
finished_call
(
self
):
def
finished_call
(
self
):
...
@@ -222,7 +228,7 @@ class Plate(CookingEquipment):
...
@@ -222,7 +228,7 @@ class Plate(CookingEquipment):
and
not
self
.
content_list
and
not
self
.
content_list
and
self
.
clean
and
self
.
clean
):
):
return
other
.
content_list
[
0
].
name
in
self
.
transition
s
return
other
.
content_list
[
0
].
name
in
self
.
meal
s
return
False
return
False
else
:
else
:
return
True
return
True
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