Skip to content

Commit

Permalink
other: Added support for Tiered-Solar-System. https://mods.factorio.c…
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholasgower committed Dec 30, 2024
1 parent ad9cade commit 95c88f9
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 8 deletions.
23 changes: 20 additions & 3 deletions data-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,23 @@ for _,planet in pairs(planets) do

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"}
--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"}

data.raw["tool"]["space-science-pack"].icon="__planet-muluna__/graphics/icons/sasp-space-science-pack.png"
data.raw["recipe"]["space-science-pack"].icon="__planet-muluna__/graphics/icons/sasp-space-science-pack.png"
data.raw["tool"]["space-science-pack"].icons=nil

local nauvis=data.raw["planet"]["nauvis"]


if mods["Tiered-Solar-System"] then
data.raw["planet"]["muluna"].orientation=nauvis.orientation-0.01
data.raw["planet"]["muluna"].distance=nauvis.distance*0.90
else
data.raw["planet"]["muluna"].orientation=nauvis.orientation-0.02
data.raw["planet"]["muluna"].distance=nauvis.distance*1.0
end


3 changes: 2 additions & 1 deletion info.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"hurricane-graphics",
"? maraxsis",
"? MT-lib",
"! external-rocket-parts"
"! external-rocket-parts",
"? Tiered-Solar-System >= 1.1.3"
],
"quality_required": true,
"rail_bridges_required": false,
Expand Down
2 changes: 2 additions & 0 deletions locale/de/locale.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ muluna=Muluna
[entity-name]
space-boiler=Weltraumkessel



[technology-name]
rocket-part-productivity-vulcanus=Produktivität für Raketenbauteile über Vulcanus
rocket-part-productivity-fulgora=Produktivität für Raketenbauteile über Fulgora
Expand Down
10 changes: 6 additions & 4 deletions prototypes/planet/planet.lua
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,12 @@ end
local muluna= {
type="planet",
name="muluna",
distance=nauvis.distance*1.0,

draw_orbit=false,
solar_power_in_space=nauvis.solar_power_in_space,
auto_save_on_first_trip=true,
order=nauvis.order .. "a",
magnitude=nauvis.magnitude*3/4,
orientation=nauvis.orientation-0.02,

-- icons={
-- {
-- icon="__planet-muluna__/graphics/moon-icon.png",
Expand All @@ -89,7 +88,7 @@ local muluna= {
starmap_icon="__planet-muluna__/graphics/moon-icon.png",
starmap_icon_size = 1920,
subgroup=nauvis.subgroup,

magnitude=nauvis.magnitude*3/4,
pollutant_type="radiation",
surface_properties={
["solar-power"]=100,
Expand All @@ -99,6 +98,7 @@ local muluna= {
},
map_gen_settings=map_gen
}
--Muluna's position is defined relative to Nauvis in data-updates.lua.
local bot_power=0.2

muluna.surface_properties["gravity"]=muluna.surface_properties["pressure"]/100*bot_power
Expand All @@ -120,4 +120,6 @@ if settings.startup["override-space-connection"]==true then
end




data:extend{muluna,muluna_connection}

0 comments on commit 95c88f9

Please sign in to comment.