Line 166: |
Line 166: |
| end | | end |
| | | |
− | function ShipData:card() | + | function ShipData:card(hd) |
| if self._card ~= nil then | | if self._card ~= nil then |
| return self._card | | return self._card |
Line 175: |
Line 175: |
| local api_id, simple_naming = self:api_id(), self:simple_naming() | | local api_id, simple_naming = self:api_id(), self:simple_naming() |
| if not api_id and not self:type() then | | if not api_id and not self:type() then |
− | return Formatting:ship_card(nil, self:unique_name(), nil, self._card_extension, true) | + | return Formatting:ship_card(nil, self:unique_name(), nil, self._card_extension, true, hd) |
| elseif api_id or simple_naming then | | elseif api_id or simple_naming then |
− | return Formatting:ship_card(api_id, self:unique_name(), self:type(), self._card_extension, simple_naming) | + | return Formatting:ship_card(api_id, self:unique_name(), self:type(), self._card_extension, simple_naming, hd) |
| end | | end |
| end | | end |
| | | |
− | function ShipData:card_damaged() | + | function ShipData:card_damaged(hd) |
| if self._card_damaged ~= nil then | | if self._card_damaged ~= nil then |
| return self._card_damaged | | return self._card_damaged |
Line 190: |
Line 190: |
| local api_id, simple_naming = self:api_id(), self:simple_naming() | | local api_id, simple_naming = self:api_id(), self:simple_naming() |
| if not api_id and not self:type() then | | if not api_id and not self:type() then |
− | return Formatting:ship_card_damaged(nil, self:unique_name(), nil, self._card_damaged_extension, true) | + | return Formatting:ship_card_damaged(nil, self:unique_name(), nil, self._card_damaged_extension, true, hd) |
| elseif api_id or simple_naming then | | elseif api_id or simple_naming then |
− | return Formatting:ship_card_damaged(api_id, self:unique_name(), self:type(), self._card_damaged_extension, simple_naming) | + | return Formatting:ship_card_damaged(api_id, self:unique_name(), self:type(), self._card_damaged_extension, simple_naming, hd) |
| end | | end |
| end | | end |