BarrelWeightTweaker 0.2.0
- configurable weight
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
local barrel_weight = settings.startup["barrel-weight-tweaker-barrel-weight-kg"].value * kg
|
||||
|
||||
for _, item in pairs(data.raw.item) do
|
||||
if item.name:match("%-barrel$") then
|
||||
item.weight = barrel_weight
|
||||
end
|
||||
end
|
||||
@@ -0,0 +1 @@
|
||||
data.raw.item["barrel"].weight = settings.startup["barrel-weight-tweaker-barrel-weight-kg"].value * kg
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "BarrelWeightTweaker",
|
||||
"version": "0.2.0",
|
||||
"title": "Barrel Weight Tweaker",
|
||||
"author": "ddidderr",
|
||||
"description": "Makes the weight of barrels configurable for rocket capacity tuning. (default 1 kg)",
|
||||
"factorio_version": "2.0",
|
||||
"dependencies": [
|
||||
"base >= 2.0"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
[mod-setting-name]
|
||||
barrel-weight-tweaker-barrel-weight-kg=Barrel weight
|
||||
|
||||
[mod-setting-description]
|
||||
barrel-weight-tweaker-barrel-weight-kg=Weight in kg for any kind of barrels. Higher values reduce how many barrels fit in a rocket.
|
||||
@@ -0,0 +1,11 @@
|
||||
data:extend({
|
||||
{
|
||||
type = "double-setting",
|
||||
name = "barrel-weight-tweaker-barrel-weight-kg",
|
||||
setting_type = "startup",
|
||||
default_value = 1,
|
||||
minimum_value = 0,
|
||||
maximum_value = 10000,
|
||||
order = "a"
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user