Skip to content

Commit

Permalink
fix: Moved "Planet Discovery Arrakis" and "Planet Discovery Tiber" te…
Browse files Browse the repository at this point in the history
…chnologies to have "Asteroid Crusher" as prerequisite when the relevant mod is installed.
  • Loading branch information
nicholasgower committed Dec 29, 2024
1 parent df8c1d2 commit 14f733a
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion data-updates.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@

local rro=require("lib.remove-replace-object")
for k, type in ipairs({"furnace"}) do
for i,entity in ipairs(data.raw[type]) do
if entity.surface_conditions then
Expand Down Expand Up @@ -153,3 +153,18 @@ if not(mods["maraxsis"]) then

end

local planets={
"arrakis",
"tiber"
}

for _,planet in pairs(planets) do
if data.raw["technology"]["planet-discovery-"..planet] then
rro.replace(data.raw["technology"]["planet-discovery-"..planet].prerequisites,"space-science-pack","asteroid-collector")
end

end

data.raw["tool"]["space-science-pack"].localised_name={"item-name.lunar-science-pack"}
data.raw["technology"]["space-science-pack"].localised_name={"item-name.lunar-science-pack"}
data.raw["technology"]["space-science-pack"].localised_description={"technology-description.lunar-science-pack"}

0 comments on commit 14f733a

Please sign in to comment.