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


Python MobileTemplate.setHideType方法代码示例

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


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

示例1: addTemplate

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

	mobileTemplate.setMinSpawnDistance(5)
	mobileTemplate.setMaxSpawnDistance(10)
	mobileTemplate.setDeathblow(False)
	mobileTemplate.setScale(1)
	mobileTemplate.setMeatType("Insect Meat")
	mobileTemplate.setMeatAmount(9)
	mobileTemplate.setHideType("Scaley Hide")
	mobileTemplate.setBoneAmount(9)	
	mobileTemplate.setSocialGroup("decay mite")
	mobileTemplate.setAssistRange(6)
	mobileTemplate.setStalker(True)
	mobileTemplate.setOptionsBitmask(128)	

	templates = Vector()
	templates.add('object/mobile/shared_bark_mite_hue.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('creatureMeleeAttack')
	mobileTemplate.setAttacks(attacks)

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

示例2: addTemplate

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

	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(True)
	mobileTemplate.setScale(1)
	mobileTemplate.setHideType("Wooly Hide")
	mobileTemplate.setHideAmount(40)
	mobileTemplate.setBoneType("Mammal Bones")
	mobileTemplate.setBoneAmount(40)
	mobileTemplate.setSocialGroup("woolamander")
	mobileTemplate.setAssistRange(40)
	mobileTemplate.setStalker(False)
	mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE + Options.ATTACKABLE)
	
	templates = Vector()
	templates.add('object/mobile/shared_woolamander_hue.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('creatureMeleeAttack')
	mobileTemplate.setAttacks(attacks)
	
	core.spawnService.addMobileTemplate('woolamander_harrower', mobileTemplate)
	return
开发者ID:MrDinnertime,项目名称:NGECore2,代码行数:37,代码来源:woolamander_harrower.py

示例3: addTemplate

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

	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(False)
	mobileTemplate.setScale(1)
	mobileTemplate.setMeatType("Carnivore Meat")
	mobileTemplate.setMeatAmount(7)
	mobileTemplate.setHideType("Scaley Hide")
	mobileTemplate.setHideAmount(4)
	mobileTemplate.setSocialGroup("crystal snake")
	mobileTemplate.setAssistRange(12)
	mobileTemplate.setStalker(False)
	mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE + Options.ATTACKABLE)
	
	templates = Vector()
	templates.add('object/mobile/shared_giant_crystal_snake.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('creatureMeleeAttack')
	mobileTemplate.setAttacks(attacks)
	
	core.spawnService.addMobileTemplate('giant_crystal_snake', mobileTemplate)
	return
开发者ID:MrDinnertime,项目名称:NGECore2,代码行数:37,代码来源:giant_crystal_snake.py

示例4: addTemplate

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

	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(True)
	mobileTemplate.setScale(1)
	mobileTemplate.setHideType("Leathery Hide")
	mobileTemplate.setHideAmount(5)
	mobileTemplate.setBoneType("Avian Bones")
	mobileTemplate.setBoneAmount(5)
	mobileTemplate.setSocialGroup("borgle")
	mobileTemplate.setAssistRange(12)
	mobileTemplate.setStalker(True)
	mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE | Options.ATTACKABLE)
	
	templates = Vector()
	templates.add('object/mobile/shared_borgle.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('creatureMeleeAttack')
	mobileTemplate.setAttacks(attacks)
	
	core.spawnService.addMobileTemplate('fierce_borgle', mobileTemplate)
	return
开发者ID:Daneti,项目名称:NGECore2,代码行数:37,代码来源:fierce_borgle.py

示例5: addTemplate

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

	mobileTemplate.setMinSpawnDistance(5)
	mobileTemplate.setMaxSpawnDistance(10)
	mobileTemplate.setDeathblow(False)
	mobileTemplate.setScale(1)
	mobileTemplate.setMeatType("Herbivore Meat")
	mobileTemplate.setMeatAmount(35)
	mobileTemplate.setHideType("Leathery Hide")
	mobileTemplate.setBoneAmount(25)	
	mobileTemplate.setBoneType("Avian Bone")
	mobileTemplate.setHideAmount(30)
	mobileTemplate.setSocialGroup("piket")
	mobileTemplate.setAssistRange(12)
	mobileTemplate.setStalker(False)	

	templates = Vector()
	templates.add('object/mobile/shared_piket.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('creatureMeleeAttack')
	mobileTemplate.setAttacks(attacks)
	
	core.spawnService.addMobileTemplate('piket', mobileTemplate)
	return
开发者ID:Daneti,项目名称:NGECore2,代码行数:37,代码来源:piket.py

示例6: addTemplate

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

	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(False)
	mobileTemplate.setScale(2)
	mobileTemplate.setMeatType("Insect Meat")
	mobileTemplate.setMeatAmount(8)
	mobileTemplate.setHideType("Scaley Hide")
	mobileTemplate.setHideAmount(10)	
	mobileTemplate.setSocialGroup("rock beetle")
	mobileTemplate.setAssistRange(6)
	mobileTemplate.setStalker(False)
	mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE + Options.ATTACKABLE)	
	
	templates = Vector()
	templates.add('object/mobile/shared_rock_beetle.iff')
	mobileTemplate.setTemplates(templates)

	weaponTemplates = Vector()
	weapontemplate = WeaponTemplate('object/weapon/ranged/creature/shared_creature_spit_small_toxicgreen.iff', WeaponType.UNARMED, 1.0, 6, 'kinetic')
	weaponTemplates.add(weapontemplate)
	mobileTemplate.setWeaponTemplateVector(weaponTemplates)
	
	attacks = Vector()
	mobileTemplate.setDefaultAttack('creatureRangedAttack')
	mobileTemplate.setAttacks(attacks)
	
	core.spawnService.addMobileTemplate('rock_beetle', mobileTemplate)
	return
开发者ID:Orsidus,项目名称:NGECore2,代码行数:37,代码来源:rock_beetle.py

示例7: addTemplate

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

	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(True)
	mobileTemplate.setScale(1)
	mobileTemplate.setMeatType("Reptile Meat")
	mobileTemplate.setMeatAmount(20)
	mobileTemplate.setHideType("Scaley Hide")
	mobileTemplate.setHideAmount(24)
	mobileTemplate.setSocialGroup("blistmok")
	mobileTemplate.setAssistRange(24)
	mobileTemplate.setStalker(True)
	mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE | Options.ATTACKABLE)
	
	templates = Vector()
	templates.add('object/mobile/shared_blistmok.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('creatureMeleeAttack')
	mobileTemplate.setAttacks(attacks)
	
	core.spawnService.addMobileTemplate('blistmok_crystal_stalker', mobileTemplate)
	return
开发者ID:Avasia,项目名称:NGECore2,代码行数:37,代码来源:blistmok_crystal_stalker.py

示例8: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setHideType [as 别名]
def addTemplate(core):
	mobileTemplate = MobileTemplate()
	
	mobileTemplate.setCreatureName('female_kwi')
	mobileTemplate.setLevel(63)
	mobileTemplate.setDifficulty(Difficulty.NORMAL)
	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(False)
	mobileTemplate.setScale(1)
	mobileTemplate.setMeatType("Herbivore Meat")
	mobileTemplate.setMeatAmount(100)
	mobileTemplate.setHideType("Leathery Hide")
	mobileTemplate.setHideAmount(86)
	mobileTemplate.setBoneType("Animal Bones")
	mobileTemplate.setBoneAmount(76)
	mobileTemplate.setSocialGroup("kwi")
	mobileTemplate.setAssistRange(12)
	mobileTemplate.setStalker(False)
	mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE | Options.ATTACKABLE)
	
	templates = Vector()
	templates.add('object/mobile/shared_kwi.iff')
	mobileTemplate.setTemplates(templates)
	
	
	attacks = Vector()
	attacks.add('bm_bite_4')
	attacks.add('bm_hamstring_4')
	mobileTemplate.setDefaultAttack('creatureMeleeAttack')
	mobileTemplate.setAttacks(attacks)
	
	core.spawnService.addMobileTemplate('female_kwi', mobileTemplate)
