public int GetDefenseAssetCPCost(DesignInfo design)
 {
     if (design == null)
     {
         return(0);
     }
     if (design.IsPlatform())
     {
         PlatformTypes?platformType = design.GetPlatformType();
         if (!platformType.HasValue)
         {
             return(1);
         }
         return(this.GetPlatformCPCost(platformType.Value));
     }
     if (design.IsMinelayer())
     {
         return(this.MineLayerCPCost);
     }
     if (design.IsPoliceShip())
     {
         return(this.PoliceCPCost);
     }
     if (design.IsSDB())
     {
         return(this.SDBCPCost);
     }
     return(0);
 }