Repository navigation
feat: slice loaves on stations, with slices that keep what the loaf was - #97
Merged
Merged
Conversation
- Recipe options yield (outputs per unit: a loaf gives 4 slices) and
inherit (the output keeps the input's origin, fillers and tags). An
inheriting recipe cuts each input where it lies, so two different
loaves on one board each give their own slices.
- A station's result shows its display.furniture model on any station,
not only fill stations (slices fallen over on the cutting board).
- Food taken out of a station looks as it does in hand and goes into the
inventory like a pickup, onto a stack of the same food made at another
time; a broken station drops its items with their normal look.
- ItemBuilder fills {prefixes}/{fillers} names from the food's tags and
ingredients when building from a plain template (builditem, stations).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The code behind bread slicing on the cutting board, tested on Dev.
Changes
yieldrecipe option: outputs per recipe unit. One loaf gives 4 slices.inheritrecipe option: the output keeps the input's origin, fillers (Banana) and tags (Sweet, Cooked, age) that its output line doesn't set. A Sweet Banana Bread gives Sweet Banana Bread Slices. An inheriting recipe cuts each input in its own slot, so a banana loaf and a plain loaf on one board each give their own slices.display.furnituremodel on every station, not only fill stations. The cutting board uses this to draw the slices fallen over where the loaf was.{prefixes}/{fillers}: these used to stay as raw text when an item was built from a plain template (/cooking builditem, station outputs). They are now filled from the food's tags and ingredients.The new keys are documented at the top of
src/main/resources/crafting-stations.yml.Tests
mvn -o -B clean verify: 1273 tests pass and line coverage is still 100%. New tests:anInheritingRecipeCutsEachLoafWhereItLiesAndItsSlicesStayWhatThatLoafWasfoodTakenFromAStationGoesOntoTheSameFoodInTheInventoryLikeAPickupcomposedNamesAreFilledInFromTheFoodsIngredientsWhenBuiltFromAPlainTemplate🤖 Generated with Claude Code