• 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
Support referenced assets
Line 1: Line 1:  
local Equipment = require('Module:Equipment')
 
local Equipment = require('Module:Equipment')
 
local Formatting = require('Module:Formatting')
 
local Formatting = require('Module:Formatting')
 +
local Ship = require('Module:Ship')
 
local ShipClass = require('Module:ShipClass')
 
local ShipClass = require('Module:ShipClass')
   Line 95: Line 96:  
if self._card then
 
if self._card then
 
return self._card
 
return self._card
 +
elseif self._card_reference then
 +
return Ship:create_from_reference(self._card_reference):card()
 
end
 
end
 
api_id = self:api_id()
 
api_id = self:api_id()
Line 106: Line 109:  
if self._card_damaged then
 
if self._card_damaged then
 
return self._card_damaged
 
return self._card_damaged
 +
elseif self._card_damaged_reference then
 +
return Ship:create_from_reference(self._card_damaged_reference):card_damaged()
 
end
 
end
 
api_id = self:api_id()
 
api_id = self:api_id()
Line 117: Line 122:  
if self._battle_card then
 
if self._battle_card then
 
return self._battle_card
 
return self._battle_card
 +
elseif self._battle_card_reference then
 +
return Ship:create_from_reference(self._battle_card_reference):battle_card()
 
end
 
end
 
api_id = self:api_id()
 
api_id = self:api_id()
Line 128: Line 135:  
if self._battle_card_damaged then
 
if self._battle_card_damaged then
 
return self._battle_card_damaged
 
return self._battle_card_damaged
 +
elseif self._battle_card_damaged_reference then
 +
return Ship:create_from_reference(self._battle_card_damaged_reference):battle_card_damaged()
 
end
 
end
 
api_id = self:api_id()
 
api_id = self:api_id()
Line 139: Line 148:  
if self._cg then
 
if self._cg then
 
return self._cg
 
return self._cg
 +
elseif self._cg_reference then
 +
return Ship:create_from_reference(self._cg_reference):cg()
 
end
 
end
 
api_id = self:api_id()
 
api_id = self:api_id()
Line 150: Line 161:  
if self._cg_damaged then
 
if self._cg_damaged then
 
return self._cg_damaged
 
return self._cg_damaged
 +
elseif self._cg_damaged_reference then
 +
return Ship:create_from_reference(self._cg_damaged_reference):cg_damaged()
 
end
 
end
 
api_id = self:api_id()
 
api_id = self:api_id()
Anonymous user

Navigation menu