-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLongerLogCuts.lua
53 lines (39 loc) · 1.33 KB
/
LongerLogCuts.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
-- Longer Log Cuts for Farming Simulator 17
-- @description: This increases the maximum length of wood harvester cuts from 8m to 15m.
-- @author: Slivicon
-- Change Log stored in modDesc.xml
--
LongerLogCuts = {};
local modItem = ModsUtil.findModItemByModName(g_currentModName);
local LongerLogCuts_mt = Class(LongerLogCuts, Mission00);
LongerLogCuts.version = (modItem and modItem.version) and modItem.version or "?.?.?";
function LongerLogCuts:new(baseDirectory, customMt)
local mt = customMt;
if mt == nil then
mt = LongerLogCuts_mt;
end;
local self = LongerLogCuts:superClass():new(baseDirectory, mt);
return self;
end;
function LongerLogCuts:doPostLoad(savegame)
local cutMax = self.cutLengthMax;
local newMax = 15;
if cutMax ~= nil and cutMax < newMax then
self.cutLengthMax = newMax;
end;
end;
function LongerLogCuts:loadMap(name)
end;
function LongerLogCuts:deleteMap()
end;
function LongerLogCuts:keyEvent(unicode, sym, modifier, isDown)
end;
function LongerLogCuts:mouseEvent(posX, posY, isDown, isUp, button)
end;
function LongerLogCuts:draw()
end;
function LongerLogCuts:update(dt)
end;
addModEventListener(LongerLogCuts);
WoodHarvester.postLoad = Utils.appendedFunction(WoodHarvester.postLoad, LongerLogCuts.doPostLoad);
print(string.format("Script loaded: LongerLogCuts.lua (v%s)", LongerLogCuts.version));