开发者ID:Avasia,项目名称:NGECore2,代码行数:35,代码来源:female_kwi.py

示例9: addTemplate

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

    mobileTemplate.setCreatureName("verne")
    mobileTemplate.setLevel(60)
    mobileTemplate.setDifficulty(Difficulty.NORMAL)
    mobileTemplate.setMinSpawnDistance(4)
    mobileTemplate.setMaxSpawnDistance(8)
    mobileTemplate.setDeathblow(False)
    mobileTemplate.setScale(1)
    mobileTemplate.setMeatType("Herbivore Meat")
    mobileTemplate.setMeatAmount(125)
    mobileTemplate.setHideType("Leathery Hide")
    mobileTemplate.setHideAmount(90)
    mobileTemplate.setBoneType("Animal Bones")
    mobileTemplate.setBoneAmount(80)
    mobileTemplate.setSocialGroup("verne")
    mobileTemplate.setAssistRange(12)
    mobileTemplate.setStalker(False)
    mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE | Options.ATTACKABLE)

    templates = Vector()
    templates.add("object/mobile/shared_verne.iff")
    mobileTemplate.setTemplates(templates)

    attacks = Vector()
    attacks.add("bm_charge_4")
    attacks.add("bm_defensive_4")
    attacks.add("bm_slash_4")
    mobileTemplate.setDefaultAttack("creatureMeleeAttack")
    mobileTemplate.setAttacks(attacks)

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

