Skip to content

Commit

Permalink
Remove unnecessary prerequisites #298
Browse files Browse the repository at this point in the history
  • Loading branch information
KiwiHawk committed Jan 12, 2025
1 parent f44eabf commit 008226a
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 36 deletions.
5 changes: 3 additions & 2 deletions bobequipment/prototypes/technology/technology-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ then
{ "alien-science-pack-blue", 1 },
{ "alien-science-pack-orange", 1 },
}

bobmods.lib.tech.remove_prerequisite("bob-battery-equipment-4", "production-science-pack")
data.raw.technology["bob-energy-shield-equipment-5"].unit.ingredients = {
{ "science-pack-gold", 1 },
{ "alien-science-pack", 1 },
Expand Down Expand Up @@ -74,6 +74,7 @@ then
{ "alien-science-pack-green", 1 },
{ "alien-science-pack-red", 1 },
}
bobmods.lib.tech.remove_prerequisite("bob-battery-equipment-6", "utility-science-pack")
data.raw.technology["fission-reactor-equipment-4"].unit.ingredients = {
{ "science-pack-gold", 1 },
{ "alien-science-pack", 1 },
Expand All @@ -98,7 +99,7 @@ then
if data.raw.technology["alien-research"] then
bobmods.lib.tech.add_prerequisite("bob-energy-shield-equipment-4", "alien-research")
bobmods.lib.tech.add_prerequisite("bob-battery-equipment-4", "alien-research")
bobmods.lib.tech.add_prerequisite("fission-reactor-equipment-2", "alien-research")
bobmods.lib.tech.add_prerequisite("fission-reactor-equipment-3", "alien-research")
end
else
if data.raw.technology["bob-productivity-module-5"] then
Expand Down
18 changes: 6 additions & 12 deletions bobplates/prototypes/technology-alien.lua
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ then
icon_size = 64,
prerequisites = {
"bob-tungsten-processing",
"military-science-pack",
"chemical-science-pack",
"military-3",
},
effects = {
{
Expand All @@ -41,8 +40,7 @@ then
icon = "__bobplates__/graphics/icons/technology/alien-orange-alloy.png",
icon_size = 64,
prerequisites = {
"military-science-pack",
"chemical-science-pack",
"military-3",
"bob-gold-processing",
},
effects = {
Expand Down Expand Up @@ -70,8 +68,7 @@ then
icon_size = 32,
prerequisites = {
"sulfur-processing",
"military-science-pack",
"chemical-science-pack",
"military-3",
},
effects = {
{
Expand All @@ -98,8 +95,7 @@ then
icon_size = 32,
prerequisites = {
"sulfur-processing",
"military-science-pack",
"chemical-science-pack",
"military-3",
},
effects = {
{
Expand All @@ -126,8 +122,7 @@ then
icon_size = 32,
prerequisites = {
"bob-nitrogen-processing",
"military-science-pack",
"chemical-science-pack",
"military-3",
},
effects = {
{
Expand All @@ -154,8 +149,7 @@ then
icon_size = 32,
prerequisites = {
"oil-processing",
"military-science-pack",
"chemical-science-pack",
"military-3",
},
effects = {
{
Expand Down
4 changes: 4 additions & 0 deletions bobtech/prototypes/technology/technology-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ if bobmods.tech.advanced_logistic_science then
"utility-science-pack",
"advanced-logistic-science-pack"
)
bobmods.lib.tech.remove_prerequisite("worker-robots-speed-3", "utility-science-pack")
bobmods.lib.tech.add_prerequisite("worker-robots-speed-3", "advanced-logistic-science-pack")
bobmods.lib.tech.replace_science_pack(
"worker-robots-speed-4",
"utility-science-pack",
Expand All @@ -56,6 +58,8 @@ if bobmods.tech.advanced_logistic_science then
"production-science-pack",
"advanced-logistic-science-pack"
)
bobmods.lib.tech.remove_prerequisite("worker-robots-speed-5", "production-science-pack")
bobmods.lib.tech.add_prerequisite("worker-robots-speed-5", "utility-science-pack")
bobmods.lib.tech.replace_science_pack(
"worker-robots-speed-6",
"production-science-pack",
Expand Down
2 changes: 1 addition & 1 deletion bobvehicleequipment/prototypes/fission-cell.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ data:extend({
prerequisites = {
"vehicle-solar-panel-equipment-1",
"nuclear-power",
"military-science-pack",
"military-3",
},
unit = {
count = 150,
Expand Down
2 changes: 1 addition & 1 deletion bobvehicleequipment/prototypes/generator.lua
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ data:extend({
prerequisites = {
"vehicle-solar-panel-equipment-1",
"nuclear-power",
"military-science-pack",
"military-3",
},
unit = {
count = 150,
Expand Down
6 changes: 3 additions & 3 deletions bobvehicleequipment/prototypes/technology-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ then
{ "alien-science-pack-green", 1 },
{ "alien-science-pack-red", 1 },
}

bobmods.lib.tech.remove_prerequisite("vehicle-battery-equipment-6", "utility-science-pack")
if data.raw.technology["vehicle-solar-panel-equipment-5"] then
data.raw.technology["vehicle-solar-panel-equipment-5"].unit.ingredients = {
{ "science-pack-gold", 1 },
Expand All @@ -87,8 +87,8 @@ then
end
if data.raw.technology["alien-research"] then
bobmods.lib.tech.add_prerequisite("vehicle-big-turret-equipment-4", "alien-research")
bobmods.lib.tech.add_prerequisite("vehicle-fission-cell-equipment-4", "alien-research")
bobmods.lib.tech.add_prerequisite("vehicle-fission-reactor-equipment-4", "alien-research")
bobmods.lib.tech.add_prerequisite("vehicle-fission-cell-equipment-5", "alien-research")
bobmods.lib.tech.add_prerequisite("vehicle-fission-reactor-equipment-5", "alien-research")
bobmods.lib.tech.add_prerequisite("vehicle-shield-equipment-4", "alien-research")
bobmods.lib.tech.add_prerequisite("vehicle-battery-equipment-4", "alien-research")
end
Expand Down
32 changes: 16 additions & 16 deletions bobwarfare/prototypes/technology/ammo.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ data:extend({
icon_size = 32,
prerequisites = {
"bob-bullets",
"chemical-science-pack",
"military-3",
},
effects = {
{
Expand Down Expand Up @@ -82,7 +82,7 @@ data:extend({
icon_size = 32,
prerequisites = {
"bob-bullets",
"chemical-science-pack",
"military-3",
},
effects = {
{
Expand Down Expand Up @@ -117,7 +117,7 @@ data:extend({
icon_size = 32,
prerequisites = {
"bob-bullets",
"chemical-science-pack",
"military-3",
},
effects = {
{
Expand Down Expand Up @@ -152,7 +152,7 @@ data:extend({
icon_size = 32,
prerequisites = {
"bob-bullets",
"chemical-science-pack",
"military-3",
},
effects = {
{
Expand Down Expand Up @@ -187,7 +187,7 @@ data:extend({
icon_size = 32,
prerequisites = {
"bob-bullets",
"chemical-science-pack",
"military-3",
},
effects = {
{
Expand Down Expand Up @@ -222,7 +222,7 @@ data:extend({
icon_size = 32,
prerequisites = {
"bob-bullets",
"chemical-science-pack",
"military-3",
},
effects = {
{
Expand Down Expand Up @@ -290,7 +290,7 @@ data:extend({
icon_size = 32,
prerequisites = {
"bob-shotgun-shells",
"chemical-science-pack",
"military-3",
},
effects = {
{
Expand All @@ -317,7 +317,7 @@ data:extend({
icon_size = 32,
prerequisites = {
"bob-shotgun-shells",
"chemical-science-pack",
"military-3",
},
effects = {
{
Expand All @@ -344,7 +344,7 @@ data:extend({
icon_size = 32,
prerequisites = {
"bob-shotgun-shells",
"chemical-science-pack",
"military-3",
},
effects = {
{
Expand All @@ -371,7 +371,7 @@ data:extend({
icon_size = 32,
prerequisites = {
"bob-shotgun-shells",
"chemical-science-pack",
"military-3",
},
effects = {
{
Expand All @@ -398,7 +398,7 @@ data:extend({
icon_size = 32,
prerequisites = {
"bob-shotgun-shells",
"chemical-science-pack",
"military-3",
},
effects = {
{
Expand All @@ -425,7 +425,7 @@ data:extend({
icon_size = 32,
prerequisites = {
"bob-shotgun-shells",
"chemical-science-pack",
"military-3",
},
effects = {
{
Expand Down Expand Up @@ -502,7 +502,7 @@ data:extend({
icon_size = 64,
prerequisites = {
"bob-laser-rifle-ammo-2",
"chemical-science-pack",
"military-3",
},
effects = {
{
Expand Down Expand Up @@ -1057,7 +1057,7 @@ data:extend({
icon = "__bobwarfare__/graphics/icons/plasma-bullet-magazine.png",
icon_size = 32,
prerequisites = {
"utility-science-pack",
"military-4",
},
effects = {
{
Expand Down Expand Up @@ -1091,7 +1091,7 @@ data:extend({
icon = "__bobwarfare__/graphics/icons/shotgun-plasma-shell.png",
icon_size = 32,
prerequisites = {
"utility-science-pack",
"military-4",
},
effects = {
{
Expand All @@ -1117,7 +1117,7 @@ data:extend({
icon = "__bobwarfare__/graphics/icons/plasma-rocket.png",
icon_size = 32,
prerequisites = {
"utility-science-pack",
"military-4",
},
effects = {
{
Expand Down
1 change: 0 additions & 1 deletion bobwarfare/prototypes/technology/turrets.lua
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ data:extend({
icon_size = 256,
prerequisites = {
"gun-turret",
"logistic-science-pack",
"military-science-pack",
},
effects = {
Expand Down

0 comments on commit 008226a

Please sign in to comment.