当前位置: 首页>>代码示例>>Python>>正文


Python MobileTemplate.addToLootGroups方法代码示例

本文整理汇总了Python中services.spawn.MobileTemplate.addToLootGroups方法的典型用法代码示例。如果您正苦于以下问题:Python MobileTemplate.addToLootGroups方法的具体用法?Python MobileTemplate.addToLootGroups怎么用?Python MobileTemplate.addToLootGroups使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在services.spawn.MobileTemplate的用法示例。


在下文中一共展示了MobileTemplate.addToLootGroups方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import addToLootGroups [as 别名]
def addTemplate(core):
	mobileTemplate = MobileTemplate()

	mobileTemplate.setCreatureName('lord_nyax')
	mobileTemplate.setLevel(40)
	mobileTemplate.setDifficulty(Difficulty.NORMAL)
	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(True)
	mobileTemplate.setScale(1)
	mobileTemplate.setSocialGroup("followers of lord nyax")
	mobileTemplate.setAssistRange(6)
	mobileTemplate.setStalker(True)
	mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE + Options.ATTACKABLE)

	templates = Vector()
	templates.add('object/mobile/shared_dressed_lord_nyax.iff')
	mobileTemplate.setTemplates(templates)

	weaponTemplates = Vector()
	weapontemplate = WeaponTemplate('object/weapon/ranged/rifle/shared_rifle_t21.iff', WeaponType.RIFLE, 1.0, 24, 'energy')
	weaponTemplates.add(weapontemplate)
	mobileTemplate.setWeaponTemplateVector(weaponTemplates)

	attacks = Vector()
	mobileTemplate.setDefaultAttack('rangedShot')
	mobileTemplate.setAttacks(attacks)
	
	lootPoolNames_1 = ['Junk']
	lootPoolChances_1 = [100]
	lootGroupChance_1 = 100
	mobileTemplate.addToLootGroups(lootPoolNames_1,lootPoolChances_1,lootGroupChance_1)
	
	core.spawnService.addMobileTemplate('lord_nyax', mobileTemplate)
	return
开发者ID:MrDinnertime,项目名称:NGECore2,代码行数:37,代码来源:lord_nyax.py

示例2: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import addToLootGroups [as 别名]
def addTemplate(core):
    mobileTemplate = MobileTemplate()

    mobileTemplate.setCreatureName("afarathu_cult_zealot")
    mobileTemplate.setLevel(30)
    mobileTemplate.setDifficulty(Difficulty.NORMAL)
    mobileTemplate.setMinSpawnDistance(4)
    mobileTemplate.setMaxSpawnDistance(8)
    mobileTemplate.setDeathblow(True)
    mobileTemplate.setScale(1)
    mobileTemplate.setSocialGroup("afarathu")
    mobileTemplate.setAssistRange(6)
    mobileTemplate.setStalker(True)
    mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE | Options.ATTACKABLE)

    templates = Vector()
    templates.add("object/mobile/shared_dressed_selonian_m_01.iff")
    templates.add("object/mobile/shared_dressed_selonian_m_02.iff")
    templates.add("object/mobile/shared_dressed_selonian_m_03.iff")
    templates.add("object/mobile/shared_dressed_selonian_m_04.iff")
    templates.add("object/mobile/shared_dressed_selonian_m_05.iff")
    templates.add("object/mobile/shared_dressed_selonian_m_06.iff")
    templates.add("object/mobile/shared_dressed_selonian_m_07.iff")
    templates.add("object/mobile/shared_dressed_selonian_m_08.iff")
    templates.add("object/mobile/shared_dressed_selonian_m_09.iff")
    templates.add("object/mobile/shared_dressed_selonian_m_10.iff")
    templates.add("object/mobile/shared_dressed_selonian_m_11.iff")
    templates.add("object/mobile/shared_dressed_selonian_m_12.iff")
    templates.add("object/mobile/shared_dressed_selonian_f_01.iff")
    templates.add("object/mobile/shared_dressed_selonian_f_02.iff")
    templates.add("object/mobile/shared_dressed_selonian_f_03.iff")
    templates.add("object/mobile/shared_dressed_selonian_f_04.iff")
    templates.add("object/mobile/shared_dressed_selonian_f_05.iff")
    templates.add("object/mobile/shared_dressed_selonian_f_06.iff")
    templates.add("object/mobile/shared_dressed_selonian_f_07.iff")
    templates.add("object/mobile/shared_dressed_selonian_f_08.iff")
    templates.add("object/mobile/shared_dressed_selonian_f_09.iff")
    templates.add("object/mobile/shared_dressed_selonian_f_10.iff")
    templates.add("object/mobile/shared_dressed_selonian_f_11.iff")
    templates.add("object/mobile/shared_dressed_selonian_f_12.iff")
    mobileTemplate.setTemplates(templates)

    weaponTemplates = Vector()
    weapontemplate = WeaponTemplate(
        "object/weapon/ranged/carbine/shared_carbine_e11.iff", WeaponType.CARBINE, 1.0, 15, "energy"
    )
    weaponTemplates.add(weapontemplate)
    mobileTemplate.setWeaponTemplateVector(weaponTemplates)

    attacks = Vector()
    mobileTemplate.setDefaultAttack("rangedShot")
    mobileTemplate.setAttacks(attacks)

    lootPoolNames_1 = ["Junk"]
    lootPoolChances_1 = [100]
    lootGroupChance_1 = 100
    mobileTemplate.addToLootGroups(lootPoolNames_1, lootPoolChances_1, lootGroupChance_1)

    core.spawnService.addMobileTemplate("afarathu_cult_zealot", mobileTemplate)
    return
