Module:EquipmentCardListKai

local CardList = require('Module:CardList') local Equipment = require('Module:Equipment') local EquipmentCardKai = require('Module:EquipmentCardKai') local Formatting = require('Module:Formatting')

local EquipmentCardListKai = CardList{ _item_class = Equipment, _blank = "Empty equipment slot.png", _default_size = EquipmentCardKai._card_size, }

function EquipmentCardListKai:card(ship) local value if ship == false then value = Formatting:format_image{self._blank, size = self._size} else value = EquipmentCardKai:card{ship = ship, size = self._size, link = ship:link, caption = ship:name} end return {values = {value = value}, bg_color = self._transparent, text_align = self._center_align} end

return EquipmentCardListKai