-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Fix zinc_metal
stats (and cascade effects)
#63375
Conversation
Edit: none of this is applicable any more due to #62180
Magiclysm Nova Flare spell requirements {
"id": "spell_components_nova_flare",
"type": "requirement",
"//": "Fire starting items suitable for the Nova Flare spell",
+ "//1": "1.3MJ energy content",
+ "components": [ [ [ "coal_lump", 1 ], [ "lamp_oil", 35 ] ] ]
- "components": [ [ [ "coal_lump", 30 ], [ "lamp_oil", 5 ] ] ]
} 1 35 Fix recipe for further reduction of zinc oxide with carbon; this uses an extremely conservative approach that oversupplies carbon.
CaC2 production: looks like I need to make a separate PR related to the arc furnace process, so I'll deal with it there. Innawoods ammonium hydroxide recipe: skipped, because this was a hack to compensate for inability to loot the chem in innawoods, and I couldn't figure out what kind of process this was supposed to be based off of. Several recipes allow Besides the reduction of zinc oxide with carbon from above, other such instances are:
|
A note regarding ore processing: The hammer+chisel requirement isn't an issue here, but be careful when you get to iron ores, as we don't want to put Innawood in a catch-22 situation where you need the tools to process the ore you need to get the tools. For that case it might be useful to add an additional recipe that uses more primitive tools at the expense of it taking longer. |
Couldn't Innawoods issues be handled in Innawoods-specific recipes? It's a bit weird to adjust mainline recipes specifically to avoid problems in Innawoods. I had the same thing happen when I changed the antenna recipe and made electronics not able to be learned in Innawoods anymore - I just ported the old recipe that allowed for it to be Innawoods-specific. |
Yes, I would suggest it would be an Innawood specific recipe. However, this PR is tagged with Innawood, so I didn't think to mention that specifically. |
The tagging happened automatically because in this PR I have adjusted the innawood version of the battery recipe alongside the mainline one when adjusting input amounts. Noted the potential smelting catch-22. Depending on the ore's hardness, I guess you could just try smashing it with another rock of harder material, or something like that. |
Come to think of it, bog iron isn't actually huge chunks of rock, so it wouldn't need much or any bashing in the first place. Thus, hematite could use the regular breaking apart routine, while the Innawood specific bog iron might not actually need any tool change. Even if that's needed, pulverizing it with a rock (hammer 1) ought to be sufficient. |
90777fe
to
e5da3be
Compare
I already fixed the weight of coal (and charcoal) in pending #62180. this will conflict. |
Noted, thanks for the heads up |
Rebased to incorporate changes from #62180. |
Summary
Bugfixes "Fix
zinc_metal
stats (and cascade effects)"Purpose of change
Split off from #62936
The density of
zinc_metal
is way off. Fix it, and deal with cascading effects in recipes.Describe the solution
Zinc has density 7.14g/cm³. That's 357g for 50ml volume, which divides into a stack of 200 charges, 1785mg per unit.
Adjust the disassembly of 5L zinc ingot, applying a 5.5% lossiness -- as I work my way through the spinoffs of #62936, 5~6% loss rate that will be applied consistently to all 5L ingot disassembly.
Migrated item zinc oxide with misleading id
chem_zinc
tochem_zinc_oxide
to prevent confusion with actual elemental/metal zinc items. Drive-by adjustment to volume due to discrepancy in quoted density figure -- not expected to affect recipes, since those depend on the weight (which corresponds to 1/100 moles of chemical).Edit: adopted
coal_lump
andcharcoal
stats from #62180Fix weight ofcoal_lump
, from 1.5g to 37.5g. There was a mistake in 5549b62 where divided by count (250) instead of stack size (10) leading to value off by a factor of ×25. This is required for sanity of the next step.Check cascade effects of coal weight change; see details belowAs a source of elemental carbon for chemistry,
coal_lump
treated as anthracite coal with 90% carbon content.For
charcoal
, carbon content of wood charcoal can vary drastically (sources give 50~95%). Picked a fairly generous value of ~80.56% for convenience, since that will allowcharcoal
andcoal_lump
to be used at parity.Fix recipe for smelting
zinc_metal
from orematerial_zincite
by reduction with carbon.Fix recipe for further reduction of zinc oxide with carbon; this uses an extremely conservative approach that oversupplies carbon.
Adjust recipe for grinding of
zinc_metal
intochem_zinc_powder
; reworked to produce ~130g, on the same scale as aluminum powder grinding recipe (176g output) and maintaining roughly the same material inefficiency as before (was 1308g/1400g, 6.6% lossy). This only balances zinc input and output, other issues with this recipe are marked with TODO and deferred to be fixed as a package with other problems found with powdered metals in #62936Adjust battery recipes by scaling
zinc_metal
inputs to roughly preserve mass. However, proportion also needs to be preserved when comparing among those recipes, so it is a straightforward scaling by 4× rather than 3.922× followed by rounding. (This is naive multiplication only, I did not look into the scientific basis for these recipes.)This should cover all pertinent references to
zinc_metal
insrc/
,data/json/
anddata/mods
.Testing
Suggested checks: