Assembler Assay

by Mylon

Assemblers occasionally break and need to be serviced. Adds maintenance and attrition to assemblers with various options for increased difficulty.

a month ago
0.17 - 1.0
691

Changelog

Version: 1.1.12
Date: 2020-08-21
  Changes:
    - Krastorio2 crushers now supported
    - Reworked graphics to use additive blending, slimming down the mod size.
Version: 1.1.11
Date: 2020-06-04
  Bugfixes:
    - Fixed refurbishing machine result output count error introduced in last version.  Hard mode refurbishing recipe returns more ingredients again.
Version: 1.1.10
Date: 2020-05-14
  Changes:
    - Refurbishing machine moved to data stage so more mods have a chance to molest it.
  Bugfixes:
    - Fixed refurbishing machine's low resolution graphics.
Version: 1.1.9
Date: 2020.05.09
  Bugfixes:
    - Fixed bug caused by entities not having a mining result, like in Krastorio2
Version: 1.1.8
Date: 2020.03.15
  Changes:
    - Updated for 0.18
Version: 1.1.7
Date: 2019.11.08
  Changes:
    - Changed mod to do the magic in data-final-fixes.  If this breaks something, try the previous version, but let me know!
    - If a broken version of the item doesn't exist, mod won't throw an error and will exempt it from needing to be refurbished.
Version: 1.1.6
Date: 2019.11.08
  Bugfixes:
    - Machines will restore their recipe on replacement.  Oops.
Version: 1.1.5
Date: 2019.11.08
  Bugfixes:
    - Labs will also preserve item requests if they break before modules arrive.
    - Uranium miners (or any miners with fluid) won't automatically be marked for deconstruction when depleted.
Version: 1.1.4
Date: 2019.10.31
  Bugfixes:
    - Item request proxies will be carried over to the ghost if a machien breaks before the modules arrive.
    - Broken machines preserve their last_user.
Version: 1.1.3
Date: 2019.10.28
  Bugfixes:
    - Fixed mining drills getting marked for deconstruction too soon, leaving 1 ore left.
Version: 1.1.2
Date: 2019.10.27
  Changes:
    - Slightly improved depleted miner checking
  Bugfixes:
    - Mining drills no longer request a ghost when they're depleted.
    - Fixed a bug preventing startup if a mod added a machine that requires fluid.
Version: 1.1.1
Date: 2019.10.11
  Changes:
    - Rebalanced the pollution formula to scale better at high pollution values
Version: 1.1.0
Date: 2019.10.10
  Added:
    - Generators, labs, and refurbishers now are affected and need to be maintained as well.
    - Pollution clogging!  When enabled machines are more likely to break in heavily polluted areas.  This effect should be negligible in low pollution areas (<100).  Not enabled by default.
  Changes:
    - Default MTBF increased to 60 minutes now that more machines can break.
Version: 1.0.0
Date: 2019.09.06
  Added:
    - Added foundation checks.  Machines need a solid foundation (refined concrete) or they take damage over time.
      Brick and concrete reduce damage accordingly, but only refined concrete stops it entirely.
      Playing with Concreep is recommended.
      Note: For mods, this check is string based and it only looks for the name "refined", "concrete", or if hidden-tile is set.
  Changes:
    - Damaged machines are much less likely to break
  Bugfixes:
    - Fixed destruction of item if player mined a broken assembler with a full inventory.  It now falls onto the ground.
Version: 0.9.7
Date: 2019.09.06
  Added:
    - Improved Industrial Revolution support.  Now has a burner and electric refurbisher.
  Changes:
    - Changed item ordering.
  Bugfixes:
    - Hard mode disassemble recipe now returns more products, on average.  95% of each ingredient stack returning.
Version: 0.9.6
Date: 2019.09.06
  Bugfixes:
    - Removed an debug message.  Sorry!
Version: 0.9.5
Date: 2019.09.06
  Bugfixes:
    - Fixed Refurbisher icon displaying incorrectly.
    - Fixed potential graphics loading error conflict.
Version: 0.9.4
Date: 2019.09.04
  Added:
    - Added support for entity cloned and script destroy events.
Version: 0.9.3
Date: 2019.09.04
  Added:
    - Mining drills now require maintenance.  Rather than break every so many minutes on average, they break when picked up.
  Changed:
    - Changed default MTBF to reduce the strain on a pre-bot factory.
Version: 0.9.2
Date: 2019.09.03
  Added:
    - Refurbisher has graphics.
  Bugfixes:
    - Improved consistency of returning the broken assembler so it would require proper service.
    - Recipes no longer show up in crafting menu.
Version: 0.9.1
Date: 2019.09.03
  Bugfixes:
    - Crafting machines with fluid in their recipe won't crash the game.  Fluids won't be returned when servicing them on hard mode.
Version: 0.9.0
Date: 2019.09.02
  Added:
    - Crafting machines sometimes break and must be serviced.  They'll stop crafting and be marked for deconstruction.
    - Out of service assemblers can be fed into the Refubrisher.  On easy mode this will return a working crafting machine.
    - On Hard mode refubrishing returns a portion of the crafting machine's products.  A new crafting machine can be produced using these products.
    - Damaged machines are checked separately.  Every 30s they have a chance to break equal to their missing health. (1% health = 99% break chance)
    - Idle machines have a chance of being spared when checked. (Default 80%)
  Note:
    - Graphics are temporary.  Looking for a suitable entity/icon for the refurbisher.