Skip to content

Commit 775a7e8

Browse files
committed
Initial commit
1 parent 8f61da6 commit 775a7e8

File tree

5 files changed

+53
-31
lines changed

5 files changed

+53
-31
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.vim
22
.vscode
33
.nvimrc
4+
.DS_Store

data-updates.lua

+46-9
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,7 @@ if mods['bobplates'] then
88
--data.raw['technology']['plutonium-processing'].effects = {} -- Broken. Why did I do this in the first place?
99
end
1010

11-
if mods['IndustrialRevolution'] then
12-
data.raw['ammo']['plutonium-rounds-magazine'].subgroup = 'ir2-ammo'
13-
data.raw['item']['plutonium-238'].subgroup = 'pure'
14-
data.raw['item']['plutonium-239'].subgroup = 'pure'
15-
data.raw['item']['plutonium-fuel'].subgroup = 'ir2-fuels'
16-
data.raw['item']['MOX-fuel'].order = 'ib'
17-
data.raw['item']['plutonium-fuel'].order = 'fb'
18-
data.raw['item']['used-up-MOX-fuel'].order = 'r[used-up-uranium-fuel-cell]-b'
19-
11+
if mods['IndustrialRevolution3'] then
2012
if data.raw['technology']['plutonium-ammo'] then
2113
data.raw['technology']['plutonium-ammo'].unit.count = 2000
2214
data.raw['technology']['plutonium-ammo'].unit.time = 60
@@ -26,6 +18,51 @@ if mods['IndustrialRevolution'] then
2618
-- Note to future self: atomic bombs are replaced by artillery shells in IR2
2719
data.raw['technology']['plutonium-atomic-bomb'].effects = {{type='unlock-recipe', recipe='plutonium-atomic-artillery-shell'}}
2820
end
21+
22+
-- IR3 removes uranium-fuel, not a usable fuel for vehicles
23+
data.raw['recipe']['plutonium-fuel'].hidden = true
24+
data.raw['recipe']['plutonium-fuel'].enabled = false
25+
26+
for index, effect in pairs(data.raw['technology']['plutonium-enrichment-process'].effects) do
27+
if effect.recipe == "plutonium-fuel" then
28+
table.remove(data.raw['technology']['plutonium-enrichment-process'].effects, index)
29+
end
30+
end
31+
32+
-- IR3 uses barreling machines
33+
for index, effect in pairs(data.raw['technology']['plutonium-processing'].effects) do
34+
if effect.recipe == "advanced-nuclear-fuel-reprocessing-with-barrelling" then
35+
table.remove(data.raw['technology']['plutonium-processing'].effects, index)
36+
end
37+
end
38+
39+
-- assign IR3 subgroups
40+
data.raw['recipe']['MOX-reactor'].subgroup = "ir-nuclear-machines"
41+
data.raw['recipe']['MOX-reactor'].order = "f[nuclear-energy]-a[reactor]"
42+
43+
data.raw['item']['MOX-reactor'].subgroup = "ir-nuclear-machines"
44+
data.raw['item']['MOX-reactor'].order = "f[nuclear-energy]-a[reactor]"
45+
46+
data.raw['recipe']['breeder-reactor'].subgroup = "ir-nuclear-machines"
47+
data.raw['recipe']['breeder-reactor'].order = "f[nuclear-energy]-a[reactor]"
48+
49+
data.raw['item']['breeder-reactor'].subgroup = "ir-nuclear-machines"
50+
data.raw['item']['breeder-reactor'].order = "f[nuclear-energy]-a[reactor]"
51+
52+
data.raw['recipe']['MOX-fuel'].subgroup = "intermediate-product"
53+
data.raw['recipe']['MOX-fuel'].order = "r[uranium-processing]-e[MOX-fuel-processing]"
54+
55+
data.raw['item']['MOX-fuel'].subgroup = "intermediate-product"
56+
data.raw['item']['MOX-fuel'].order = "r[uranium-processing]-e[MOX-fuel-processing]"
57+
58+
data.raw['item']['used-up-MOX-fuel'].subgroup = "intermediate-product"
59+
data.raw['item']['used-up-MOX-fuel'].order = 'r[used-up-uranium-fuel-cell]-b'
60+
61+
data.raw['recipe']['plutonium-rounds-magazine'].subgroup = 'ir-ammo'
62+
data.raw['recipe']['plutonium-rounds-magazine'].order = 'c-q'
63+
64+
data.raw['ammo']['plutonium-rounds-magazine'].subgroup = 'ir-ammo'
65+
data.raw['ammo']['plutonium-rounds-magazine'].order = 'c-q'
2966
end
3067

