]> git.somenet.org - factorio/some-big-mining-drill.git/commitdiff
RELEASE 2.0.3 - Allow changing settings of normal e-drills too master
authorSomeone <someone@somenet.org>
Wed, 18 Dec 2024 23:25:42 +0000 (00:25 +0100)
committerSomeone <someone@somenet.org>
Wed, 18 Dec 2024 23:25:42 +0000 (00:25 +0100)
changelog.txt
data-final-fixes.lua
info.json
locale/en/en.cfg
settings.lua

index 9aaa8bc99d54562c9d1e7dbd5b35883c49467921..d9e40d6e3f46c98d951a8436ed90f34d735c08ca 100644 (file)
@@ -1,9 +1,16 @@
+---------------------------------------------------------------------------------------------------
+Version: 2.0.3
+Date: 2024-12-19
+
+  Changed:
+    - Allow changing settings of normal e-drills too.
+
 ---------------------------------------------------------------------------------------------------
 Version: 2.0.2
 Date: 2024-11-02
 
   Changed:
-    - Correctly named language data correctly.
+    - Correctly named language data.
 
 ---------------------------------------------------------------------------------------------------
 Version: 2.0.1
index 5d39ad38939a77ce115b3c14593c2c923b02f654..513edf150ecf205a6ebecd4f3714e0bc96c05188 100644 (file)
@@ -1,9 +1,11 @@
 
--- if big-mining-drill exists, modify it.
+if data.raw.item["electric-mining-drill"] then
+    data.raw["mining-drill"]["electric-mining-drill"].resource_searching_radius = 0.49 + settings.startup["some-electric-mining-drill-size"].value
+    data.raw["mining-drill"]["electric-mining-drill"].mining_speed = settings.startup["some-electric-mining-drill-speed"].value
+end
 
+-- if big-mining-drill exists, modify it.
 if data.raw.item["big-mining-drill"] then
-
     data.raw["mining-drill"]["big-mining-drill"].resource_searching_radius = 0.49 + settings.startup["some-big-mining-drill-size"].value
     data.raw["mining-drill"]["big-mining-drill"].mining_speed = settings.startup["some-big-mining-drill-speed"].value
-
 end
index 380ab08605b5b08a64478ff9c72b730ceae5c490..79b489d71fcc40c6c1a50d2b8bf5e6ee8c99628d 100644 (file)
--- a/info.json
+++ b/info.json
@@ -1,10 +1,10 @@
 {
     "name": "some-big-mining-drill",
-    "version": "2.0.2",
-    "title": "Someone's big mining-drill [Space Age]",
+    "version": "2.0.3",
+    "title": "Some mining-drill settings",
     "author": "someone1337",
     "homepage": "https://git.somenet.org/factorio/some-big-mining-drill.git",
-    "description": "[Space Age] Expose size and speed settings of big mining drill as startup options. Allows you to change range and speed of big mining drills. Existing drills may need to be marked for deconstruction and immediately unmarked for deconstruction to correctly apply the mining range changes.",
+    "description": "Expose size and speed settings of big mining drill and electric mining drill as startup options. Allows you to change range and speed of mining drills. Existing drills may need to be marked for deconstruction and immediately unmarked for deconstruction to correctly apply the mining range changes.",
     "factorio_version": "2.0",
     "dependencies": [
         "base>=2.0.0"
index bb212590762fe22a2c23216bbff8182604a53b2d..79dababe185dc35148c068759383a5727b300f87 100644 (file)
@@ -1,4 +1,6 @@
 
 [mod-setting-name]
-some-big-mining-drill-size=Resource radius
-some-big-mining-drill-speed=Mining speed
+some-electric-mining-drill-size=Electric miner resource radius
+some-electric-mining-drill-speed=Electric miner mining speed
+some-big-mining-drill-size=Big miner resource radius
+some-big-mining-drill-speed=Big miner mining speed
index ecc849006d2a1cb4a0a3ea9b4c5c35c4f3cf28c6..664bec969f5189e1aa8ba71ed291d592bb978ca9 100644 (file)
@@ -1,18 +1,34 @@
-data:extend({\r
-    {\r
-        type = "int-setting",\r
-        name = "some-big-mining-drill-size",\r
-        setting_type = "startup",\r
-        default_value = 6,\r
-        minimum_value = 3,\r
-        maximum_value = 200,\r
-    },\r
-    {\r
-        type = "double-setting",\r
-        name = "some-big-mining-drill-speed",\r
-        setting_type = "startup",\r
-        default_value = 2.5,\r
-        minimum_value = 1,\r
-        maximum_value = 100,\r
-    }\r
-})\r
+data:extend({
+    {
+        type = "int-setting",
+        name = "some-electric-mining-drill-size",
+        setting_type = "startup",
+        default_value = 2,
+        minimum_value = 1,
+        maximum_value = 200,
+    },
+    {
+        type = "double-setting",
+        name = "some-electric-mining-drill-speed",
+        setting_type = "startup",
+        default_value = 0.5,
+        minimum_value = 0.25,
+        maximum_value = 100,
+    },
+    {
+        type = "int-setting",
+        name = "some-big-mining-drill-size",
+        setting_type = "startup",
+        default_value = 6,
+        minimum_value = 3,
+        maximum_value = 200,
+    },
+    {
+        type = "double-setting",
+        name = "some-big-mining-drill-speed",
+        setting_type = "startup",
+        default_value = 2.5,
+        minimum_value = 1,
+        maximum_value = 100,
+    }
+})