Skip to content

Commit

Permalink
sound: Steal music from gleba and vulcanus. Resolves #15
Browse files Browse the repository at this point in the history
  • Loading branch information
notnotmelon committed Dec 15, 2024
1 parent db8ec7b commit efce4e3
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Your submarine descends for what feels like hours. Light levels slowly drop unti

While exploring the trench, you come across a geothermal vent. The magma appears to have similar composition as that found on Vulcanus. Perhaps it can be processed into basic metals?

![](https://files.catbox.moe/89en49.png)
![](https://files.catbox.moe/3zva7p.png)

As you are leaving, your sonar systems sense some underwater movement in the distance. But the equipment must be faulty, it's impossible for anything to live down here. Right?

Expand Down
23 changes: 22 additions & 1 deletion data-updates.lua
Original file line number Diff line number Diff line change
Expand Up @@ -177,4 +177,25 @@ add_quality_factoriopedia_info(data.raw["roboport"]["service_station"], {
local consumption_per_second = maraxsis.atmosphere_consumption(quality_level)
return tostring(consumption_per_second) .. "/s"
end}
})
})

-- steal gleba music
local function copy_music(source_planet, target_planet)
assert(source_planet)
assert(target_planet)
for _, music in pairs(data.raw["ambient-sound"]) do
if music.planet == source_planet.name or (music.track_type == "hero-track" and music.name:find(source_planet.name)) then
local new_music = table.deepcopy(music)
new_music.name = music.name .. "-" .. target_planet.name
new_music.planet = target_planet.name
if new_music.track_type == "hero-track" then
new_music.track_type = "main-track"
new_music.weight = 10
end
data:extend {new_music}
end
end
end

copy_music(data.raw["planet"]["gleba"], data.raw["planet"]["maraxsis"])
copy_music(data.raw["planet"]["vulcanus"], data.raw["planet"]["maraxsis-trench"])

0 comments on commit efce4e3

Please sign in to comment.