3168
if mods['SchallRadioactiveWaste'] then

prototypes/entity/projectiles.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ if mods['bobwarfare'] then
254254
plutonium_atomic_artillery_projectile.action.action_delivery.target_effects[13].action.radius = 50
255255
table.insert(projectiles, plutonium_atomic_artillery_projectile)
256256

257-
elseif mods['IndustrialRevolution'] then
257+
elseif mods['IndustrialRevoluton3'] then
258258
local plutonium_atomic_artillery_projectile = util.table.deepcopy(data.raw['artillery-projectile']['atomic-artillery-projectile'])
259259

260260
plutonium_atomic_artillery_projectile.name = 'plutonium-atomic-artillery-projectile'

prototypes/recipe/ammo.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ end
5757
if ammo_recipes[1] then data:extend(ammo_recipes) end
5858

5959
if settings.startup['enable-plutonium-ammo'].value then
60-
if mods["IndustrialRevolution"] then
60+
if mods["IndustrialRevolution3"] then
6161
--adds lead plates to the ammo recipes
6262
data:extend({
6363
{
@@ -66,7 +66,7 @@ if settings.startup['enable-plutonium-ammo'].value then
6666
enabled = false,
6767
energy_required = 10,
6868
ingredients = {
69-
{"piercing-rounds-magazine", 1},
69+
{"chromium-magazine", 1},
7070
{"lead-plate", 2},
7171
{"plutonium-238", 1}
7272
},
@@ -96,7 +96,7 @@ if settings.startup['enable-plutonium-ammo'].value then
9696
},
9797
result = "explosive-plutonium-cannon-shell"
9898
},
99-
-- makes an atomic artillery shell, IR2's replacement for an atomic bomb
99+
-- makes an atomic artillery shell, IR3's replacement for an atomic bomb
100100
{
101101
type = "recipe",
102102
name = "plutonium-atomic-artillery-shell",

prototypes/recipe/recipes.lua

+2-18
Original file line numberDiff line numberDiff line change
@@ -287,15 +287,8 @@ data:extend({
287287
}
288288
})
289289

290-
if mods["IndustrialRevolution"] then
291-
-- Recipe tweaks
292-
data.raw['recipe']['plutonium-fuel'].ingredients = {
293-
{ "rocket-fuel", 1 },
294-
{ "plutonium-239", 1 }
295-
}
296-
data.raw['recipe']['plutonium-fuel'].energy_required = 90
297-
data.raw['recipe']['plutonium-fuel'].category = 'chemistry'
298-
-- Add Shielded Steel plate to recipes
290+
if mods["IndustrialRevolution3"] then
291+
-- Add radation shielding to recipes
299292
data.raw['recipe']['MOX-fuel'].ingredients = {
300293
{ "lead-plate-special", 10 },
301294
{ "uranium-238", 19 },
@@ -357,13 +350,4 @@ if mods["IndustrialRevolution"] then
357350
}
358351
table.insert(data.raw['recipe']['advanced-nuclear-fuel-reprocessing'].results, { name = "steel-scrap", amount = 1 })
359352
table.insert(data.raw['recipe']['advanced-nuclear-fuel-reprocessing'].results, { name = "lead-scrap", amount = 1 })
360-
table.insert(data.raw['recipe']['advanced-nuclear-fuel-reprocessing-with-barrelling'].results,
361-
{ name = "steel-scrap", amount = 1 })
362-
table.insert(data.raw['recipe']['advanced-nuclear-fuel-reprocessing-with-barrelling'].results,
363-
{ name = "lead-scrap", amount = 1 })
364-
-- Subgroup and ordering fixes
365-
data.raw['recipe']['MOX-fuel-reprocessing'].subgroup = 'ir2-fuels'
366-
data.raw['recipe']['plutonium-enrichment-process'].subgroup = 'ir2-fuels'
367-
data.raw['recipe']['MOX-fuel'].subgroup = 'ir2-fuels'
368-
data.raw['recipe']['MOX-fuel'].category = 'centrifuging'
369353
end

0 commit comments

Comments
 (0)