开发者ID:Demannu,项目名称:NGECore2,代码行数:62,代码来源:afarathu_cult_zealot.py

示例3: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import addToLootGroups [as 别名]
def addTemplate(core):
	mobileTemplate = MobileTemplate()

	mobileTemplate.setCreatureName('feral_selonian')
	mobileTemplate.setLevel(39)
	mobileTemplate.setDifficulty(Difficulty.NORMAL)

	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(True)
	mobileTemplate.setScale(1)
	mobileTemplate.setSocialGroup("self")
	mobileTemplate.setAssistRange(6)
	mobileTemplate.setStalker(True)
	mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE + Options.ATTACKABLE)

	templates = Vector()
	templates.add('object/mobile/shared_dressed_selonian_m_01.iff')
	templates.add('object/mobile/shared_dressed_selonian_m_02.iff')
	templates.add('object/mobile/shared_dressed_selonian_m_03.iff')
	templates.add('object/mobile/shared_dressed_selonian_m_04.iff')
	templates.add('object/mobile/shared_dressed_selonian_m_05.iff')
	templates.add('object/mobile/shared_dressed_selonian_m_06.iff')
	templates.add('object/mobile/shared_dressed_selonian_m_07.iff')
	templates.add('object/mobile/shared_dressed_selonian_m_08.iff')
	templates.add('object/mobile/shared_dressed_selonian_m_09.iff')
	templates.add('object/mobile/shared_dressed_selonian_m_10.iff')
	templates.add('object/mobile/shared_dressed_selonian_m_11.iff')
	templates.add('object/mobile/shared_dressed_selonian_m_12.iff')
	templates.add('object/mobile/shared_dressed_selonian_f_01.iff')
	templates.add('object/mobile/shared_dressed_selonian_f_02.iff')
	templates.add('object/mobile/shared_dressed_selonian_f_03.iff')
	templates.add('object/mobile/shared_dressed_selonian_f_04.iff')
	templates.add('object/mobile/shared_dressed_selonian_f_05.iff')
	templates.add('object/mobile/shared_dressed_selonian_f_06.iff')
	templates.add('object/mobile/shared_dressed_selonian_f_07.iff')
	templates.add('object/mobile/shared_dressed_selonian_f_08.iff')
	templates.add('object/mobile/shared_dressed_selonian_f_09.iff')
	templates.add('object/mobile/shared_dressed_selonian_f_10.iff')
	templates.add('object/mobile/shared_dressed_selonian_f_11.iff')
	templates.add('object/mobile/shared_dressed_selonian_f_12.iff')
	mobileTemplate.setTemplates(templates)

	weaponTemplates = Vector()
	weapontemplate = WeaponTemplate('object/weapon/ranged/pistol/shared_pistol_d18.iff', WeaponType.PISTOL, 1.0, 24, 'energy')
	weaponTemplates.add(weapontemplate)
	mobileTemplate.setWeaponTemplateVector(weaponTemplates)

	attacks = Vector()
	mobileTemplate.setDefaultAttack('rangedShot')
	mobileTemplate.setAttacks(attacks)
	
	lootPoolNames_1 = ['Junk']
	lootPoolChances_1 = [100]
	lootGroupChance_1 = 100
	mobileTemplate.addToLootGroups(lootPoolNames_1,lootPoolChances_1,lootGroupChance_1)
	
	core.spawnService.addMobileTemplate('feral_selonian', mobileTemplate)
	return
开发者ID:MrDinnertime,项目名称:NGECore2,代码行数:61,代码来源:feral_selonian.py

