Changes

m
no edit summary
Line 52: Line 52:  
     math.randomseed(os.time())
 
     math.randomseed(os.time())
 
     math.random(); math.random(); math.random()
 
     math.random(); math.random(); math.random()
     self._id = self._args["route"]:gsub("[^%w]", "") .. self._args["hq"] .. tostring(math.random(1000000,9999999))
+
     self._id = self._args["route"]:gsub("[^%w]", "") .. (self._args["hq"] or "0") .. tostring(math.random(1000000,9999999))
 
end
 
end
   Line 196: Line 196:  
function NanaminFleetKai:add_extras()
 
function NanaminFleetKai:add_extras()
 
     local elos = string.format("%.2f", self._elos - (self._hq_lvl * 0.61))
 
     local elos = string.format("%.2f", self._elos - (self._hq_lvl * 0.61))
 +
    if not self._args["hq"] then elos = elos .. " #ERROR:MissingHQ" end
 
     local content = "Effective Line of Sight: " .. elos .. " // Fighter Power: " .. tostring(self._fighter_power)
 
     local content = "Effective Line of Sight: " .. elos .. " // Fighter Power: " .. tostring(self._fighter_power)
 
     self:insert_extra(content)
 
     self:insert_extra(content)
48

edits