Changes
no edit summary
local Equipment = require('Module:Equipment')
local Equipment = require('Module:Equipment')
local Formatting = require('Module:Formatting')
local Formatting = require('Module:Formatting')
local Ship
local ShipClass = require('Module:ShipClass')
local ShipClass = require('Module:ShipClass')
return self._card
return self._card
elseif self._card_reference then
elseif self._card_reference then
Ship = Ship or require('Module:Ship')
return Ship:create_from_reference(self._card_reference, self):card()
return Ship:create_from_reference(self._card_reference, self):card()
end
end
return self._card_damaged
return self._card_damaged
elseif self._card_damaged_reference then
elseif self._card_damaged_reference then
Ship = Ship or require('Module:Ship')
return Ship:create_from_reference(self._card_damaged_reference, self):card_damaged()
return Ship:create_from_reference(self._card_damaged_reference, self):card_damaged()
end
end
if self._battle_card then
if self._battle_card then
return self._battle_card
return self._battle_card
elseif self._battle_card_reference then
Ship = Ship or require('Module:Ship')
return Ship:create_from_reference(self._battle_card_reference, self):battle_card()
end
end
api_id = self:api_id()
api_id = self:api_id()
return self._battle_card_damaged
return self._battle_card_damaged
elseif self._battle_card_damaged_reference then
elseif self._battle_card_damaged_reference then
Ship = Ship or require('Module:Ship')
return Ship:create_from_reference(self._battle_card_damaged_reference, self):battle_card_damaged()
return Ship:create_from_reference(self._battle_card_damaged_reference, self):battle_card_damaged()
end
end
return self._cg
return self._cg
elseif self._cg_reference then
elseif self._cg_reference then
Ship = Ship or require('Module:Ship')
return Ship:create_from_reference(self._cg_reference, self):cg()
return Ship:create_from_reference(self._cg_reference, self):cg()
end
end
return self._cg_damaged
return self._cg_damaged
elseif self._cg_damaged_reference then
elseif self._cg_damaged_reference then
Ship = Ship or require('Module:Ship')
return Ship:create_from_reference(self._cg_damaged_reference, self):cg_damaged()
return Ship:create_from_reference(self._cg_damaged_reference, self):cg_damaged()
end
end