Rusting Iron
by thesixthroc and SafTheLamb
Iron plates, gears, sticks and engines spoil by rusting, then need to be derusted.
- Derusting can be performed by:
- stone (in the early game)
- sulfuric acid (for easy derusting of quality iron)
- As one more step in bringing Fulgora back to life, scavenged Fulgoran iron is swapped for its rusty variants.
Compatibility:
- AAI Industry or Glass: Derusting is performed by sand rather than stone.
Modding Interface:
- With 1.2.0, this mod has a new API for adding new rusting items and new de-rusting recipes.
- See prototypes/compat/base.lua for examples (here)
- RustingIron.rusting_items[] is the main access point, for specifying a type of item that can rust.
- The key is the item that will rust, and the rusted item variant will be the item name appended with "-rusty" e.g.
"iron-plate-rusty"
- The parameters for a rusting item are: rust_timescale, derust_timescale, derust_amount, derust_costscale, and icon_root.
- There are constants in the RustingIron table for standard configurations, but you can specify your own values.
- The icon_root path is appended with
-rusty.png
for the rusted item, and appended with-derust.png
for the derusting recipes. - RustingIron.derusting_recipes[] is the other access point, for specifying derusting recipes.
- The required parameters are ingredients, localised_name, category, derust_amount, and derust_timescale.
- Optional parameters are technology, overlay_icon, and crafting_machine_tint.
- Most of these are self-explanatory, and are multiplied with the values from the rusting item when combined for each derusting recipe.
- The optional overlay icon is layered above the
"-derust.png"
icon. - If a
technology
is specified, the derusting recipes are all locked behind that technology.