Changes

Undo revision 734611 by Ckwng (talk)
Line 22: Line 22:  
_kekkon_max_template = "Maximum after marriage: ${value}",
 
_kekkon_max_template = "Maximum after marriage: ${value}",
 
_kekkon_template = "After marriage: ${value}",
 
_kekkon_template = "After marriage: ${value}",
_remodel_level_stat_value_template = "At remodel level: ${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 266: Line 265:  
evasion_max = self._ship:evasion_max()
 
evasion_max = self._ship:evasion_max()
 
end
 
end
 +
local result = Formatting:format_stat_with_max(evasion, evasion_max)
 
if not overridden and evasion and evasion_max then
 
if not overridden and evasion and evasion_max then
    local remodel_level = self._ship:remodel_level()
+
result = Formatting:tooltip(result, format{self._kekkon_max_template, value = Formatting:format_stat(self._ship:evasion_leveled(155))})
    if self._ship.remodel_level() then
  −
        evasion = Formatting:tooltip(evasion, format{self._remodel_level_stat_value_template, value = Formatting:format_stat(self._ship:evasion_leveled(remodel_level))})
  −
    end
  −
evasion_max = Formatting:tooltip(evasion_max, format{self._kekkon_max_template, value = Formatting:format_stat(self._ship:evasion_leveled(155))})
   
end
 
end
local result = Formatting:format_stat_with_max(evasion, evasion_max)
   
if overridden then
 
if overridden then
 
result = result .. self._overridden_category_template
 
result = result .. self._overridden_category_template
Anonymous user