• 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
m
no edit summary
Line 85: Line 85:  
     -- overrides ShipData:card
 
     -- overrides ShipData:card
 
     card = function(ship)
 
     card = function(ship)
         return ShipBattleCardKai:Asset({ ship:name("/") })
+
         if ship.hp then
 +
            return ShipBattleCardKai:Asset({ ship:name("/") })
 +
        else
 +
            return EquipmentCardKai:Asset({ ship:name(), size = "75px" })
 +
        end
 
     end,
 
     end,
   
+
 
    ecard = function(e)
  −
        return EquipmentCardKai:Asset({ e:name(), size = "75px" })
  −
    end,
  −
   
   
     format_morale = function(ship)
 
     format_morale = function(ship)
 
         local morale = ship:morale() or 49
 
         local morale = ship:morale() or 49
Line 246: Line 246:  
                     key = part
 
                     key = part
 
                     ship = Ship(key)
 
                     ship = Ship(key)
                     shipCapabilities = ShipCapabilities{ ship = ship }
+
                     if ship:id() then
 +
                        shipCapabilities = ShipCapabilities{ ship = ship }
 +
                    else
 +
                        ship = Equipment(key)
 +
                    end
 
                 else
 
                 else
 
                     interpret_setter(part)
 
                     interpret_setter(part)
cssedit, gkautomate
7,064

edits

Navigation menu