• 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
no edit summary
Line 127: Line 127:  
end
 
end
 
   
 
   
function NodeInfo:create_as_string(as, as_complete)
+
function NodeInfo:create_as_string(as, as_complete, oneline)
 
     --[=[
 
     --[=[
 
     -- Can give weird results when major contributors to air power are unknown
 
     -- Can give weird results when major contributors to air power are unknown
Line 153: Line 153:  
     end
 
     end
 
     local air_string = air_denial_string .. "/" .. air_parity_string .. "<br>" .. air_superiority_string .. "/" .. air_supremacy_string
 
     local air_string = air_denial_string .. "/" .. air_parity_string .. "<br>" .. air_superiority_string .. "/" .. air_supremacy_string
 +
    if oneline then
 +
      air_string = str:gsub(air_string, "<br>", "")
 +
    end
 
     return air_string
 
     return air_string
 
end
 
end
Line 171: Line 174:  
   
 
   
 
function NodeInfo:insert_item(node, formation, basexp, fleet, as, tags, as_complete, aslb)
 
function NodeInfo:insert_item(node, formation, basexp, fleet, as, tags, as_complete, aslb)
     local as_string = self:create_as_string(as, as_complete)
+
     local as_string = self:create_as_string(as, as_complete, false)
 
     local air_string =  as_string
 
     local air_string =  as_string
 
     if tags.showlb then
 
     if tags.showlb then
       local aslb_string = self:create_as_string(aslb, as_complete)
+
       local aslb_string = self:create_as_string(aslb, as_complete, true)
       air_string = "<span class='explain' title='LBAS: ??/??/??/??'>" .. as_string .. "</span>"
+
       air_string = "<span class='explain' title='LBAS: " .. aslb_string .. "'>" .. as_string .. "</span>"
 
     end
 
     end
 
if basexp == 0 then
 
if basexp == 0 then

Navigation menu