示例4: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import addToLootGroups [as 别名]
def addTemplate(core):
	mobileTemplate = MobileTemplate()

	mobileTemplate.setCreatureName('afarathu_cult_brute')
	mobileTemplate.setLevel(30)
	mobileTemplate.setDifficulty(Difficulty.NORMAL)
	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(True)
	mobileTemplate.setScale(1)
	mobileTemplate.setSocialGroup("afarathu")
	mobileTemplate.setAssistRange(6)
	mobileTemplate.setStalker(True)
	mobileTemplate.setOptionsBitmask(Options.ATTACKABLE)

	templates = Vector()
	templates.add('object/mobile/shared_dressed_selonian_m_01.iff')
	templates.add('object/mobile/shared_dressed_selonian_m_02.iff')
	templates.add('object/mobile/shared_dressed_selonian_m_03.iff')
	templates.add('object/mobile/shared_dressed_selonian_m_04.iff')
	templates.add('object/mobile/shared_dressed_selonian_m_05.iff')
	templates.add('object/mobile/shared_dressed_selonian_m_06.iff')
	templates.add('object/mobile/shared_dressed_selonian_m_07.iff')
	templates.add('object/mobile/shared_dressed_selonian_m_08.iff')
	templates.add('object/mobile/shared_dressed_selonian_m_09.iff')
	templates.add('object/mobile/shared_dressed_selonian_m_10.iff')
	templates.add('object/mobile/shared_dressed_selonian_m_11.iff')
	templates.add('object/mobile/shared_dressed_selonian_m_12.iff')
	templates.add('object/mobile/shared_dressed_selonian_f_01.iff')
	templates.add('object/mobile/shared_dressed_selonian_f_02.iff')
	templates.add('object/mobile/shared_dressed_selonian_f_03.iff')
	templates.add('object/mobile/shared_dressed_selonian_f_04.iff')
	templates.add('object/mobile/shared_dressed_selonian_f_05.iff')
	templates.add('object/mobile/shared_dressed_selonian_f_06.iff')
	templates.add('object/mobile/shared_dressed_selonian_f_07.iff')
	templates.add('object/mobile/shared_dressed_selonian_f_08.iff')
	templates.add('object/mobile/shared_dressed_selonian_f_09.iff')
	templates.add('object/mobile/shared_dressed_selonian_f_10.iff')
	templates.add('object/mobile/shared_dressed_selonian_f_11.iff')
	templates.add('object/mobile/shared_dressed_selonian_f_12.iff')
	mobileTemplate.setTemplates(templates)

	weaponTemplates = Vector()
	weapontemplate = WeaponTemplate('object/weapon/melee/polearm/shared_polearm_vibro_axe.iff', WeaponType.POLEARMMELEE, 1.0, 5, 'kinetic')
	weaponTemplates.add(weapontemplate)
	mobileTemplate.setWeaponTemplateVector(weaponTemplates)

	attacks = Vector()
	mobileTemplate.setDefaultAttack('meleeHit')
	mobileTemplate.setAttacks(attacks)
	
	lootPoolNames_1 = ['Junk']
	lootPoolChances_1 = [100]
	lootGroupChance_1 = 100
	mobileTemplate.addToLootGroups(lootPoolNames_1,lootPoolChances_1,lootGroupChance_1)
	
	core.spawnService.addMobileTemplate('afarathu_cult_follower', mobileTemplate)
	return
开发者ID:Avasia,项目名称:NGECore2,代码行数:60,代码来源:afarathu_cult_follower.py

示例5: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import addToLootGroups [as 别名]
def addTemplate(core):
	mobileTemplate = MobileTemplate()
	
	mobileTemplate.setCreatureName('singing_mtn_clan_councilwoman')
	mobileTemplate.setLevel(80)
	mobileTemplate.setDifficulty(2)
	mobileTemplate.setAttackRange(6)
	mobileTemplate.setAttackSpeed(1.0)
	mobileTemplate.setWeaponType(4)
	mobileTemplate.setMinSpawnDistance(6)
	mobileTemplate.setMaxSpawnDistance(10)
	mobileTemplate.setDeathblow(True)
	mobileTemplate.setSocialGroup('mountain clan')
	mobileTemplate.setAssistRange(12)
	mobileTemplate.setRespawnTime(300)
	mobileTemplate.setOptionsBitmask(192)
	
	templates = Vector()
	templates.add('object/mobile/shared_dressed_dathomir_sing_mt_clan_councilwoman.iff')
	mobileTemplate.setTemplates(templates)
	
	weaponTemplates = Vector()
	weapontemplate = WeaponTemplate('object/weapon/melee/sword/shared_sword_01.iff', 4, 1.0)
	weaponTemplates.add(weapontemplate)
	mobileTemplate.setWeaponTemplateVector(weaponTemplates)
	
	attacks = Vector()
	mobileTemplate.setDefaultAttack('meleehit')
	mobileTemplate.setAttacks(attacks)
	
	lootPoolNames_1 = ['Junk']
	lootPoolChances_1 = [100]
	lootGroupChance_1 = 65
	mobileTemplate.addToLootGroups(lootPoolNames_1,lootPoolChances_1,lootGroupChance_1)
	
	lootPoolNames_2 = ['jedi_relic_1']
	lootPoolChances_2 = [100]
	lootGroupChance_2 = 85
	mobileTemplate.addToLootGroups(lootPoolNames_2,lootPoolChances_2,lootGroupChance_2)
	
	lootPoolNames_3 = ['powercrystals_hiq']
	lootPoolChances_3 = [100]
	lootGroupChance_3 = 12
	mobileTemplate.addToLootGroups(lootPoolNames_3,lootPoolChances_3,lootGroupChance_3)
	
	lootPoolNames_4 = ['random_stat_jewelry']
	lootPoolChances_4 = [100]
	lootGroupChance_4 = 8
	mobileTemplate.addToLootGroups(lootPoolNames_4,lootPoolChances_4,lootGroupChance_4)

	lootPoolNames_5 = ['sithholocrons']
	lootPoolChances_5 = [100]
	lootGroupChance_5 = 3
	mobileTemplate.addToLootGroups(lootPoolNames_5,lootPoolChances_5,lootGroupChance_5)
	
	core.spawnService.addMobileTemplate('singing_mtn_clan_councilwoman', mobileTemplate)
