Cooking Simulator (#1529)

* frying pan start

* fix data saving

* Refactor cooking system and add localization support

Refactored food data handling in the cooking system to use Visuals instead of FoodData on holders, improved food transfer logic, and added popups and examine messages for user feedback. Added English and Russian localization files for cooking examine and meal descriptions, and updated prototype files to increase plate solution volume and add a whitelist for the cooking furnace.

* Refactor cooking system solution handling

Removed Solution field from CP14FoodData and updated CP14SharedCookingSystem to use solution containers directly. Improved solution transfer, mixing, and overflow handling during cooking. Increased pan max volume from 30 to 100 in cooking_furnace.yml.

* Improve cooking system trash handling and update food sprites

Enhanced trash distribution in CP14SharedCookingSystem to randomly assign trash to plates, only adding all trash to the last plate. Updated meat_dish and salad prototypes to use new wooden plate sprites. Added wideAnimationRotation and DrainableSolution to cooking_furnace for improved functionality.

* Remove unused usings and redundant comments in cooking components

Cleaned up CP14 cooking-related components by removing unused using directives and empty XML comments. This improves code readability and maintainability.

* Add tag-based cooking requirements and new meal recipes

Introduces tag-based cooking requirement classes (TagRequired, TagBlocked, SolutionRequired) and updates the cooking system to support tag checks. Adds new tags for food items, updates food and meal prototypes to include relevant tags, and implements new meal recipes (Zellasian Breakfast, Monster Egg) with corresponding sprites and localization. Also refactors and renames some tag and structure prototype files for better organization.

* Refactor and expand CP14 cooking recipes and tags

Reworked meal recipes to use tag-based requirements, added new tags for food categorization (meat, cheese, vegetables, etc.), and removed hardcoded entity recipes for ham in cheese and stuffed potato. Updated and added new meal recipes (bread plate, ham in cheese, stuffed potato), localized their names and descriptions, and migrated/added corresponding sprites. Deprecated SolutionRequired requirement, cleaned up unused tags, and improved TagRequired/TagBlocked logic. Updated prototype files to use new tags and added missing tags to food entities.

* Refactor and expand green salad recipes and assets

Replaces the old green salad entity and workbench recipe with new cooking recipes for green salad and green salad with meat. Updates English and Russian localization, moves and adds new salad textures, and removes obsolete salad assets and trading request.

* mashed potatoes

* Add mashed potatoes with herbs meal

Introduced a new 'mashed potatoes with herbs' meal, including English and Russian localization, recipe definition, and associated sprite. Updated the texture metadata and added the new image asset.

* Update dye.yml

* Fix frying pan item size and update plate recipe

Moved the 'size: Ginormous' property to the correct component in frying_pen.yml. Renamed the plate recipe and result from 'CP14Plate' to 'CP14PlateWooden' in misc.yml for clarity.

* Update meals.yml

* Update migration.yml

* fixes

* fix heating food sounds

* Nyranu temperature transmission

* Update plate.yml

* Cooking DoAfter works

* burning logic

* cooking more work

* auto transform transformable

* Update CP14SharedCookingSystem.DoAfter.cs

* cool burning visuals!

* Add MIT license headers to cooking system files

Added sublicensing notice and MIT license header to all files in the CP14 cooking system. Also made minor code cleanups, such as removing unnecessary default initializations and improving XML documentation for clarity.

* constant heating required

* cooking visuals improve!

* sandwiches with processed cheese + reagent burnt fuckuping

* inhand pan sprites + FIRE fuckup

* crafting & buying pan

* fix predicting

* random food spawner + chef closet

* mapping update

* Update frying_pen.yml

* move WIP to blacksmith lol
This commit is contained in:
Red
2025-07-16 08:15:08 +03:00
committed by GitHub
parent 60d9f4ee3b
commit 7bb7ea2183
95 changed files with 2437 additions and 548 deletions

View File

@@ -4,8 +4,8 @@ meta:
engineVersion: 264.0.0
forkId: ""
forkVersion: ""
time: 07/11/2025 11:56:20
entityCount: 14817
time: 07/16/2025 04:54:40
entityCount: 14827
maps:
- 1
grids:
@@ -799,11 +799,6 @@ entities:
- type: Transform
pos: -12.38047,-29.118898
parent: 1
- uid: 28
components:
- type: Transform
pos: -14.360294,-14.934297
parent: 1
- uid: 29
components:
- type: Transform
@@ -45644,11 +45639,6 @@ entities:
parent: 1
- proto: CP14FoodApple
entities:
- uid: 8722
components:
- type: Transform
pos: -14.461581,-16.665932
parent: 1
- uid: 8723
components:
- type: Transform
@@ -45659,10 +45649,10 @@ entities:
- type: Transform
pos: -17.664963,-19.691994
parent: 1
- uid: 8725
- uid: 9676
components:
- type: Transform
pos: -10.379791,-23.153708
pos: -14.689453,-16.273108
parent: 1
- uid: 11643
components:
@@ -45688,11 +45678,6 @@ entities:
- type: Transform
pos: -8.455805,-4.242589
parent: 1
- uid: 8729
components:
- type: Transform
pos: -4.64024,-22.501534
parent: 1
- uid: 8730
components:
- type: Transform
@@ -45710,11 +45695,6 @@ entities:
- type: Transform
pos: -14.427665,5.521161
parent: 1
- uid: 8733
components:
- type: Transform
pos: -7.4199834,-22.816376
parent: 1
- proto: CP14FoodCabbage
entities:
- uid: 8734
@@ -45802,11 +45782,6 @@ entities:
enabled: False
- proto: CP14FoodMeatLambCooked
entities:
- uid: 8751
components:
- type: Transform
pos: -7.3074436,-23.187439
parent: 1
- uid: 8752
components:
- type: Transform
@@ -45819,11 +45794,6 @@ entities:
- type: Transform
pos: -17.282326,-21.007586
parent: 1
- uid: 8754
components:
- type: Transform
pos: -4.572716,-23.311129
parent: 1
- proto: CP14FoodPieApple
entities:
- uid: 8758
@@ -45831,13 +45801,6 @@ entities:
- type: Transform
pos: -17.327341,-20.09679
parent: 1
- proto: CP14FoodPieFish
entities:
- uid: 8759
components:
- type: Transform
pos: -11.595931,-21.455805
parent: 1
- proto: CP14FoodPotatoHot
entities:
- uid: 7230
@@ -45855,6 +45818,53 @@ entities:
- type: Transform
pos: 17.61832,-16.268383
parent: 1
- proto: CP14Fork
entities:
- uid: 9668
components:
- type: Transform
rot: -1.5707963267948966 rad
pos: -7.782056,-22.78113
parent: 1
- uid: 9669
components:
- type: Transform
rot: 1.5707963267948966 rad
pos: -7.320888,-23.287128
parent: 1
- uid: 9670
components:
- type: Transform
rot: -1.5707963267948966 rad
pos: -4.598874,-22.80362
parent: 1
- uid: 9671
components:
- type: Transform
rot: -1.5707963267948966 rad
pos: -1.4606848,-23.590725
parent: 1
- uid: 9674
components:
- type: Transform
rot: -1.5707963267948966 rad
pos: -14.399505,-16.982975
parent: 1
- uid: 9675
components:
- type: Transform
rot: -1.5707963267948966 rad
pos: -14.389506,-16.803066
parent: 1
- proto: CP14FryingPan
entities:
- uid: 8722
components:
- type: Transform
pos: -15.524707,-19.24207
parent: 1
- type: CollisionWake
enabled: False
- proto: CP14Furnace
entities:
- uid: 2
@@ -45870,6 +45880,9 @@ entities:
- type: Transform
pos: -15.5,-19.5
parent: 1
- type: ItemPlacer
placedEntities:
- 8722
- uid: 4
components:
- type: Transform
@@ -46011,6 +46024,18 @@ entities:
rot: 1.5707963267948966 rad
pos: -5.5,-40.5
parent: 1
- proto: CP14GoldChest
entities:
- uid: 9665
components:
- type: Transform
pos: -5.5,18.5
parent: 1
- uid: 9666
components:
- type: Transform
pos: 3.5,19.5
parent: 1
- proto: CP14GreenBottle
entities:
- uid: 8816
@@ -47259,7 +47284,42 @@ entities:
- type: Transform
pos: -23.5,-20.5
parent: 1
- proto: CP14Plate
- proto: CP14PlateGold
entities:
- uid: 28
components:
- type: Transform
pos: 16.62023,-16.163067
parent: 1
- proto: CP14PlateIron
entities:
- uid: 8751
components:
- type: Transform
pos: -13.513987,-23.309616
parent: 1
- type: CollisionWake
enabled: False
- uid: 9667
components:
- type: Transform
pos: -13.817682,-23.42206
parent: 1
- type: CollisionWake
enabled: False
- proto: CP14PlatePie
entities:
- uid: 9054
components:
- type: Transform
pos: -14.687898,-20.121904
parent: 1
- uid: 9055
components:
- type: Transform
pos: -14.327769,-20.256838
parent: 1
- proto: CP14PlateWooden
entities:
- uid: 9050
components:
@@ -47281,17 +47341,32 @@ entities:
- type: Transform
pos: -14.597865,-19.278576
parent: 1
- proto: CP14PlatePie
- proto: CP14PlateWoodenRandom
entities:
- uid: 9054
- uid: 8725
components:
- type: Transform
pos: -14.687898,-20.121904
pos: -7.6855574,-22.511265
parent: 1
- uid: 9055
- uid: 8729
components:
- type: Transform
pos: -14.327769,-20.256838
pos: -4.5473676,-22.488777
parent: 1
- uid: 8733
components:
- type: Transform
pos: -1.7128735,-23.354593
parent: 1
- uid: 8754
components:
- type: Transform
pos: -7.2581334,-22.949797
parent: 1
- uid: 8759
components:
- type: Transform
pos: -10.553796,-23.287128
parent: 1
- proto: CP14PortalFrameCrystal
entities:
@@ -63608,11 +63683,6 @@ entities:
parent: 1
- proto: CP14SackFarmingSeedFull
entities:
- uid: 15063
components:
- type: Transform
pos: -19.5,-14.5
parent: 1
- uid: 15064
components:
- type: Transform
@@ -64285,6 +64355,20 @@ entities:
pos: 24.655243,14.690253
parent: 1
- type: DamagedByContact
- proto: CP14Spoon
entities:
- uid: 9672
components:
- type: Transform
rot: -1.5707963267948966 rad
pos: -14.449496,-17.202866
parent: 1
- uid: 9673
components:
- type: Transform
rot: 1.5707963267948966 rad
pos: -15.403179,-17.420208
parent: 1
- proto: CP14SteelBeerMug
entities:
- uid: 11423
@@ -65893,13 +65977,6 @@ entities:
parent: 1
- type: Fixtures
fixtures: {}
- uid: 11746
components:
- type: Transform
pos: -13.5,-19.5
parent: 1
- type: Fixtures
fixtures: {}
- uid: 11747
components:
- type: Transform
@@ -65917,6 +65994,13 @@ entities:
fixtures: {}
- proto: CP14WallmountBarShelfB
entities:
- uid: 9677
components:
- type: Transform
pos: -13.5,-19.5
parent: 1
- type: Fixtures
fixtures: {}
- uid: 11683
components:
- type: Transform
@@ -66817,14 +66901,6 @@ entities:
parent: 1
- type: Fixtures
fixtures: {}
- uid: 11907
components:
- type: Transform
rot: 1.5707963267948966 rad
pos: -17.5,-17.5
parent: 1
- type: Fixtures
fixtures: {}
- uid: 11908
components:
- type: Transform
@@ -83544,11 +83620,6 @@ entities:
- type: Transform
pos: 3.5,18.5
parent: 1
- uid: 11704
components:
- type: Transform
pos: -5.5,18.5
parent: 1
- uid: 11717
components:
- type: Transform
@@ -83559,11 +83630,6 @@ entities:
- type: Transform
pos: -1.5,21.5
parent: 1
- uid: 15057
components:
- type: Transform
pos: 3.5,19.5
parent: 1
- uid: 15058
components:
- type: Transform
@@ -83642,6 +83708,20 @@ entities:
- type: Transform
pos: 31.5,16.5
parent: 1
- proto: CP14WoodenClosetChefFilled
entities:
- uid: 9663
components:
- type: Transform
rot: -1.5707963267948966 rad
pos: -14.5,-15.5
parent: 1
- uid: 9664
components:
- type: Transform
rot: 1.5707963267948966 rad
pos: -17.5,-17.5
parent: 1
- proto: CP14WoodenClosetGuildmasterFilled
entities:
- uid: 15089
@@ -84118,6 +84198,8 @@ entities:
- 8748
- 8749
- 8750
- 8751
- 9667
- proto: CP14WorkbenchFurnace
entities:
- uid: 15176

View File

@@ -4,8 +4,8 @@ meta:
engineVersion: 264.0.0
forkId: ""
forkVersion: ""
time: 07/11/2025 11:57:25
entityCount: 19196
time: 07/16/2025 04:57:56
entityCount: 19206
maps:
- 2
grids:
@@ -59352,7 +59352,7 @@ entities:
pos: 14.5,-24.5
parent: 2
- type: Door
secondsUntilStateChange: -13667.896
secondsUntilStateChange: -13845.33
state: Closing
- uid: 1792
components:
@@ -60893,12 +60893,6 @@ entities:
- type: Transform
pos: 12.5,-17.5
parent: 2
- uid: 5722
components:
- type: Transform
rot: 3.141592653589793 rad
pos: -1.5,-27.5
parent: 2
- proto: CP14FloorTorch
entities:
- uid: 6917
@@ -76245,39 +76239,13 @@ entities:
- type: Transform
pos: 41.42377,-34.32005
parent: 2
- proto: CP14FoodBreadSlice
entities:
- uid: 2318
components:
- type: Transform
pos: 7.308227,-21.98852
parent: 2
- proto: CP14FoodCabbageSlice
entities:
- uid: 2320
components:
- type: Transform
pos: -0.63027596,-22.27597
parent: 2
- proto: CP14FoodCheesePart
entities:
- uid: 2319
components:
- type: Transform
pos: -0.5515399,-25.286625
parent: 2
- uid: 2321
components:
- type: Transform
pos: 9.42285,-24.259884
parent: 2
- proto: CP14FoodCheeseSlice
entities:
- uid: 2324
components:
- type: Transform
pos: 7.381567,-21.496378
parent: 2
- proto: CP14FoodMeatDino
entities:
- uid: 2507
@@ -76285,6 +76253,13 @@ entities:
- type: Transform
pos: 3.0940614,-30.361221
parent: 2
- proto: CP14FoodMeatFlemHeadCooked
entities:
- uid: 11886
components:
- type: Transform
pos: 5.138539,-32.355686
parent: 2
- proto: CP14FoodMeatFrogLeg
entities:
- uid: 2509
@@ -76322,11 +76297,6 @@ entities:
- type: Transform
pos: 6.912213,-26.203783
parent: 2
- uid: 2323
components:
- type: Transform
pos: 3.5989685,-21.309408
parent: 2
- proto: CP14FoodPieApple
entities:
- uid: 2282
@@ -76343,6 +76313,51 @@ entities:
- type: Transform
pos: 42.107338,-34.496113
parent: 2
- proto: CP14Fork
entities:
- uid: 11879
components:
- type: Transform
rot: -1.5707963267948966 rad
pos: 7.322892,-21.417997
parent: 2
- uid: 11880
components:
- type: Transform
rot: 1.5707963267948966 rad
pos: 4.6571183,-21.654129
parent: 2
- uid: 11881
components:
- type: Transform
rot: -1.5707963267948966 rad
pos: -0.62943745,-25.162376
parent: 2
- uid: 11882
components:
- type: Transform
rot: -1.5707963267948966 rad
pos: -1.3824203,-30.361307
parent: 2
- type: CollisionWake
enabled: False
- uid: 11883
components:
- type: Transform
rot: -1.5707963267948966 rad
pos: -1.5511405,-30.203886
parent: 2
- type: CollisionWake
enabled: False
- proto: CP14FryingPan
entities:
- uid: 11887
components:
- type: Transform
pos: 9.415325,-29.152672
parent: 2
- type: CollisionWake
enabled: False
- proto: CP14Furnace
entities:
- uid: 2505
@@ -76351,12 +76366,18 @@ entities:
rot: -1.5707963267948966 rad
pos: 9.5,-28.5
parent: 2
- type: ItemPlacer
placedEntities:
- 11887
- uid: 2506
components:
- type: Transform
rot: -1.5707963267948966 rad
pos: 9.5,-29.5
parent: 2
- type: ItemPlacer
placedEntities:
- 11887
- uid: 2844
components:
- type: Transform
@@ -76385,6 +76406,18 @@ entities:
- type: Transform
pos: 22.5,-30.5
parent: 2
- proto: CP14GoldChest
entities:
- uid: 7865
components:
- type: Transform
pos: -20.5,-23.5
parent: 2
- uid: 7936
components:
- type: Transform
pos: -18.5,-36.5
parent: 2
- proto: CP14IronDoor
entities:
- uid: 12340
@@ -77134,32 +77167,58 @@ entities:
rot: 3.141592653589793 rad
pos: 2.5,-36.5
parent: 2
- proto: CP14Plate
- proto: CP14PlateIron
entities:
- uid: 2283
- uid: 11884
components:
- type: Transform
pos: 7.5331874,-22.337095
pos: 0.5972259,-27.179148
parent: 2
- type: CollisionWake
enabled: False
- uid: 11885
components:
- type: Transform
pos: 0.68720937,-27.370302
parent: 2
- type: CollisionWake
enabled: False
- proto: CP14PlateWoodenRandom
entities:
- uid: 2284
components:
- type: Transform
pos: 8.433026,-22.269629
pos: 3.6833415,-21.535347
parent: 2
- uid: 2294
components:
- type: Transform
pos: -0.40167212,-23.337002
pos: -0.26470375,-23.18827
parent: 2
- uid: 2296
components:
- type: Transform
pos: 3.569388,-21.290525
pos: -0.43342304,-25.392168
parent: 2
- uid: 2406
- uid: 2313
components:
- type: Transform
pos: 3.6947498,-22.223633
pos: 7.4514184,-22.277475
parent: 2
- uid: 2319
components:
- type: Transform
pos: 6.1354036,-26.257986
parent: 2
- uid: 2320
components:
- type: Transform
pos: 8.45249,-21.332949
parent: 2
- uid: 2323
components:
- type: Transform
pos: -0.4784155,-22.536097
parent: 2
- proto: CP14PortalFrameCrystal
entities:
@@ -101431,12 +101490,12 @@ entities:
- type: Transform
pos: 32.5,32.5
parent: 2
- proto: CP14SackFarmingSeedFull
- proto: CP14SackFarmingSeed
entities:
- uid: 2982
components:
- type: Transform
pos: 0.42527747,-27.375025
pos: 0.31348777,-27.316204
parent: 2
- type: CollisionWake
enabled: False
@@ -101963,6 +102022,31 @@ entities:
rot: 1.5707963267948966 rad
pos: 3.5,-42.5
parent: 2
- proto: CP14Spoon
entities:
- uid: 2318
components:
- type: Transform
rot: 1.5707963267948966 rad
pos: 1.5414248,-25.409752
parent: 2
- uid: 2324
components:
- type: Transform
rot: 1.5707963267948966 rad
pos: -0.4832139,-22.160128
parent: 2
- uid: 2406
components:
- type: Transform
rot: -1.5707963267948966 rad
pos: 3.3973436,-21.923996
parent: 2
- uid: 11878
components:
- type: Transform
pos: 8.683899,-22.227592
parent: 2
- proto: CP14StatueAngel
entities:
- uid: 6637
@@ -102476,12 +102560,6 @@ entities:
rot: 3.141592653589793 rad
pos: 3.5,-30.5
parent: 2
- uid: 2313
components:
- type: Transform
rot: -1.5707963267948966 rad
pos: -0.5,-27.5
parent: 2
- uid: 2315
components:
- type: Transform
@@ -111167,16 +111245,6 @@ entities:
- type: Transform
pos: -20.5,-24.5
parent: 2
- uid: 7865
components:
- type: Transform
pos: -20.5,-23.5
parent: 2
- uid: 7936
components:
- type: Transform
pos: -18.5,-36.5
parent: 2
- uid: 7942
components:
- type: Transform
@@ -111259,6 +111327,18 @@ entities:
rot: 1.5707963267948966 rad
pos: 30.5,-27.5
parent: 2
- proto: CP14WoodenClosetChefFilled
entities:
- uid: 2283
components:
- type: Transform
pos: -0.5,-27.5
parent: 2
- uid: 5722
components:
- type: Transform
pos: -1.5,-27.5
parent: 2
- proto: CP14WoodenClosetMerchantFilled
entities:
- uid: 7867
@@ -111519,12 +111599,12 @@ entities:
- uid: 2512
components:
- type: Transform
pos: -0.59833705,-27.353706
pos: 6.2311254,-32.280533
parent: 2
- uid: 2513
components:
- type: Transform
pos: -0.3621297,-27.44366
pos: 2.448766,-30.314747
parent: 2
- proto: CP14Workbench
entities:
@@ -111545,6 +111625,10 @@ entities:
- type: Transform
pos: -1.5,-30.5
parent: 2
- type: ItemPlacer
placedEntities:
- 11882
- 11883
- uid: 8057
components:
- type: Transform
@@ -111611,6 +111695,8 @@ entities:
- type: ItemPlacer
placedEntities:
- 2982
- 11884
- 11885
- uid: 8056
components:
- type: Transform