Skip to content

Commit

Permalink
Fix for #3 - missing settings for cut duration
Browse files Browse the repository at this point in the history
Not sure how I missed this one, but defaultCutDuration was not added to the options
  • Loading branch information
loki79uk committed Nov 23, 2024
1 parent aa9e2f1 commit 2cc82b1
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
2 changes: 1 addition & 1 deletion LumberJack.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
21 changes: 21 additions & 0 deletions LumberJackSettings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ LumberJack.menuItems = {
'superDistanceValue',
'normalDistanceValue',
'maxCutDistance',
'defaultCutDuration',
'destroyFoliageSize',
'longHoldThreshold',
'doubleTapThreshold',
Expand Down Expand Up @@ -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,
Expand Down
6 changes: 5 additions & 1 deletion modDesc.xml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<modDesc descVersion="92">
<author>loki_79</author>
<version>1.0.0.1</version>
<version>1.0.0.2</version>
<title>
<en>LumberJack</en>
<de>Holzfäller</de>
Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 2cc82b1

Please sign in to comment.