Skip to content

Commit 0b82e5a

Browse files
committed
Update 21
1 parent b3ec1e2 commit 0b82e5a

File tree

5 files changed

+19
-4
lines changed

5 files changed

+19
-4
lines changed

config.lua

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Config.geothermalSpawnRules = settings.startup["geothermal-spawn-rules"].value
1616

1717
Config.thermalWagon = settings.startup["thermal-wagon"].value
1818

19+
Config.byproductRate = settings.startup["geothermal-byproduct-rate"].value
20+
1921
Config.retrogenDistance = -1
2022

2123
Config.seedMixin = 7865

info.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"author": "Reika",
66
"contact": "",
77
"homepage": "",
8-
"factorio_version" : "0.18",
8+
"factorio_version": "0.18",
99
"description": "Adds magma sources and geothermal generators.",
1010
"dependencies": ["base", "DragonIndustries", "? alien-biomes"]
11-
}
11+
}

locale/en/names.cfg

+4
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,14 @@ geothermal-exchange-2-flipped=High-Efficiency Heat Exchange (Flipped Inputs)
3131
geothermal=Geothermal Energy
3232
geothermal-filtering=Geothermal Filtering
3333
geothermal-2=High-Efficiency Geothermal Energy
34+
insulated-wagon=Insulated Fluid Wagon
3435

3536

3637
[technology-description]
3738
geothermal=Extracting energy from deep heated rock and water welling up from within.
3839
geothermal-2=A refinement on the previous, allowing for better power production.
3940
geothermal-filtering=Removing trace minerals from the extracted water to simplify processing.
41+
insulated-wagon=A thermally insulated fluid wagon, to allow the transport of heated liquids with no losses.
4042

4143

4244
[item-group-name]
@@ -52,6 +54,7 @@ geothermal-size=Generation Patch Size
5254
geothermal-color=Enable colored geothermal patches
5355
geothermal-spawn-rules=Geothermal biome rules
5456
thermal-wagon=Enable Insulated Fluid Wagon
57+
geothermal-byproduct-rate=Byproduct generation rate
5558

5659

5760
[mod-setting-description]
@@ -63,6 +66,7 @@ geothermal-size=A multiplier to control how large geothermal regions are. Has no
6366
geothermal-color=AlienBiomes compatibility; Whether the geothermal patches spawning in colored magma biomes take on that color, as well as a chemical impurity representing that color.
6467
geothermal-spawn-rules=Which biomes the geothermal patches are permitted to spawn in. Note that they have hardcoded per-biome frequencies as well, and restricting to biomes that do not actually exist will be the same as selecting "everywhere".
6568
thermal-wagon=Whether a thermally insulated version of the fluid wagon should be enabled, to permit carrying heated water without it losing its temperature.
69+
geothermal-byproduct-rate=A multiplier for the yield of byproducts from AlienBiomes colored geothermal patches.
6670

6771

6872
[string-mod-setting]

prototypes/fluid.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ local prod2 = {
9696
}
9797

9898
if params.byproduct then
99-
table.insert(prod1, {type = "item", name = params.byproduct, probability = 0.0005, amount = 1})
100-
table.insert(prod2, {type = "item", name = params.byproduct, probability = 0.0003*highConsumeMultiply, amount = 1})
99+
table.insert(prod1, {type = "item", name = params.byproduct, probability = 0.002*Config.byproductRate, amount = 1})
100+
table.insert(prod2, {type = "item", name = params.byproduct, probability = 0.0012*highConsumeMultiply*Config.byproductRate, amount = 1})
101101
end
102102

103103
data:extend(

settings.lua

+9
Original file line numberDiff line numberDiff line change
@@ -66,4 +66,13 @@ data:extend({
6666
default_value = true,
6767
order = "r",
6868
},
69+
{
70+
type = "double-setting",
71+
name = "geothermal-byproduct-rate",
72+
setting_type = "startup",
73+
default_value = 1,
74+
order = "r",
75+
minimum_value = 0.125,
76+
maximum_value = 5,
77+
},
6978
})

0 commit comments

Comments
 (0)