示例10: addTemplate

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

	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(False)
	mobileTemplate.setScale(1)
	mobileTemplate.setMeatType("Reptile Meat")
	mobileTemplate.setMeatAmount(6)
	mobileTemplate.setHideType("Leathery Hide")
	mobileTemplate.setHideAmount(6)
	mobileTemplate.setSocialGroup("spined puc")
	mobileTemplate.setAssistRange(12)
	mobileTemplate.setStalker(False)
	mobileTemplate.setOptionsBitmask(128)
	
	templates = Vector()
	templates.add('object/mobile/shared_spined_puc.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('creatureMeleeAttack')
	mobileTemplate.setAttacks(attacks)
	
	core.spawnService.addMobileTemplate('spined_puc', mobileTemplate)
	return
开发者ID:Daneti,项目名称:NGECore2,代码行数:37,代码来源:spined_puc.py

示例11: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setHideType [as 别名]
def addTemplate(core):
	mobileTemplate = MobileTemplate()
	
	mobileTemplate.setCreatureName('verne_bull')
	mobileTemplate.setLevel(61)
	mobileTemplate.setDifficulty(Difficulty.NORMAL)
	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(False)
	mobileTemplate.setScale(1)
	mobileTemplate.setMeatType("Wild Meat")
	mobileTemplate.setMeatAmount(110)
	mobileTemplate.setHideType("Leathery Hide")
	mobileTemplate.setHideAmount(95)
	mobileTemplate.setBoneType("Animal Bones")
	mobileTemplate.setBoneAmount(85)
	mobileTemplate.setSocialGroup("verne")
	mobileTemplate.setAssistRange(12)
	mobileTemplate.setStalker(False)
	mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE | Options.ATTACKABLE)
	
	templates = Vector()
	templates.add('object/mobile/shared_verne_bull.iff')
	mobileTemplate.setTemplates(templates)
	
	
	attacks = Vector()
	mobileTemplate.setDefaultAttack('creatureMeleeAttack')
	mobileTemplate.setAttacks(attacks)
	
	core.spawnService.addMobileTemplate('verne_bull', mobileTemplate)
开发者ID:Daneti,项目名称:NGECore2,代码行数:33,代码来源:verne_bull.py

