From 2cc82b1d72fac513cc6edb743b209d260393e47d Mon Sep 17 00:00:00 2001 From: Loki_79 <76516343+loki79uk@users.noreply.github.com> Date: Sat, 23 Nov 2024 12:22:44 +0000 Subject: [PATCH] Fix for #3 - missing settings for cut duration Not sure how I missed this one, but defaultCutDuration was not added to the options --- LumberJack.lua | 2 +- LumberJackSettings.lua | 21 +++++++++++++++++++++ modDesc.xml | 6 +++++- 3 files changed, 27 insertions(+), 2 deletions(-) diff --git a/LumberJack.lua b/LumberJack.lua index 681d8be..3e2b8e6 100644 --- a/LumberJack.lua +++ b/LumberJack.lua @@ -14,7 +14,7 @@ LumberJack.superDistanceValue = 12 LumberJack.normalDistanceValue = 3 LumberJack.minCutDistance = 0.1 LumberJack.maxCutDistance = 4.0 -LumberJack.defaultCutDuration = 4 +LumberJack.defaultCutDuration = 3 LumberJack.destroyFoliageSize = 2 LumberJack.showDebug = false diff --git a/LumberJackSettings.lua b/LumberJackSettings.lua index 3c6b202..46f43f8 100644 --- a/LumberJackSettings.lua +++ b/LumberJackSettings.lua @@ -11,6 +11,7 @@ LumberJack.menuItems = { 'superDistanceValue', 'normalDistanceValue', 'maxCutDistance', + 'defaultCutDuration', 'destroyFoliageSize', 'longHoldThreshold', 'doubleTapThreshold', @@ -191,6 +192,26 @@ LumberJack.SETTINGS.maxCutDistance = { "12 "..g_i18n:getText("text_METRE") } } +LumberJack.SETTINGS.defaultCutDuration = { +-- LumberJack.defaultCutDuration = 4 + ['default'] = 4, + ['permission'] = 'chainsawSettings', + ['values'] = {0.5,1.0,1.5,2,2.5,3.0,3.5,4.0,4.5,5.0,5.5,6.0}, + ['strings'] = { + "0.5 "..g_i18n:getText("text_SECOND"), + "1.0 "..g_i18n:getText("text_SECOND"), + "1.5 "..g_i18n:getText("text_SECOND"), + "2.0 "..g_i18n:getText("text_SECOND"), + "2.5 "..g_i18n:getText("text_SECOND"), + "3.0 "..g_i18n:getText("text_SECOND"), + "3.5 "..g_i18n:getText("text_SECOND"), + "4.0 "..g_i18n:getText("text_SECOND"), + "4.5 "..g_i18n:getText("text_SECOND"), + "5.0 "..g_i18n:getText("text_SECOND"), + "5.5 "..g_i18n:getText("text_SECOND"), + "6.0 "..g_i18n:getText("text_SECOND") + } +} LumberJack.SETTINGS.longHoldThreshold = { -- LumberJack.longHoldThreshold = 1000 ['default'] = 1, diff --git a/modDesc.xml b/modDesc.xml index c9671a3..0499895 100644 --- a/modDesc.xml +++ b/modDesc.xml @@ -1,7 +1,7 @@ loki_79 - 1.0.0.1 + 1.0.0.2 <en>LumberJack</en> <de>Holzfäller</de> @@ -23,6 +23,8 @@ Features: - Chainsaw can remove stumps (grind for 3 seconds) Changelog: +v1.0.0.2 +- Added missing chainsaw cutting speed to the settings v1.0.0.1 - Fixed an error that would prevent the mod starting on the Asian Map @@ -45,6 +47,8 @@ Merkmale: - Kettensäge kann Stümpfe entfernen (3 Sekunden schleifen) Changelog: +v1.0.0.2 +- Fehlende Kettensägenschnittgeschwindigkeit zu den Einstellungen hinzugefügt v1.0.0.1 - Fehler behoben, der den Start der Mod auf der asiatischen Karte verhinderte