Line 196:
Line 196:
end
end
−
function ShipData:battle_card()
+
function ShipData:battle_card(hd)
if self._battle_card ~= nil then
if self._battle_card ~= nil then
return self._battle_card
return self._battle_card
Line 205:
Line 205:
api_id = self:api_id()
api_id = self:api_id()
if api_id then
if api_id then
−
return Formatting:ship_battle_card(api_id, self:unique_name(), self:type(), self._battle_card_extension)
+
return Formatting:ship_battle_card(api_id, self:unique_name(), self:type(), self._battle_card_extension, hd)
end
end
return self._battle_card
return self._battle_card
Line 214:
Line 214:
end
end
−
function ShipData:battle_card_damaged()
+
function ShipData:battle_card_damaged(hd)
if self._battle_card_damaged ~= nil then
if self._battle_card_damaged ~= nil then
return self._battle_card_damaged
return self._battle_card_damaged
Line 223:
Line 223:
api_id = self:api_id()
api_id = self:api_id()
if api_id then
if api_id then
−
return Formatting:ship_battle_card_damaged(api_id, self:unique_name(), self:type(), self._battle_card_damaged_extension)
+
return Formatting:ship_battle_card_damaged(api_id, self:unique_name(), self:type(), self._battle_card_damaged_extension, hd)
end
end
return self._battle_card_damaged
return self._battle_card_damaged
end
end
−
function ShipData:cg()
+
function ShipData:cg(hd)
if self._cg ~= nil then
if self._cg ~= nil then
return self._cg
return self._cg
Line 237:
Line 237:
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_cg(nil, self:unique_name(), nil, self._cg_extension, true)
+
return Formatting:ship_cg(nil, self:unique_name(), nil, self._cg_extension, true, hd)
elseif api_id or simple_naming then
elseif api_id or simple_naming then
−
return Formatting:ship_cg(api_id, self:unique_name(), self:type(), self._cg_extension, simple_naming)
+
return Formatting:ship_cg(api_id, self:unique_name(), self:type(), self._cg_extension, simple_naming, hd)
end
end
end
end
end
end
−
function ShipData:cg_damaged()
+
function ShipData:cg_damaged(hd)
if self._cg_damaged ~= nil then
if self._cg_damaged ~= nil then
return self._cg_damaged
return self._cg_damaged
Line 253:
Line 253:
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_cg_damaged(nil, self:unique_name(), nil, self._cg_damaged_extension, true)
+
return Formatting:ship_cg_damaged(nil, self:unique_name(), nil, self._cg_damaged_extension, true, hd)
elseif api_id or simple_naming then
elseif api_id or simple_naming then
−
return Formatting:ship_cg_damaged(api_id, self:unique_name(), self:type(), self._cg_damaged_extension, simple_naming)
+
return Formatting:ship_cg_damaged(api_id, self:unique_name(), self:type(), self._cg_damaged_extension, simple_naming, hd)
end
end
end
end