forked from Admin-Unknown/AdminUnknownFixes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata-final-fixes.lua
More file actions
99 lines (82 loc) · 3.94 KB
/
Copy pathdata-final-fixes.lua
File metadata and controls
99 lines (82 loc) · 3.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
-- Restore sulfur-processing.hidden and global error() after pypostprocessing (see fix-sulfur-processing-prerequisites.lua, patch-pypp-impossible-research-validation.lua).
require('prototypes/compatibility/restore-sulfur-processing-hidden')
--angel mods
require('prototypes/angels-mods/Data-Final-Fixes')
--aai
require('prototypes/aai/Data-fixes')
--bobs mods
require('prototypes/bobs-mods/Data-Final-Fixes')
--madclown mods
require('prototypes/madclowns-mods/data-fixes')
--msp
if mods['MoreSciencePacks-for1_1'] then
require('prototypes/msp/Data-fixes')
end
--apm mods
require('prototypes/apm-mods/Data-Final-Fixes')
if mods['SeaBlockMetaPack'] then
TECHNOLOGY('chemical-science-pack'):remove_prereq('advanced-circuit')
end
----------------------------------------------------
-- MERGED FROM PyPPTBaA: Debug logging
----------------------------------------------------
if settings.startup["debug-techcheck"] and settings.startup["debug-techcheck"].value then
for _, tech in pairs(data.raw.technology) do
if not tech.prerequisites then goto continue end
for _, prereq in pairs(tech.prerequisites) do
if not data.raw.technology[prereq] then
log(tech.name .. " is missing prereq: " .. prereq)
log(serpent.block(tech))
goto continue
end
end
::continue::
end
end
if settings.startup["log-technology"] and data.raw.technology[settings.startup["log-technology"].value] ~= nil then
log(serpent.block(data.raw.technology[settings.startup["log-technology"].value]))
end
----------------------------------------------------
-- MERGED FROM PyPPTBaA: Global Item Replacer
----------------------------------------------------
require('prototypes/global-item-replacer')
require('functions/yuoki-legacy-recipe-compat')
-- After replacer may hide items used as minable results for vanilla upgradable assemblers (Factorio 2.0 vs next_upgrade).
require('prototypes/compatibility/fix-chemical-plant-next-upgrade')
----------------------------------------------------
-- MERGED FROM PyPPTBaA: Ingredient Deduplicator
----------------------------------------------------
require('prototypes/ingredient-deduplicator')
-- Reapply after final-fixes ingredient mutations and deduplication.
require('prototypes/compatibility/fix-early-ore-sorting-facility')
----------------------------------------------------
-- MERGED FROM PyPPTBaA: Icon fixes
----------------------------------------------------
if mods['pyhightech'] and mods['bobelectronics'] then
if data.raw.item['electronic-circuit'] then
data.raw.item['electronic-circuit'].icon_size = 64
data.raw.item['electronic-circuit'].icon = "__pyhightechgraphics__/graphics/icons/circuit-board-1.png"
end
if data.raw.item['advanced-circuit'] then
data.raw.item['advanced-circuit'].icon_size = 64
data.raw.item['advanced-circuit'].icon = "__pyhightechgraphics__/graphics/icons/circuit-board-2.png"
end
if data.raw.item['processing-unit'] then
data.raw.item['processing-unit'].icon_size = 64
data.raw.item['processing-unit'].icon = "__pyhightechgraphics__/graphics/icons/circuit-board-3.png"
end
if data.raw.item['intelligent-unit'] then
-- pyhightechgraphics intelligent-unit.png is 32x32; 64 here triggers Factorio sprite bounds error.
data.raw.item['intelligent-unit'].icon_size = 32
data.raw.item['intelligent-unit'].icon = "__pyhightechgraphics__/graphics/icons/intelligent-unit.png"
end
end
----------------------------------------------------
-- MERGED FROM bobsmodules4py: Bob's Modules compat
----------------------------------------------------
if mods['bobmodules'] then
require('prototypes/bobs-mods/bobmodules-compat')
end
require('functions/yuoki-legacy-recipe-compat')
-- After all other final-fixes: ensure bob-lab-2 accepts every pack used by Bob gold + alien bullet-line techs.
require("prototypes/compatibility/fix-bob-lab2-research-inputs")