开发者ID:Adoyser,项目名称:NGECore2,代码行数:58,代码来源:singing_mtn_clan_councilwoman.py

示例6: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import addToLootGroups [as 别名]
def addTemplate(core):
	mobileTemplate = MobileTemplate()
	
	mobileTemplate.setCreatureName('nightsister_elder')
	mobileTemplate.setLevel(82)
	mobileTemplate.setDifficulty(Difficulty.BOSS)

	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(6)
	mobileTemplate.setDeathblow(True)
	mobileTemplate.setSocialGroup('nightsister')
	mobileTemplate.setAssistRange(12)
	mobileTemplate.setRespawnTime(300)
	mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE | Options.ATTACKABLE)
	
	templates = Vector()
	templates.add('object/mobile/shared_dressed_dathomir_nightsister_elder.iff')
	mobileTemplate.setTemplates(templates)
	
	weaponTemplates = Vector()
	weapontemplate = WeaponTemplate('object/weapon/melee/sword/shared_sword_01.iff', WeaponType.ONEHANDEDMELEE, 1.0, 5, 'kinetic')
	weaponTemplates.add(weapontemplate)
	mobileTemplate.setWeaponTemplateVector(weaponTemplates)
	
	attacks = Vector()
	mobileTemplate.setDefaultAttack('meleehit')
	attacks.add('fs_maelstrom_5')
	attacks.add('fs_ae_dm_cc_6')
	mobileTemplate.setAttacks(attacks)
	
	lootPoolNames_1 = ['Junk']
	lootPoolChances_1 = [100]
	lootGroupChance_1 = 65
	mobileTemplate.addToLootGroups(lootPoolNames_1,lootPoolChances_1,lootGroupChance_1)
	
	lootPoolNames_2 = ['jedi_relic_1']
	lootPoolChances_2 = [100]
	lootGroupChance_2 = 85
	mobileTemplate.addToLootGroups(lootPoolNames_2,lootPoolChances_2,lootGroupChance_2)
	
	lootPoolNames_3 = ['powercrystals_hiq']
	lootPoolChances_3 = [100]
	lootGroupChance_3 = 12
	mobileTemplate.addToLootGroups(lootPoolNames_3,lootPoolChances_3,lootGroupChance_3)
	
	lootPoolNames_4 = ['random_stat_jewelry']
	lootPoolChances_4 = [100]
	lootGroupChance_4 = 8
	mobileTemplate.addToLootGroups(lootPoolNames_4,lootPoolChances_4,lootGroupChance_4)

	lootPoolNames_5 = ['sithholocrons']
	lootPoolChances_5 = [100]
	lootGroupChance_5 = 3
	mobileTemplate.addToLootGroups(lootPoolNames_5,lootPoolChances_5,lootGroupChance_5)
	
	core.spawnService.addMobileTemplate('nightsister_elder', mobileTemplate)
开发者ID:wefi,项目名称:NGECore2,代码行数:58,代码来源:nightsister_elder.py

示例7: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import addToLootGroups [as 别名]
def addTemplate(core):
	mobileTemplate = MobileTemplate()

	mobileTemplate.setCreatureName('meatlump_fool')
	mobileTemplate.setLevel(26)
	mobileTemplate.setDifficulty(0)
	mobileTemplate.setAttackRange(15)
	mobileTemplate.setAttackSpeed(1.0)
	mobileTemplate.setWeaponType(1)
	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(False)
	mobileTemplate.setScale(1)
	mobileTemplate.setSocialGroup("meatlump")
	mobileTemplate.setAssistRange(6)
	mobileTemplate.setStalker(True)
	mobileTemplate.setOptionsBitmask(128)

	templates = Vector()
	templates.add('object/mobile/shared_dressed_meatlump_female_01.iff')
	templates.add('object/mobile/shared_dressed_meatlump_female_02.iff')
	templates.add('object/mobile/shared_dressed_meatlump_female_03.iff')
	templates.add('object/mobile/shared_dressed_meatlump_female_04.iff')
	templates.add('object/mobile/shared_dressed_meatlump_female_05.iff')
	templates.add('object/mobile/shared_dressed_meatlump_female_06.iff')
	templates.add('object/mobile/shared_dressed_meatlump_female_07.iff')
	templates.add('object/mobile/shared_dressed_meatlump_male_01.iff')
	templates.add('object/mobile/shared_dressed_meatlump_male_02.iff')
	templates.add('object/mobile/shared_dressed_meatlump_male_03.iff')
	templates.add('object/mobile/shared_dressed_meatlump_male_04.iff')
	templates.add('object/mobile/shared_dressed_meatlump_male_05.iff')
	templates.add('object/mobile/shared_dressed_meatlump_male_06.iff')
	templates.add('object/mobile/shared_dressed_meatlump_male_07.iff')
	templates.add('object/mobile/shared_dressed_meatlump_male_08.iff')
	templates.add('object/mobile/shared_dressed_meatlump_male_09.iff')
	mobileTemplate.setTemplates(templates)

	weaponTemplates = Vector()
	weapontemplate = WeaponTemplate('object/weapon/ranged/carbine/shared_carbine_e5.iff', 1, 1.0)
	weaponTemplates.add(weapontemplate)
	mobileTemplate.setWeaponTemplateVector(weaponTemplates)

	attacks = Vector()
	mobileTemplate.setDefaultAttack('rangedShot')
	mobileTemplate.setAttacks(attacks)
	
	lootPoolNames_1 = ['Junk']
	lootPoolChances_1 = [100]
	lootGroupChance_1 = 100
	mobileTemplate.addToLootGroups(lootPoolNames_1,lootPoolChances_1,lootGroupChance_1)
	
	core.spawnService.addMobileTemplate('meatlump_fool', mobileTemplate)
	return