示例12: addTemplate

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

	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(True)
	mobileTemplate.setScale(1.2)
	mobileTemplate.setMeatType("Wild Meat")
	mobileTemplate.setMeatAmount(33)
	mobileTemplate.setHideType("Leathery Hide")
	mobileTemplate.setHideAmount(24)
	mobileTemplate.setSocialGroup("tulrus")
	mobileTemplate.setAssistRange(24)
	mobileTemplate.setStalker(False)
	mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE | Options.ATTACKABLE)
	
	templates = Vector()
	templates.add('object/mobile/shared_tulrus.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('creatureMeleeAttack')
	mobileTemplate.setAttacks(attacks)
	
	core.spawnService.addMobileTemplate('ancient_tulrus', mobileTemplate)
	return
开发者ID:Avasia,项目名称:NGECore2,代码行数:37,代码来源:ancient_tulrus.py

示例13: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setHideType [as 别名]
def addTemplate(core):
	mobileTemplate = MobileTemplate()
	
	mobileTemplate.setCreatureName('malkloc')
	mobileTemplate.setLevel(74)
	mobileTemplate.setDifficulty(Difficulty.NORMAL)
	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(False)
	mobileTemplate.setScale(1)
	mobileTemplate.setMeatType("Herbivore Meat")
	mobileTemplate.setMeatAmount(1100)
	mobileTemplate.setHideType("Leathery Hide")
	mobileTemplate.setHideAmount(1200)
	mobileTemplate.setBoneType("Animal Bones")
	mobileTemplate.setBoneAmount(1100)
	mobileTemplate.setSocialGroup("malkloc")
	mobileTemplate.setAssistRange(12)
	mobileTemplate.setStalker(False)
	mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE | Options.ATTACKABLE)
	
	templates = Vector()
	templates.add('object/mobile/shared_malkloc.iff')
	mobileTemplate.setTemplates(templates)
	
	
	attacks = Vector()
	attacks.add('bm_dampen_pain_5')
	attacks.add('bm_deflective_hide')
	attacks.add('bm_puncture_3')
	attacks.add('bm_stomp_5')
	mobileTemplate.setDefaultAttack('creatureMeleeAttack')
	mobileTemplate.setAttacks(attacks)
	
	core.spawnService.addMobileTemplate('malkloc', mobileTemplate)
开发者ID:Avasia,项目名称:NGECore2,代码行数:37,代码来源:malkloc.py

示例14: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setHideType [as 别名]
def addTemplate(core):
	mobileTemplate = MobileTemplate()
	
	mobileTemplate.setCreatureName('kamurith_nocuous')
	mobileTemplate.setLevel(68)
	mobileTemplate.setDifficulty(Difficulty.NORMAL)
	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(True)
	mobileTemplate.setScale(1)
	mobileTemplate.setMeatType("Carnivore Meat")
	mobileTemplate.setMeatAmount(90)
	mobileTemplate.setHideType("Leathery Hide")
	mobileTemplate.setHideAmount(65)
	mobileTemplate.setBoneType("Avian Bones")
	mobileTemplate.setBoneAmount(50)
	mobileTemplate.setSocialGroup("kamurith")
	mobileTemplate.setAssistRange(12)
	mobileTemplate.setStalker(False)
	mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE | Options.ATTACKABLE)
	
	templates = Vector()
	templates.add('object/mobile/shared_vexed_voritor_lizard.iff')
	mobileTemplate.setTemplates(templates)
	
	attacks = Vector()
	attacks.add('bm_bite_5')
	attacks.add('bm_bolster_armor_5')
	attacks.add('bm_disease_5')
	attacks.add('bm_enfeeble_5')
	mobileTemplate.setDefaultAttack('creatureMeleeAttack')
	mobileTemplate.setAttacks(attacks)
	
	core.spawnService.addMobileTemplate('nocuous_kamurith', mobileTemplate)
开发者ID:Avasia,项目名称:NGECore2,代码行数:36,代码来源:nocuous_kamurith.py

示例15: addTemplate

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

	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(True)
	mobileTemplate.setScale(1.2)
	mobileTemplate.setHideType("Leathery Hide")
	mobileTemplate.setHideAmount(50)
	mobileTemplate.setSocialGroup("merek")
	mobileTemplate.setAssistRange(12)
	mobileTemplate.setStalker(False)
	mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE + Options.ATTACKABLE)
	
	templates = Vector()
	templates.add('object/mobile/shared_merek.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('creatureRangedAttack')
	mobileTemplate.setAttacks(attacks)
	
	core.spawnService.addMobileTemplate('king_merek_harvester', mobileTemplate)
	return
开发者ID:MrDinnertime,项目名称:NGECore2,代码行数:35,代码来源:king_merek_harvester.py


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