- Welcome to the Kancolle Wiki!
- If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord
Changes
Jump to navigation
Jump to search
Line 1:
Line 1:
+
+
Line 162:
Line 164:
− +
Line 287:
Line 289:
+
+
+
+
+
+
+
+
Fix build time
local format = require("Module:StringInterpolation").format
local BaseData = require("Module:BaseData")
local BaseData = require("Module:BaseData")
local ShipData = BaseData()
local ShipData = BaseData()
return self._build_time
return self._build_time
elseif self._build_time then
elseif self._build_time then
return os.date(self._build_time * 60)
return format("${hours:2}:${minutes:2}:${seconds:2}", self:format_time(self._build_time * 60))
else
else
return "??"
return "??"
[20] = "Submarine Tender",
[20] = "Submarine Tender",
})
})
function ShipData:format_time(seconds)
return {
hours = math.floor(seconds / 3600),
minutes = math.floor(seconds / 60) % 60,
seconds = seconds % 60,
}
end
function ShipData:create(ship)
function ShipData:create(ship)