Skip to content

Commit 16f2b8c

Browse files
Merge pull request #38 from JohnTheCoolingFan/dev
1.1.20
2 parents b7975a9 + e8cb514 commit 16f2b8c

File tree

6 files changed

+81
-10
lines changed

6 files changed

+81
-10
lines changed

changelog.txt

+13
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,17 @@
11
---------------------------------------------------------------------------------------------------
2+
Version: 1.1.20
3+
Date: 26.08.2020
4+
Fixes:
5+
- Fixed error on load when Atomic Artillery, PE and Bob's Warfare are enabled
6+
Integration:
7+
- Plutonium Atomic Artillery shell is now available with Bob's Warfare mod.
8+
Balancing:
9+
- Plutonium atomic bomb:
10+
Removed processing unit from recipe
11+
Removed Pu-238 from recipe
12+
Pu-239 10x -> 35x
13+
Added x10 Rocket control unit
14+
---------------------------------------------------------------------------------------------------
215
Version: 1.1.19
316
Date: 25.08.2020
417
Fixes:

info.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "PlutoniumEnergy",
3-
"version": "1.1.19",
3+
"version": "1.1.20",
44
"title": "Plutonium Energy",
55
"author": "JohnTheCoolingFan",
66
"contact": "https://discord.gg/grHVhE2",
@@ -9,7 +9,8 @@
99
"base >= 1.0.0",
1010
"? AtomicArtillery",
1111
"? SchallUraniumProcessing",
12-
"? bobplates"
12+
"? bobplates",
13+
"? bobwarfare"
1314
],
1415
"description": "Adds processing of plutonium, excess product from nuclear reaction. Plutonium can be used to create ammo (even plutonium atomic bomb) and to create energy as MOX fuel.",
1516
"factorio_version": "1.0"

prototypes/entity/projectiles.lua

+24-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,29 @@ plutonium_atomic_rocket.action.action_delivery.target_effects[18].action.radius
4848
table.insert(projectiles, plutonium_atomic_rocket)
4949

5050

51-
if mods["AtomicArtillery"] then
51+
if mods['bobwarfare'] then
52+
local plutonium_atomic_artillery_projectile = util.table.deepcopy(data.raw["artillery-projectile"]["atomic-artillery-projectile"])
53+
54+
plutonium_atomic_artillery_projectile.name = "plutonium-atomic-artillery-projectile"
55+
56+
plutonium_atomic_artillery_projectile.picture.filename = "__PlutoniumEnergy__/graphics/entity/plutonium-artillery-projectile/hr-plutonium-atomic-shell.png"
57+
plutonium_atomic_artillery_projectile.chart_picture.filename = "__PlutoniumEnergy__/graphics/entity/plutonium-artillery-projectile/plutonium-atomic-artillery-shoot-map-visualization.png"
58+
59+
plutonium_atomic_artillery_projectile.action.action_delivery.target_effects[1].repeat_count = 140
60+
plutonium_atomic_artillery_projectile.action.action_delivery.target_effects[3].damage.amount = 560
61+
plutonium_atomic_artillery_projectile.action.action_delivery.target_effects[6].radius = 10
62+
plutonium_atomic_artillery_projectile.action.action_delivery.target_effects[7].action.repeat_count = 2800
63+
plutonium_atomic_artillery_projectile.action.action_delivery.target_effects[7].action.radius = 50
64+
--plutonium_atomic_artillery_projectile.action.action_delivery.target_effects[7].action.action_delivery.projectile = "plutonium-atomic-artillery-wave"
65+
table.insert(projectiles, plutonium_atomic_artillery_projectile)
66+
67+
68+
--[[local plutonium_atomic_artillery_wave = util.table.deepcopy(data.raw["projectile"]["atomic-artillery-wave"])
69+
plutonium_atomic_artillery_wave.name = "plutonium-atomic-artillery-wave"
70+
plutonium_atomic_artillery_wave.action[2].action_delivery.target_effects.damage.amount = 5600
71+
table.insert(projectiles, plutonium_atomic_artillery_wave)]]
72+
73+
elseif mods["AtomicArtillery"] then
5274
local plutonium_atomic_artillery_projectile = util.table.deepcopy(data.raw["artillery-projectile"]["atomic-artillery-projectile"])
5375

5476
plutonium_atomic_artillery_projectile.name = "plutonium-atomic-artillery-projectile"
@@ -68,6 +90,7 @@ if mods["AtomicArtillery"] then
6890
plutonium_atomic_artillery_wave.name = "plutonium-atomic-artillery-wave"
6991
plutonium_atomic_artillery_wave.action[2].action_delivery.target_effects.damage.amount = 5600
7092
table.insert(projectiles, plutonium_atomic_artillery_wave)
93+
7194
end
7295

