Line 62: |
Line 62: |
| _high_angle_label = "High-angle", | | _high_angle_label = "High-angle", |
| --_plus_fire_director_label = " + Fire Director", | | --_plus_fire_director_label = " + Fire Director", |
− | _library_name_label = "Library name", | + | _card_name_label = "Card name", |
| _list_name_label = "List name", | | _list_name_label = "List name", |
| _comparison_name_label = "Comparison name", | | _comparison_name_label = "Comparison name", |
Line 147: |
Line 147: |
| local alternative_names = {} | | local alternative_names = {} |
| local list_name = self._equipment:list_name() | | local list_name = self._equipment:list_name() |
− | local library_name = self._equipment:library_name() | + | local card_name = self._equipment:card_name() |
| local comparison_name = self._equipment:comparison_name() | | local comparison_name = self._equipment:comparison_name() |
| local battle_name = self._equipment:battle_name() | | local battle_name = self._equipment:battle_name() |
Line 164: |
Line 164: |
| table.insert(alternative_names, format{self._alternative_name_template, label = self._list_name_label, name = list_name, japanese_name = list_japanese_name}) | | table.insert(alternative_names, format{self._alternative_name_template, label = self._list_name_label, name = list_name, japanese_name = list_japanese_name}) |
| end | | end |
− | if library_name then | + | if card_name then |
− | local library_japanese_name = self._equipment:library_japanese_name() | + | local card_japanese_name = self._equipment:card_japanese_name() |
− | local library_reading = self._equipment:library_reading() | + | local card_reading = self._equipment:card_reading() |
− | if library_reading ~= false then | + | if card_reading ~= false then |
− | library_japanese_name = tostring(Formatting:japanese_text(Formatting:format_stat(library_japanese_name), Formatting:format_stat(library_reading))) | + | card_japanese_name = tostring(Formatting:japanese_text(Formatting:format_stat(card_japanese_name), Formatting:format_stat(card_reading))) |
| end | | end |
− | local library_localized_name = self._equipment:library_localized_name() | + | local card_localized_name = self._equipment:card_localized_name() |
− | if library_localized_name then | + | if card_localized_name then |
− | library_name = Formatting:tooltip(Formatting:format_stat(library_name), Formatting:format_stat(library_localized_name)) | + | card_name = Formatting:tooltip(Formatting:format_stat(card_name), Formatting:format_stat(card_localized_name)) |
| else | | else |
− | library_name = Formatting:format_stat(library_name) | + | card_name = Formatting:format_stat(card_name) |
| end | | end |
− | table.insert(alternative_names, format{self._alternative_name_template, label = self._library_name_label, name = library_name, japanese_name = library_japanese_name}) | + | table.insert(alternative_names, format{self._alternative_name_template, label = self._card_name_label, name = card_name, japanese_name = card_japanese_name}) |
| end | | end |
| if comparison_name then | | if comparison_name then |