• 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 50: Line 50:     
local function formatHp(hps, maxHp)
 
local function formatHp(hps, maxHp)
   return string.format('{{tooltip|~/%s|%s}}', maxHp, U.ijoin(hps, ', '))
+
   local minHp = U.imin(hps)
 +
  if minHp / maxHp <= 0.5 then
 +
    return string.format('{{color|red|{{tooltip|~/%s|%s}}}}', maxHp, U.ijoin(hps, ', '))
 +
  else
 +
    return string.format('{{tooltip|~/%s|%s}}', maxHp, U.ijoin(hps, ', '))
 +
  end
 
end
 
end
  
cssedit, gkautomate
7,064

edits

Navigation menu