Line 67: |
Line 67: |
| _nickname_template = "''${nick} ${japanese_nick}''", | | _nickname_template = "''${nick} ${japanese_nick}''", |
| _kekkon_max_template = "Maximum after marriage: ${value}", | | _kekkon_max_template = "Maximum after marriage: ${value}", |
| + | _kekkon_template = "After marriage: ${value}", |
| _item_class = Ship, | | _item_class = Ship, |
| }) | | }) |
Line 196: |
Line 197: |
| function EliteShipsKai:hp(ship) | | function EliteShipsKai:hp(ship) |
| local hp = ship:hp() | | local hp = ship:hp() |
− | return {values = {value = Formatting:format_stat(hp)}, bg_color = self:get_bg_color(self._cell_color.hp, hp, self._args.hp_operator, self._args.hp_outstanding, self._args.hp_good, self._args.hp_bad), text_align = self._center_align} | + | local hp_married = ship:hp_married() |
| + | if hp_married then |
| + | return {values = {value = Formatting:tooltip(Formatting:format_stat(hp), format{self._kekkon_template, value = Formatting:format_stat(hp_married)})}, bg_color = self:get_bg_color(self._cell_color.hp, hp, self._args.hp_operator, self._args.hp_outstanding, self._args.hp_good, self._args.hp_bad), text_align = self._center_align} |
| + | else |
| + | return {values = {value = Formatting:format_stat(hp)}, bg_color = self:get_bg_color(self._cell_color.hp, hp, self._args.hp_operator, self._args.hp_outstanding, self._args.hp_good, self._args.hp_bad), text_align = self._center_align} |
| + | end |
| end | | end |
| | | |