from bcdebug import debug
#######################################################################################
#  Custom Ship Plugin                                                                 #
#  Created by BC - Mod Packager                                                       #
#  Date: 4/16/03                                                                    #
#######################################################################################
#                                                                                     #
import Foundation
import App
#                                                                                     #
#######################################################################################
#                                                                                     #
abbrev = 'Predator'
iconName = 'Predator'
longName = 'Predator'
shipFile = 'Predator' 
menuGroup = 'New Ships'
playerMenuGroup = 'New Ships'
species = App.SPECIES_GALAXY
#                                                                                     #
#######################################################################################
#                                                                                     #
# Mod Info.  Use this as an opportunity to describe your work in brief.  This may     #
# have use later on for updates and such.                                             #
#                                                                                     #
credits = {
	'modName': 'Predator',
	'author': 'SNS',
	'version': '1.0',
	'sources': [ 'http://' ],
	'comments': ''
}
#                                                                                     #
#######################################################################################
#                                                                                     #
# This is the ShipDef that adds the Ship to the game... BC-Mod Packager has           #
# automatically generated the proper ShipDef Line for you.                            #
#                                                                                     #
Foundation.ShipDef.Predator = Foundation.FedShipDef(abbrev, species, { 'name': longName, 'iconName': iconName, 'shipFile': shipFile })
Foundation.ShipDef.Predator.fMaxWarp = 9.9
Foundation.ShipDef.Predator.dTechs = { 'Breen Drainer Immune': 1 }

Foundation.ShipDef.Predator.dTechs = { 'Fed Ablative Armor': {
	"Plates": [
		"Saucer Ablative Armor",
                "Pod Ablative Armor",
                "Port Nacelle Ablative",
                "Star Nacelle Ablative"]
}}
#                                                                                     #
#######################################################################################
#                                                                                     #
# Uncomment these if you have TGL  
Foundation.ShipDef.Predator.hasTGLName = 1
Foundation.ShipDef.Predator.hasTGLDesc = 1

# Otherwise, uncomment this and type something in:
# Foundation.ShipDef.Predator.desc = 'No Description Available'
#                                                                                     #
#######################################################################################
#                                                                                     #
# These register the ship with the QuickBattle menus.  Don't touch them!!!            #
#                                                                                     #
if menuGroup:           Foundation.ShipDef.Predator.RegisterQBShipMenu(menuGroup)
if playerMenuGroup:     Foundation.ShipDef.Predator.RegisterQBPlayerShipMenu(playerMenuGroup)

if Foundation.shipList._keyList.has_key(longName):
     Foundation.ShipDef.__dict__[longName].friendlyDetails[2] = Foundation.shipList[longName].friendlyDetails[2]
     Foundation.ShipDef.__dict__[longName].enemyDetails[2] = Foundation.shipList[longName].enemyDetails[2]
#                                                                                     #
#######################################################################################
