alle keno city bulds + zip buildtool
This commit is contained in:
+4
-21
@@ -1,4 +1,4 @@
|
||||
-- Variablen
|
||||
-- Variablen
|
||||
|
||||
Produktion = {}
|
||||
|
||||
@@ -42,13 +42,7 @@ end
|
||||
function Produktion:onLoad(savegame)
|
||||
local xmlFillType = self.xmlFile:getValue("placeable.produktion#fillType", Produktion.fillType)
|
||||
local xmlAmountPerHour = self.xmlFile:getValue("placeable.produktion#amountPerHour", Produktion.amountPerHour)
|
||||
if Produktion.debug then
|
||||
local debugCapacity = self.xmlFile:getValue("placeable.silo.storages.storage(0)#capacity")
|
||||
print(Produktion.debugPrefix .. "XML-Test amount raw: " .. tostring(xmlAmountPerHour))
|
||||
print(Produktion.debugPrefix .. "XML-Test capacity: " .. tostring(debugCapacity))
|
||||
end
|
||||
|
||||
self.produktionFillType = xmlFillType
|
||||
self.produktionFillType = xmlFillType
|
||||
if self.produktionFillType == nil or self.produktionFillType == "" then
|
||||
self.produktionFillType = Produktion.fillType
|
||||
end
|
||||
@@ -57,8 +51,6 @@ function Produktion:onLoad(savegame)
|
||||
if self.produktionAmountPerHour == nil then
|
||||
self.produktionAmountPerHour = Produktion.amountPerHour
|
||||
end
|
||||
|
||||
self.produktionFirstUpdatePrinted = false
|
||||
self.produktionAnimationSpeed = 0
|
||||
self.produktionAnimationTargetSpeed = 0
|
||||
self.produktionWasFull = false
|
||||
@@ -72,7 +64,6 @@ function Produktion:onLoad(savegame)
|
||||
|
||||
if Produktion.debug then
|
||||
print(Produktion.debugPrefix .. "Konfiguration: " .. tostring(self.produktionFillType) .. " / " .. tostring(self.produktionAmountPerHour) .. " L/h")
|
||||
print(Produktion.debugPrefix .. "Produktion.lua wurde geladen")
|
||||
end
|
||||
end
|
||||
|
||||
@@ -82,7 +73,7 @@ function Produktion:onFinalizePlacement()
|
||||
end
|
||||
|
||||
if Produktion.debug then
|
||||
print(Produktion.debugPrefix .. "Mine platziert, Produktion aktiv")
|
||||
print(Produktion.debugPrefix .. "Placeable aktiv: " .. tostring(self.produktionFillType))
|
||||
end
|
||||
end
|
||||
|
||||
@@ -90,15 +81,7 @@ end
|
||||
-- Update
|
||||
|
||||
function Produktion:onUpdate(dt)
|
||||
if self.produktionFirstUpdatePrinted ~= true then
|
||||
self.produktionFirstUpdatePrinted = true
|
||||
|
||||
if Produktion.debug then
|
||||
print(Produktion.debugPrefix .. "onUpdate läuft")
|
||||
end
|
||||
end
|
||||
|
||||
local timeScale = 1
|
||||
local timeScale = 1
|
||||
|
||||
if g_currentMission ~= nil and g_currentMission.missionInfo ~= nil and g_currentMission.missionInfo.timeScale ~= nil then
|
||||
timeScale = g_currentMission.missionInfo.timeScale
|
||||
|
||||
Reference in New Issue
Block a user