开发者ID:Adoyser,项目名称:NGECore2,代码行数:55,代码来源:meatlump_fool.py

示例8: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import addToLootGroups [as 别名]
def addTemplate(core):
	mobileTemplate = MobileTemplate()

	mobileTemplate.setCreatureName('corellia_meatlump_lunk')
	mobileTemplate.setLevel(13)
	mobileTemplate.setDifficulty(Difficulty.NORMAL)

	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(False)
	mobileTemplate.setScale(1)
	mobileTemplate.setSocialGroup("meatlump")
	mobileTemplate.setAssistRange(6)
	mobileTemplate.setStalker(True)
	mobileTemplate.setOptionsBitmask(128)

	templates = Vector()
	templates.add('object/mobile/shared_dressed_meatlump_female_01.iff')
	templates.add('object/mobile/shared_dressed_meatlump_female_02.iff')
	templates.add('object/mobile/shared_dressed_meatlump_female_03.iff')
	templates.add('object/mobile/shared_dressed_meatlump_female_04.iff')
	templates.add('object/mobile/shared_dressed_meatlump_female_05.iff')
	templates.add('object/mobile/shared_dressed_meatlump_female_06.iff')
	templates.add('object/mobile/shared_dressed_meatlump_female_07.iff')
	templates.add('object/mobile/shared_dressed_meatlump_male_01.iff')
	templates.add('object/mobile/shared_dressed_meatlump_male_02.iff')
	templates.add('object/mobile/shared_dressed_meatlump_male_03.iff')
	templates.add('object/mobile/shared_dressed_meatlump_male_04.iff')
	templates.add('object/mobile/shared_dressed_meatlump_male_05.iff')
	templates.add('object/mobile/shared_dressed_meatlump_male_06.iff')
	templates.add('object/mobile/shared_dressed_meatlump_male_07.iff')
	templates.add('object/mobile/shared_dressed_meatlump_male_08.iff')
	templates.add('object/mobile/shared_dressed_meatlump_male_09.iff')
	mobileTemplate.setTemplates(templates)

	weaponTemplates = Vector()
	weapontemplate = WeaponTemplate('object/weapon/ranged/pistol/shared_pistol_d18.iff', WeaponType.PISTOL, 1.0, 24, 'energy')
	weaponTemplates.add(weapontemplate)
	mobileTemplate.setWeaponTemplateVector(weaponTemplates)

	attacks = Vector()
	mobileTemplate.setDefaultAttack('rangedShot')
	mobileTemplate.setAttacks(attacks)
	
	lootPoolNames_1 = ['Junk']
	lootPoolChances_1 = [100]
	lootGroupChance_1 = 100
	mobileTemplate.addToLootGroups(lootPoolNames_1,lootPoolChances_1,lootGroupChance_1)
	
	core.spawnService.addMobileTemplate('meatlump_lunk', mobileTemplate)
	return
开发者ID:Avasia,项目名称:NGECore2,代码行数:53,代码来源:meatlump_lunk.py

