From 8cf9f6dd6f31aab9fac205b9413a1eb3517c603e Mon Sep 17 00:00:00 2001 From: npc-strider Date: Sat, 5 Jan 2019 13:36:07 +0800 Subject: [PATCH] options for latest 0.17 balancing --- 017_science/data-updates.lua | 61 +++++++++++++++++++-------------- 017_science/info.json | 2 +- 017_science/locale/en/base.cfg | 12 ++++++- 017_science/settings.lua | 21 ++++++++++++ mod-settings.dat | Bin 0 -> 163 bytes 5 files changed, 68 insertions(+), 28 deletions(-) create mode 100644 017_science/settings.lua create mode 100644 mod-settings.dat diff --git a/017_science/data-updates.lua b/017_science/data-updates.lua index c0ddb98..e5324f5 100644 --- a/017_science/data-updates.lua +++ b/017_science/data-updates.lua @@ -17,6 +17,9 @@ for _, mod in pairs(data.raw.module) do end end +--HUGE THANKS to Dimava for the following changes +--Added options for some changes (for modded users) + --increase belt speed to 15x for _, belt in pairs(data.raw["splitter"]) do if (belt.speed * 32) % 1 == 0 and belt.speed * 32 < 8 then @@ -34,39 +37,45 @@ for _, belt in pairs(data.raw["underground-belt"]) do end end ---simplify drill stats -data.raw["mining-drill"]["burner-mining-drill"].mining_speed = 0.25 -data.raw["mining-drill"]["burner-mining-drill"].mining_power = 3 +if settings.startup["017-drill"].value then + --simplify drill stats + data.raw["mining-drill"]["burner-mining-drill"].mining_speed = 0.25 + data.raw["mining-drill"]["burner-mining-drill"].mining_power = 3 ---simplify ore hardness -for _, ore in pairs(data.raw.resource) do - if ore.minable.hardness == 0.9 then - ore.minable.hardness = 1 + --simplify ore hardness + for _, ore in pairs(data.raw.resource) do + if ore.minable.hardness == 0.9 then + ore.minable.hardness = 1 + end end + data.raw.resource.stone.minable.hardness = 1 end -data.raw.resource.stone.minable.hardness = 1 ---decrease smelting times -for _, recipe in pairs(data.raw.recipe) do - if recipe.category=="smelting" then - if recipe.energy_required then - if (recipe.energy_required / 3.5) % 1 == 0 then - recipe.energy_required = recipe.energy_required * 3.2 / 3.5 +if settings.startup["017-smelting"].value then + --decrease smelting times + for _, recipe in pairs(data.raw.recipe) do + if recipe.category=="smelting" then + if recipe.energy_required then + if (recipe.energy_required / 3.5) % 1 == 0 then + recipe.energy_required = recipe.energy_required * 3.2 / 3.5 + end + else + if (recipe.normal.energy_required / 3.5) % 1 == 0 then + recipe.normal.energy_required = recipe.normal.energy_required * 3.2 / 3.5 + end + if (recipe.expensive.energy_required / 3.5) % 1 == 0 then + recipe.expensive.energy_required = recipe.expensive.energy_required * 3.2 / 3.5 + end end - else - if (recipe.normal.energy_required / 3.5) % 1 == 0 then - recipe.normal.energy_required = recipe.normal.energy_required * 3.2 / 3.5 - end - if (recipe.expensive.energy_required / 3.5) % 1 == 0 then - recipe.expensive.energy_required = recipe.expensive.energy_required * 3.2 / 3.5 - end end end end ---remove assembling-machine ingredient_count limits -for _, machine in pairs(data.raw["assembling-machine"]) do - if machine.ingredient_count < 10 then - machine.ingredient_count = 10 +if settings.startup["017-assem-lim"].value then + --remove assembling-machine ingredient_count limits + for _, machine in pairs(data.raw["assembling-machine"]) do + if machine.ingredient_count < 10 then + machine.ingredient_count = 10 + end end -end +end \ No newline at end of file diff --git a/017_science/info.json b/017_science/info.json index 75d3095..cce3032 100644 --- a/017_science/info.json +++ b/017_science/info.json @@ -1,6 +1,6 @@ { "name": "017_science", - "version": "0.0.4", + "version": "0.0.5", "factorio_version": "0.16", "title": "0.17 science conversion", "author": "npc_strider(morley376)", diff --git a/017_science/locale/en/base.cfg b/017_science/locale/en/base.cfg index 8115da1..f26f548 100644 --- a/017_science/locale/en/base.cfg +++ b/017_science/locale/en/base.cfg @@ -2,4 +2,14 @@ science-pack-1=Automation science pack science-pack-2=Logistics science pack science-pack-3=Chemical science pack -high-tech-science-pack=Utility science pack \ No newline at end of file +high-tech-science-pack=Utility science pack + +[mod-setting-name] +017-drill=Ore hardness simplification +017-smelting=Reduce smelting time +017-assem-lim=Remove assembler item limit + +[mod-setting-description] +017-drill=(Default enabled) Toggle FFF-266 mining changes (removed hardness). This mod makes all vanilla ore hardness = 1 and makes the burner-mining-drill mining_power = 3, which may break modded ore gating. +017-smelting=(Default enabled) Toggle V's smelting changes (https://forums.factorio.com/viewtopic.php?t=64219#p392508). This mod may break ratios for modded recipes using vanilla and modded items. +017-assem-lim=(Default enabled) Toggle the assembly limit removal. This mod affects all assembling-machines and may affect modded crafting stations based on this entity, which may use the limit as a form of gating. \ No newline at end of file diff --git a/017_science/settings.lua b/017_science/settings.lua new file mode 100644 index 0000000..5b2f98a --- /dev/null +++ b/017_science/settings.lua @@ -0,0 +1,21 @@ +data:extend( +{ + { + type = "bool-setting", + name = "017-drill", + setting_type = "startup", + default_value = true + }, + { + type = "bool-setting", + name = "017-smelting", + setting_type = "startup", + default_value = true + }, + { + type = "bool-setting", + name = "017-assem-lim", + setting_type = "startup", + default_value = true + } +}) \ No newline at end of file diff --git a/mod-settings.dat b/mod-settings.dat new file mode 100644 index 0000000000000000000000000000000000000000..3ad3dc88c81a358b3e8cb951f6fc10d07a3ad433 GIT binary patch literal 163 zcmZXL!3u*g5JX2LNWqFf5~%dx_oTQ;U}I%B@%v3|J!K99Gj9eM@djYfW=E&dNlg1c zK3~&pohk*(J{UA*V-ClOnj9VlFXEXi)EA_IIQng^=pbo}K9F7c`*HbwX}sH=#3m*A F^(TyjA&me4 literal 0 HcmV?d00001