Rusting Iron


Bringing a piece of Gleba to everyone. Iron plates, gears, sticks and engines spoil by rusting, then need to be derusted with stone.

Content
19 hours ago
2.0
1.00K
Factorio: Space Age Icon Space Age Mod
Manufacturing
Owner:
thesixthroc
Source:
https://github.com/danielmartin0/Rocs...
Homepage:
N/A
License:
GNU LGPLv3
Created:
5 months ago
Latest Version:
1.2.4 (19 hours ago)
Factorio version:
2.0
Downloaded by:
1.00K users

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.