[FIX]TSU Cerys lithium unlock fix

by tabr

Fixes recipes of the Fulgorian cryogenics technology (cerys-fulgoran-cryogenics) that stay stuck at enabled=false in Cerys + K2SO save games - lithium in particular. Re-enables every recipe the technology is meant to unlock, both when it is already researched (retroactively) and on future research. Control-only: does not touch prototypes or balance.

Tweaks
5 hours ago
2.0
0
Owner:
tabr
Source:
N/A
Homepage:
N/A
License:
MIT
Created:
5 hours ago
Latest Version:
0.1.0 (5 hours ago)
Factorio version:
2.0
Downloaded by:
0 users

Re-enables the Cerys "lithium" recipe (and any other recipe of the Fulgorian cryogenics tech) when it gets stuck locked in Cerys + K2SO saves.

TSU Cerys lithium unlock fix

In some Cerys + Krastorio 2 Spaced Out save games, the lithium recipe unlocked by the Fulgorian cryogenics technology (cerys-fulgoran-cryogenics) stays locked even though the technology is already researched — so you can never craft lithium without flying to Aquilo.

The unlock effect is correct in the technology tree, but enabling the recipe during the load phase (a migration / reset_technology_effects) gets overwritten by other mods later in the load sequence. This mod fixes it in the live game, where the change sticks.

### What it does
- On load, if cerys-fulgoran-cryogenics is already researched, it re-enables every recipe that technology is meant to unlock (lithium in particular).
- It also hooks on_research_finished, so future research is covered too.
- Self-healing: it re-applies on every load, so the recipe can't get stuck again.

### Notes
- Control-only. It does not change any prototypes, recipes, or balance — it only flips the recipe's unlocked flag for forces that have the technology.
- Safe to add to and remove from existing saves at any time.
- Built for Cerys + K2SO, but works with plain Cerys too (the recipe name is the same).

### Compatibility
Requires Cerys - Moon of Fulgora. Loads after Cerys and (optionally) after Krastorio 2 Spaced Out.