示例9: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import addToLootGroups [as 别名]
def addTemplate(core):
	mobileTemplate = MobileTemplate()

	mobileTemplate.setCreatureName('canyon_corsair_pirate_elite')
	mobileTemplate.setLevel(43)
	mobileTemplate.setDifficulty(Difficulty.NORMAL)

	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(True)
	mobileTemplate.setScale(1)
	mobileTemplate.setSocialGroup("corsairs (canyon corsair)")
	mobileTemplate.setAssistRange(8)
	mobileTemplate.setStalker(True)
	mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE | Options.ATTACKABLE)

	templates = Vector()
	templates.add('object/mobile/shared_dressed_corsair_elite_hum_f.iff')
	templates.add('object/mobile/shared_dressed_corsair_elite_nikto_m.iff')
	templates.add('object/mobile/shared_dressed_corsair_elite_nikto_f.iff')
	templates.add('object/mobile/shared_dressed_corsair_elite_hum_m.iff')
	templates.add('object/mobile/shared_dressed_corsair_elite_wee_m.iff')
	templates.add('object/mobile/shared_dressed_corsair_elite_zab_m.iff')
	mobileTemplate.setTemplates(templates)

	weaponTemplates = Vector()
	weapontemplate = WeaponTemplate('object/weapon/ranged/carbine/shared_carbine_cdef.iff', WeaponType.CARBINE, 1.0, 6, 'energy')
	
	weaponTemplates.add(weapontemplate)
	mobileTemplate.setWeaponTemplateVector(weaponTemplates)

	attacks = Vector()
	mobileTemplate.setDefaultAttack('rangedShot')
	
	mobileTemplate.setAttacks(attacks)
	
	lootPoolNames_1 = ['Junk']
	lootPoolChances_1 = [100]
	lootGroupChance_1 = 100
	mobileTemplate.addToLootGroups(lootPoolNames_1,lootPoolChances_1,lootGroupChance_1)
	
	lootPoolNames_2 = ['random_loot_primitives']
	lootPoolChances_2 = [100]
	lootGroupChance_2 = 35
	mobileTemplate.addToLootGroups(lootPoolNames_2,lootPoolChances_2,lootGroupChance_2)
	
	core.spawnService.addMobileTemplate('canyon_corsair_pirate_elite', mobileTemplate)
	return
开发者ID:oswin06082,项目名称:NGECore2,代码行数:50,代码来源:canyon_corsair_pirate_elite.py

示例10: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import addToLootGroups [as 别名]
def addTemplate(core):
    mobileTemplate = MobileTemplate()

    mobileTemplate.setCreatureName('singing_mtn_clan_arch_witch')
    mobileTemplate.setLevel(80)
    mobileTemplate.setDifficulty(Difficulty.ELITE)

    mobileTemplate.setMinSpawnDistance(6)
    mobileTemplate.setMaxSpawnDistance(10)
    mobileTemplate.setDeathblow(True)
    mobileTemplate.setSocialGroup('mountain clan')
    mobileTemplate.setAssistRange(12)
    mobileTemplate.setRespawnTime(300)
    mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE + Options.ATTACKABLE)

    templates = Vector()
    templates.add(
        'object/mobile/shared_dressed_dathomir_sing_mt_clan_arch_witch.iff')
    mobileTemplate.setTemplates(templates)

    weaponTemplates = Vector()
    weapontemplate = WeaponTemplate(
        'object/weapon/melee/sword/shared_sword_01.iff',
        WeaponType.ONEHANDEDMELEE, 1.0, 5, 'kinetic')
    weaponTemplates.add(weapontemplate)
    mobileTemplate.setWeaponTemplateVector(weaponTemplates)

    attacks = Vector()
    mobileTemplate.setDefaultAttack('meleehit')
    mobileTemplate.setAttacks(attacks)

    lootPoolNames_1 = ['Junk']
    lootPoolChances_1 = [100]
    lootGroupChance_1 = 65
    mobileTemplate.addToLootGroups(lootPoolNames_1, lootPoolChances_1,
                                   lootGroupChance_1)

    lootPoolNames_2 = ['jedi_relic_1']
    lootPoolChances_2 = [100]
    lootGroupChance_2 = 85
    mobileTemplate.addToLootGroups(lootPoolNames_2, lootPoolChances_2,
                                   lootGroupChance_2)

    lootPoolNames_4 = ['random_stat_jewelry']
    lootPoolChances_4 = [100]
    lootGroupChance_4 = 8
    mobileTemplate.addToLootGroups(lootPoolNames_4, lootPoolChances_4,
                                   lootGroupChance_4)

    lootPoolNames_5 = ['sithholocrons']
    lootPoolChances_5 = [100]
    lootGroupChance_5 = 3
    mobileTemplate.addToLootGroups(lootPoolNames_5, lootPoolChances_5,
                                   lootGroupChance_5)

    core.spawnService.addMobileTemplate('singing_mtn_clan_arch_witch',
                                        mobileTemplate)
开发者ID:hendenburg,项目名称:NGECore2,代码行数:59,代码来源:singing_mtn_clan_arch_witch.py

示例11: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import addToLootGroups [as 别名]
def addTemplate(core):
    mobileTemplate = MobileTemplate()

    mobileTemplate.setCreatureName('eerie_pubam_spiritmaster')
    mobileTemplate.setLevel(62)
    mobileTemplate.setDifficulty(0)
    mobileTemplate.setAttackRange(5)
    mobileTemplate.setAttackSpeed(1.0)
    mobileTemplate.setWeaponType(6)
    mobileTemplate.setMinSpawnDistance(3)
    mobileTemplate.setMaxSpawnDistance(5)
    mobileTemplate.setDeathblow(True)
    mobileTemplate.setSocialGroup('pubam tribe')
    mobileTemplate.setAssistRange(1)
    mobileTemplate.setOptionsBitmask(192)
    mobileTemplate.setStalker(True)

    templates = Vector()
    templates.add('object/mobile/shared_dulok_male.iff')
    templates.add('object/mobile/shared_dulok_female.iff')
    mobileTemplate.setTemplates(templates)

    weaponTemplates = Vector()
    weapontemplate = WeaponTemplate(
        'object/weapon/melee/unarmed/shared_unarmed_default.iff', 6, 1.0)
    weaponTemplates.add(weapontemplate)
    mobileTemplate.setWeaponTemplateVector(weaponTemplates)

    attacks = Vector()
    mobileTemplate.setDefaultAttack('meleeHit')
    mobileTemplate.setAttacks(attacks)

    lootPoolNames_1 = ['Junk']
    lootPoolChances_1 = [100]
    lootGroupChance_1 = 65
    mobileTemplate.addToLootGroups(lootPoolNames_1, lootPoolChances_1,
                                   lootGroupChance_1)

    lootPoolNames_2 = ['random_loot_primitives']
    lootPoolChances_2 = [100]
    lootGroupChance_2 = 35
    mobileTemplate.addToLootGroups(lootPoolNames_2, lootPoolChances_2,
                                   lootGroupChance_2)

    core.spawnService.addMobileTemplate('eerie_pubam_spiritmaster',
                                        mobileTemplate)
    return
