-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recipe enhancements #311
Recipe enhancements #311
Conversation
Does not have to be changed here but any alloying recipe, that currently results in dust, should be updated to give ingots instead. It just makes sense to return only ingots from smelting and never dust piles. |
local result = data.output | ||
if (type(result)=="table") then | ||
result = result[1] | ||
if data.hidden then return end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would be good if this return in the middle of function can be refactored to not be here.
Pretty sure this function should be split into two for readability, everything below this line would probably be better split into another local function.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't know, seems unnecessary to split it, even for readability. I think I'll just leave it for now, it can be refactored later when group support is added.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM but didn't test.
That return in the middle without logging isn't big thing, at least not yet, so works for me even if it stays.
I changed the dust alloy recipes to output ingots, but I just thought, won't it break automated setups? |
Click for detailed source code test coverage reportTest coverage report for Technic CNC 87.36% in 11/14 files:
Test coverage report for technic chests 45.49% in 6/6 files:
Test coverage report for technic 66.35% in 96/96 files:
Raw test runner output for geeks:CNC:
Chests:
Technic:
|
It is possible but I think it is unlikely, what I've seen so far ppl usually seem to be feeding ingots to furnaces and that's probably because ingots are also better for storage (as a blocks) + because of being consistent with primary guide recipes. While it can break setups I don't think it breaks that many setups and I'd say it is so inconsistent anyway that when it breaks some automated setup then that setup should be fixed instead of trying to protect it here. While being backward compatible is generally nice thing, still going too far with protecting existing stuff isn't good for development. Going to be beta release anyway 😁 |
Ah, true. I didn't think of that.
Agreed 👍 |
A few minor, but much needed recipe enhancements:
unified_inventory
. Purely cosmetic.Example of chernobylite dust centrifuging recipe: