Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.
Sign upChanging vacuum-packed food to work the same as canned food #26554
Conversation
This comment has been minimized.
This comment has been minimized.
|
Yes please |
This was referenced Nov 6, 2018
lancewf
force-pushed the
lancewf:lancewf/vacuum_sealer_freshness
branch
2 times, most recently
to
f95375b
Nov 7, 2018
Night-Pryanik
reviewed
Nov 8, 2018
| "type": "CONTAINER", | ||
| "category": "other", | ||
| "name": "vacuum-packed", | ||
| "description": "This is a bag of vacuum packed food", |
This comment has been minimized.
This comment has been minimized.
Night-Pryanik
Nov 8, 2018
Member
| "description": "This is a bag of vacuum packed food", | |
| "description": "This is a bag of vacuum-packed food.", |
Night-Pryanik
reviewed
Nov 8, 2018
| "volume": 1, | ||
| "contains": 1, | ||
| "price": 750, | ||
| "material": "steel", |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Night-Pryanik
reviewed
Nov 8, 2018
| "category": "other", | ||
| "name": "vacuum-packed", | ||
| "description": "This is a bag of vacuum packed food", | ||
| "weight": 240, |
This comment has been minimized.
This comment has been minimized.
Night-Pryanik
Nov 8, 2018
Member
This is the weight of filled bag. Empty it should weight much less.
Night-Pryanik
reviewed
Nov 8, 2018
| "weight": 240, | ||
| "volume": 1, | ||
| "contains": 1, | ||
| "price": 750, |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Night-Pryanik
reviewed
Nov 8, 2018
| "id": "plastic_bag_vac", | ||
| "type": "CONTAINER", | ||
| "category": "other", | ||
| "name": "vacuum-packed", |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
lancewf
force-pushed the
lancewf:lancewf/vacuum_sealer_freshness
branch
5 times, most recently
from
10d34ec
to
ef05fc2
Nov 11, 2018
lancewf
reviewed
Nov 11, 2018
| @@ -209,7 +209,7 @@ | |||
| "name_plural": "salted fish", | |||
| "//": "Two fillets of fish needed here.", | |||
| "description": "Salty dried fish that lasts for a long time, but will make you thirsty.", | |||
| "weight": 44, | |||
| "weight": 84, | |||
This comment has been minimized.
This comment has been minimized.
lancewf
force-pushed the
lancewf:lancewf/vacuum_sealer_freshness
branch
5 times, most recently
from
089f339
to
dc29bf8
Nov 11, 2018
lancewf
force-pushed the
lancewf:lancewf/vacuum_sealer_freshness
branch
from
dc29bf8
to
87970ee
Nov 12, 2018
lancewf
added some commits
Nov 13, 2018
This comment has been minimized.
This comment has been minimized.
lancewf
changed the title
WIP: Changing vacuum-packed food to work the same as canned food
Changing vacuum-packed food to work the same as canned food
Nov 13, 2018
This comment has been minimized.
This comment has been minimized.
|
The current status quo is that you get the error once and then never again since it also silently fails to save. I think something like this would do it:
In src/recipe.cpp
In src/recipe.h
|
This comment has been minimized.
This comment has been minimized.
|
Thank you @kevingranade. I added your suggestion in this (cb8ad29) commit. I tested it out and I do not see any warnings or the old recipes. |
lancewf
reviewed
Nov 14, 2018
| { | ||
| "type": "recipe", | ||
| "result": "bag_meat_vac", | ||
| "obsolete": true, |
This comment has been minimized.
This comment has been minimized.
lancewf
Nov 14, 2018
Author
Contributor
Mark these recipes as obsolete instead of deleting them so they do not display the warning when a user migrates to this version. These recipes should later be deleted.



lancewf commentedNov 6, 2018
•
edited
plastic_bag_vacfish_saltedandsalted_fishHow to use
Recipes
salted meat slice,salted fish,salted simpleton slices,salted veggy chunk, andfruit sliceare vacuum-packed and do not spoil until unloaded or eatten.Summary
SUMMARY: Bugfixes "Changing vacuum-packed food to work the same as canned foods"
Purpose of change
The crafting and eating of vacuum-packed foods should work the same as canned and jarred foods. Currently, vacuum-packed foods do not show up in the eating menu (pressing 'E'.) One has to first unseal the item to eat it. But canned items do show up in the eat menu and when eat them they automatically unseal the item. This change creates the same behavior for vacuum-packed food.
With these changes and this PR #26553 this fixes the problem where rotten food when vacuum-packed turns fresh.
Describe the solution
Describe alternatives you've considered
Additional context
migration items
bag_fish_vac -> plastic_bag_vac with fish_salted
bag_apple_vac -> plastic_bag_vac with apple_sugar
bag_hflesh_vac -> plastic_bag_vac with hflesh_salted
bag_meat_vac -> plastic_bag_vac with meat_salted
bag_veggy_vac -> plastic_bag_vac with veggy_salted
fish_vac -> fish_salted
apple_vac -> apple_sugar
hflesh_vac -> hflesh_salted
meat_vac -> meat_salted
veggy_vac -> veggy_salted
Testing
Not Tested
Migration Warning!!!
When migrating vacuum-packed food it will become unsealed and will spoil in the 2 to 3 days. The reason for this is because we can not migrate an item to be in a container.