7396
data:extend(projectiles)

prototypes/item/ammo.lua

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,16 @@
1-
if mods["AtomicArtillery"] then
1+
if mods['bobwarfare'] then
2+
local plutonium_atomic_artillery_shell = util.table.deepcopy(data.raw["ammo"]["atomic-artillery-shell"])
3+
4+
plutonium_atomic_artillery_shell.name = "plutonium-atomic-artillery-shell"
5+
plutonium_atomic_artillery_shell.icon = "__PlutoniumEnergy__/graphics/icons/plutonium-atomic-artillery-shell.png"
6+
plutonium_atomic_artillery_shell.icons = nil
7+
plutonium_atomic_artillery_shell.icon_size = 64
8+
plutonium_atomic_artillery_shell.icon_mipmaps = 4
9+
10+
plutonium_atomic_artillery_shell.projectile = "plutonium-atomic-artillery-projectile"
11+
data:extend({plutonium_atomic_artillery_shell})
12+
13+
elseif mods["AtomicArtillery"] then
214
local plutonium_atomic_artillery_shell = util.table.deepcopy(data.raw["ammo"]["atomic-artillery-shell"])
315

416
plutonium_atomic_artillery_shell.name = "plutonium-atomic-artillery-shell"
@@ -7,7 +19,6 @@ if mods["AtomicArtillery"] then
719
plutonium_atomic_artillery_shell.icon_mipmaps = 4
820

921
plutonium_atomic_artillery_shell.projectile = "plutonium-atomic-artillery-projectile"
10-
plutonium_atomic_artillery_shell.ammo_type.action.action_delivery.starting_speed = 1.1
1122
data:extend({plutonium_atomic_artillery_shell})
1223
end
1324

prototypes/recipe/ammo.lua

+25-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,27 @@
11
local ammo_recipes = {}
22

3-
if mods["AtomicArtillery"] then
3+
if mods['bobwarfare'] then
4+
local plutonium_atomic_artillery_shell = util.table.deepcopy(data.raw["recipe"]["atomic-artillery-shell"])
5+
6+
plutonium_atomic_artillery_shell.name = "plutonium-atomic-artillery-shell"
7+
8+
plutonium_atomic_artillery_shell.normal.ingredients = {
9+
{"steel-plate", 8},
10+
{"plastic-bar", 8},
11+
{"explosives", 30},
12+
{"PE-plutonium-239", 30}
13+
}
14+
plutonium_atomic_artillery_shell.expensive.ingredients = {
15+
{"steel-plate", 16},
16+
{"plastic-bar", 16},
17+
{"explosives", 30},
18+
{"PE-plutonium-239", 30}
19+
}
20+
plutonium_atomic_artillery_shell.normal.result = "plutonium-atomic-artillery-shell"
21+
plutonium_atomic_artillery_shell.expensive.result = "plutonium-atomic-artillery-shell"
22+
table.insert(ammo_recipes, plutonium_atomic_artillery_shell)
23+
24+
elseif mods["AtomicArtillery"] then
425
local plutonium_atomic_artillery_shell = util.table.deepcopy(data.raw["recipe"]["atomic-artillery-shell"])
526

627
plutonium_atomic_artillery_shell.name = "plutonium-atomic-artillery-shell"
@@ -13,6 +34,7 @@ if mods["AtomicArtillery"] then
1334
}
1435
plutonium_atomic_artillery_shell.result = "plutonium-atomic-artillery-shell"
1536
table.insert(ammo_recipes, plutonium_atomic_artillery_shell)
37+
1638
end
1739

1840
if ammo_recipes[1] then data:extend(ammo_recipes) end
@@ -36,10 +58,9 @@ data:extend({
3658
enabled = false,
3759
energy_required = 50,
3860
ingredients = {
39-
{"processing-unit", 20},
61+
{"rocket-control-unit", 10},
4062
{"explosives", 10},
41-
{"PE-plutonium-238", 15},
42-
{"PE-plutonium-239", 10}
63+
{"PE-plutonium-239", 35}
4364
},
4465
result = "plutonium-atomic-bomb"
4566
},

prototypes/technology/ammo.lua

+3-1
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,8 @@ data:extend({
6060
}
6161
})
6262

63-
if mods["AtomicArtillery"] then
63+
if mods['bobwarfare'] then
64+
table.insert(data.raw['technology']['bob-atomic-artillery-shell'].effects, {type = 'unlock-recipe', recipe = 'plutonium-atomic-artillery-shell'})
65+
elseif mods["AtomicArtillery"] then
6466
table.insert(data.raw["technology"]["plutonium-ammo"].effects, {type = "unlock-recipe", recipe = "plutonium-atomic-artillery-shell"})
6567
end

0 commit comments

Comments
 (0)