• 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
Post marriage HP tooltips
Line 21: Line 21:  
_localized_name_template = "<br />''${localized_name}''",
 
_localized_name_template = "<br />''${localized_name}''",
 
_kekkon_max_template = "Maximum after marriage: ${value}",
 
_kekkon_max_template = "Maximum after marriage: ${value}",
 +
_kekkon_template = "After marriage: ${value}",
 
_nick_template = " (''${nick} ${japanese_nick}'')",
 
_nick_template = " (''${nick} ${japanese_nick}'')",
 
_overridden_category_template = "[[Category:Pages that override data modules]]",
 
_overridden_category_template = "[[Category:Pages that override data modules]]",
Line 227: Line 228:  
function ShipInfoKai:hp()
 
function ShipInfoKai:hp()
 
local hp = Formatting:format_stat(self._ship:hp())
 
local hp = Formatting:format_stat(self._ship:hp())
--local hp_max = self._ship:hp_max()
+
local hp_married = self._ship:hp_married()
--if hp_max then
+
if hp_married then
-- self._vars.hp = Formatting:tooltip(hp, format{self._kekkon_max_template, value = Formatting:format_stat(hp_max)})
+
self._vars.hp = Formatting:tooltip(hp, format{self._kekkon_template, value = Formatting:format_stat(hp_married)})
--else
+
else
 
self._vars.hp = hp
 
self._vars.hp = hp
--end
+
end
 
end
 
end
  
cssedit, gkautomate
7,064

edits

Navigation menu