Wed, 27 Aug 2025 10:26:12 +0300
Lots of stuff
19 | 1 | for _, tech in pairs(data.raw["technology"]) |
2 | do | |
3 | for k, v in pairs(tech.prerequisites or {}) | |
4 | do | |
5 | local replacement = data.raw["technology"][v]["_science_extra_trigger_technology"] | |
6 | if replacement and tech.name ~= replacement | |
7 | then | |
8 | tech.prerequisites[k] = replacement | |
9 | end | |
10 | end | |
11 | end | |
12 | ||
13 | for _, tech in pairs(data.raw["technology"]) | |
14 | do | |
15 | tech["_science_extra_trigger_technology"] = nil | |
16 | end |