开发者ID:kamesakke,项目名称:NGECore2,代码行数:49,代码来源:eerie_pubam_spiritmaster.py

示例12: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import addToLootGroups [as 别名]
def addTemplate(core):
	mobileTemplate = MobileTemplate()

	mobileTemplate.setCreatureName('blood_razor_pirate_strong')
	mobileTemplate.setLevel(38)
	mobileTemplate.setDifficulty(Difficulty.NORMAL)

	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(True)
	mobileTemplate.setScale(1)
	mobileTemplate.setSocialGroup("bloodrazor")
	mobileTemplate.setAssistRange(8)
	mobileTemplate.setStalker(True)
	mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE | Options.ATTACKABLE)

	templates = Vector()
	templates.add('object/mobile/shared_dressed_blood_razor_pirate_strong_hum_f.iff')
	templates.add('object/mobile/shared_dressed_blood_razor_pirate_strong_hum_m.iff')
	templates.add('object/mobile/shared_dressed_blood_razor_pirate_strong_nikto_m.iff')
	templates.add('object/mobile/shared_dressed_blood_razor_pirate_strong_rod_m.iff')
	templates.add('object/mobile/shared_dressed_blood_razor_pirate_strong_tran_m.iff')
	templates.add('object/mobile/shared_dressed_blood_razor_pirate_strong_wee_m.iff')
	templates.add('object/mobile/shared_dressed_blood_razor_pirate_strong_zab_m.iff')
	mobileTemplate.setTemplates(templates)


	weaponTemplates = Vector()
	weapontemplate = WeaponTemplate('object/weapon/ranged/pistol/shared_pistol_power5.iff', WeaponType.PISTOL, 3.2, 6, 'energy')
	
	weaponTemplates.add(weapontemplate)
	mobileTemplate.setWeaponTemplateVector(weaponTemplates)

	attacks = Vector()
	mobileTemplate.setDefaultAttack('rangedShot')
	
	mobileTemplate.setAttacks(attacks)
	
	lootPoolNames_1 = ['Junk']
	lootPoolChances_1 = [100]
	lootGroupChance_1 = 100
	mobileTemplate.addToLootGroups(lootPoolNames_1,lootPoolChances_1,lootGroupChance_1)
	
	
	
	core.spawnService.addMobileTemplate('blood_razor_pirate_strong', mobileTemplate)
	return
开发者ID:oswin06082,项目名称:NGECore2,代码行数:49,代码来源:blood_razor_pirate_strong.py

示例13: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import addToLootGroups [as 别名]
def addTemplate(core):
	mobileTemplate = MobileTemplate()

	mobileTemplate.setCreatureName('blood_razor_pirate_weak')
	mobileTemplate.setLevel(37)
	mobileTemplate.setDifficulty(Difficulty.NORMAL)

	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(True)
	mobileTemplate.setScale(1)
	mobileTemplate.setSocialGroup("bloodrazor")
	mobileTemplate.setAssistRange(8)
	mobileTemplate.setStalker(True)
	mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE | Options.ATTACKABLE)

	templates = Vector()
	templates.add('object/mobile/shared_dressed_blood_razor_pirate_weak_wee_m.iff')
	templates.add('object/mobile/shared_dressed_blood_razor_pirate_weak_hum_f.iff')
	templates.add('object/mobile/shared_dressed_blood_razor_pirate_weak_hum_m.iff')
	templates.add('object/mobile/shared_dressed_blood_razor_pirate_weak_nikto_m.iff')
	templates.add('object/mobile/shared_dressed_blood_razor_pirate_weak_rod_m.iff')
	templates.add('object/mobile/shared_dressed_blood_razor_pirate_weak_zab_m.iff')
	mobileTemplate.setTemplates(templates)


	weaponTemplates = Vector()
	weapontemplate = WeaponTemplate('object/weapon/melee/polearm/shared_polearm_lance_electric_polearm.iff', WeaponType.POLEARMMELEE, 1.5, 6, 'kinetic')
	
	weaponTemplates.add(weapontemplate)
	mobileTemplate.setWeaponTemplateVector(weaponTemplates)

	attacks = Vector()
	mobileTemplate.setDefaultAttack('creatureMeleeAttack')
	
	mobileTemplate.setAttacks(attacks)
	
	lootPoolNames_1 = ['Junk']
	lootPoolChances_1 = [100]
	lootGroupChance_1 = 100
	mobileTemplate.addToLootGroups(lootPoolNames_1,lootPoolChances_1,lootGroupChance_1)
	
	
	
	core.spawnService.addMobileTemplate('blood_razor_pirate_weak', mobileTemplate)
	return
