• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Changes

Jump to navigation Jump to search
no edit summary
Line 113: Line 113:     
function ShipData:card()
 
function ShipData:card()
if self._card then
+
if self._card ~= nil then
 
return self._card
 
return self._card
 
elseif self._card_reference then
 
elseif self._card_reference then
Line 127: Line 127:     
function ShipData:card_damaged()
 
function ShipData:card_damaged()
if self._card_damaged then
+
if self._card_damaged ~= nil then
 
return self._card_damaged
 
return self._card_damaged
 
elseif self._card_damaged_reference then
 
elseif self._card_damaged_reference then
Line 141: Line 141:     
function ShipData:battle_card()
 
function ShipData:battle_card()
if self._battle_card then
+
if self._battle_card ~= nil then
 
return self._battle_card
 
return self._battle_card
 
elseif self._battle_card_reference then
 
elseif self._battle_card_reference then
Line 159: Line 159:     
function ShipData:battle_card_damaged()
 
function ShipData:battle_card_damaged()
if self._battle_card_damaged then
+
if self._battle_card_damaged ~= nil then
 
return self._battle_card_damaged
 
return self._battle_card_damaged
 
elseif self._battle_card_damaged_reference then
 
elseif self._battle_card_damaged_reference then
Line 173: Line 173:     
function ShipData:cg()
 
function ShipData:cg()
if self._cg then
+
if self._cg ~= nil then
 
return self._cg
 
return self._cg
 
elseif self._cg_reference then
 
elseif self._cg_reference then
Line 187: Line 187:     
function ShipData:cg_damaged()
 
function ShipData:cg_damaged()
if self._cg_damaged then
+
if self._cg_damaged ~= nil then
 
return self._cg_damaged
 
return self._cg_damaged
 
elseif self._cg_damaged_reference then
 
elseif self._cg_damaged_reference then
Line 436: Line 436:     
function ShipData:slots()
 
function ShipData:slots()
if self._slots then
+
return self._slots or self:slots_length()
return self._slots
  −
else
  −
return self:slots_length()
  −
end
   
end
 
end
  
Anonymous user

Navigation menu