Open main menu
Home
Random
Nearby
Log in
Settings
About Kancolle Wiki
Disclaimers
Kancolle Wiki
Search
Changes
← Older edit
Newer edit →
Module:KanmusuModule
(view source)
Revision as of 02:20, 13 June 2021
71 bytes added
,
2 years ago
m
no edit summary
Line 193:
Line 193:
local maxModHp = math.min(hp + 2, maxHp)
local maxModHp = math.min(hp + 2, maxHp)
local maxModMarriedHp = math.min(marriedHp + 2, maxHp)
local maxModMarriedHp = math.min(marriedHp + 2, maxHp)
−
local hpSpan1 = tooltip(hp, string.format('%d with HP modernization', maxModHp))
+
local hpSpan1 =
hp == maxModHp and hp or
tooltip(hp, string.format('%d with HP modernization', maxModHp))
−
local hpSpan2 = tooltip(marriedHp, string.format('Married, %d with HP modernization', maxModMarriedHp))
+
local hpSpan2 = tooltip(marriedHp,
marriedHp == maxModMarriedHp and 'Married' or
string.format('Married, %d with HP modernization', maxModMarriedHp))
HPinfo = statLabel .. 'HP [[File:IcoHP.png|HP]]</th>' .. statBox .. hpSpan1 .. '→' .. hpSpan2 .. '</td>'
HPinfo = statLabel .. 'HP [[File:IcoHP.png|HP]]</th>' .. statBox .. hpSpan1 .. '→' .. hpSpan2 .. '</td>'
else
else
がか
cssedit, gkautomate
6,928
edits