开发者ID:oswin06082,项目名称:NGECore2,代码行数:48,代码来源:blood_razor_pirate_weak.py

示例14: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import addToLootGroups [as 别名]
def addTemplate(core):
    mobileTemplate = MobileTemplate()

    mobileTemplate.setCreatureName('vicious_korga_battlelord')
    mobileTemplate.setLevel(78)
    mobileTemplate.setDifficulty(Difficulty.NORMAL)

    mobileTemplate.setMinSpawnDistance(3)
    mobileTemplate.setMaxSpawnDistance(5)
    mobileTemplate.setDeathblow(True)
    mobileTemplate.setSocialGroup('korga tribe')
    mobileTemplate.setAssistRange(12)
    mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE | Options.ATTACKABLE)
    mobileTemplate.setStalker(True)

    templates = Vector()
    templates.add('object/mobile/shared_dulok_male.iff')
    templates.add('object/mobile/shared_dulok_female.iff')
    mobileTemplate.setTemplates(templates)

    weaponTemplates = Vector()
    weapontemplate = WeaponTemplate(
        'object/weapon/melee/unarmed/shared_unarmed_default.iff',
        WeaponType.UNARMED, 1.0, 6, 'kinetic')
    weaponTemplates.add(weapontemplate)
    mobileTemplate.setWeaponTemplateVector(weaponTemplates)

    attacks = Vector()
    mobileTemplate.setDefaultAttack('meleeHit')
    mobileTemplate.setAttacks(attacks)

    lootPoolNames_1 = ['Junk']
    lootPoolChances_1 = [100]
    lootGroupChance_1 = 65
    mobileTemplate.addToLootGroups(lootPoolNames_1, lootPoolChances_1,
                                   lootGroupChance_1)

    lootPoolNames_2 = ['random_loot_primitives']
    lootPoolChances_2 = [100]
    lootGroupChance_2 = 35
    mobileTemplate.addToLootGroups(lootPoolNames_2, lootPoolChances_2,
                                   lootGroupChance_2)

    core.spawnService.addMobileTemplate('vicious_korga_battlelord',
                                        mobileTemplate)
    return
开发者ID:Demannu,项目名称:NGECore2,代码行数:48,代码来源:vicious_korga_battlelord.py

示例15: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import addToLootGroups [as 别名]
def addTemplate(core):
    mobileTemplate = MobileTemplate()

    mobileTemplate.setCreatureName("weathered_jinda_shaman")
    mobileTemplate.setLevel(66)
    mobileTemplate.setDifficulty(0)
    mobileTemplate.setAttackRange(5)
    mobileTemplate.setAttackSpeed(1.0)
    mobileTemplate.setWeaponType(6)
    mobileTemplate.setMinSpawnDistance(3)
    mobileTemplate.setMaxSpawnDistance(5)
    mobileTemplate.setDeathblow(False)
    mobileTemplate.setScale(1)
    mobileTemplate.setSocialGroup("jinda tribe")
    mobileTemplate.setAssistRange(1)
    mobileTemplate.setOptionsBitmask(128)
    mobileTemplate.setStalker(True)

    templates = Vector()
    templates.add("object/mobile/shared_jinda_male.iff")
    templates.add("object/mobile/shared_jinda_female.iff")

    mobileTemplate.setTemplates(templates)

    weaponTemplates = Vector()
    weapontemplate = WeaponTemplate("object/weapon/melee/unarmed/shared_unarmed_default.iff", 6, 1.0)
    weaponTemplates.add(weapontemplate)
    mobileTemplate.setWeaponTemplateVector(weaponTemplates)

    attacks = Vector()
    mobileTemplate.setDefaultAttack("meleeHit")
    mobileTemplate.setAttacks(attacks)

    lootPoolNames_1 = ["Junk"]
    lootPoolChances_1 = [100]
    lootGroupChance_1 = 65
    mobileTemplate.addToLootGroups(lootPoolNames_1, lootPoolChances_1, lootGroupChance_1)

    lootPoolNames_2 = ["random_loot_primitives"]
    lootPoolChances_2 = [100]
    lootGroupChance_2 = 35
    mobileTemplate.addToLootGroups(lootPoolNames_2, lootPoolChances_2, lootGroupChance_2)

    core.spawnService.addMobileTemplate("weathered_jinda_shaman", mobileTemplate)
    return
开发者ID:joshxx5,项目名称:NGECore2,代码行数:47,代码来源:weathered_jinda_shaman.py


注:本文中的services.spawn.MobileTemplate.addToLootGroups方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。