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


Python MobileTemplate.setMilkType方法代码示例

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


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

示例1: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setMilkType [as 别名]
def addTemplate(core):
	mobileTemplate = MobileTemplate()
	
	mobileTemplate.setCreatureName('bantha')
	mobileTemplate.setLevel(14)
	mobileTemplate.setDifficulty(0)
	mobileTemplate.setAttackRange(5)
	mobileTemplate.setWeaponType(6)
	mobileTemplate.setAttackSpeed(1.0)
	mobileTemplate.setMilkType('Wild Milk')
	mobileTemplate.setMilkAmount(250)
	mobileTemplate.setHideType('Wooly Hide')
	mobileTemplate.setHideAmount(325)
	mobileTemplate.setMeatType('Herbivore Meat')
	mobileTemplate.setMeatAmount(450)
	mobileTemplate.setBoneType('Animal Bones')
	mobileTemplate.setBoneAmount(250)
	
	templates = Vector()
	templates.add('object/mobile/shared_bantha_hue.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('creatureMeleeAttack')
	mobileTemplate.setAttacks(attacks)
	
	core.spawnService.addMobileTemplate('bantha', mobileTemplate)
	return
开发者ID:alatzswg,项目名称:NGECore2,代码行数:35,代码来源:bantha.py

示例2: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setMilkType [as 别名]
def addTemplate(core):
	mobileTemplate = MobileTemplate()
	
	mobileTemplate.setCreatureName('elder_snorbal_female')
	mobileTemplate.setLevel(35)
	mobileTemplate.setDifficulty(Difficulty.NORMAL)
	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(False)
	mobileTemplate.setScale(1)
	mobileTemplate.setMeatType("Herbivore  Meat")
	mobileTemplate.setMeatAmount(545)
	mobileTemplate.setHideType("Leathery   Hide")
	mobileTemplate.setHideAmount(440)
	mobileTemplate.setBoneType("Mammal Bone")
	mobileTemplate.setBoneAmount(400)
	mobileTemplate.setMilkType("Wild Milk")
	mobileTemplate.setMilkAmount(25)
	mobileTemplate.setSocialGroup("snorbal")
	mobileTemplate.setAssistRange(12)
	mobileTemplate.setStalker(False)
	mobileTemplate.setOptionsBitmask(Options.ATTACKABLE)
	
	
	templates = Vector()
	templates.add('object/mobile/shared_snorbal.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()
	attacks.add('bm_charge_3')
	attacks.add('bm_shaken_1')
	attacks.add('bm_stomp_3')
	attacks.add('bm_bite_3')
	attacks.add('bm_stomp_3')
	
	mobileTemplate.setDefaultAttack('creatureMeleeAttack')
	mobileTemplate.setAttacks(attacks)
	
		
	core.spawnService.addMobileTemplate('elder_snorbal_female', mobileTemplate)
	return
开发者ID:oswin06082,项目名称:NGECore2,代码行数:50,代码来源:elder_snorbal_female.py

示例3: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setMilkType [as 别名]
def addTemplate(core):
	mobileTemplate = MobileTemplate()
	
	mobileTemplate.setCreatureName('kaadu')
	mobileTemplate.setLevel(8)
	mobileTemplate.setMinLevel(8)
	mobileTemplate.setMaxLevel(12)
	mobileTemplate.setDifficulty(Difficulty.NORMAL)

	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(False)
	mobileTemplate.setScale(1)
	mobileTemplate.setMeatType("Avian Meat")
	mobileTemplate.setMeatAmount(120)
	mobileTemplate.setHideType("Leathery Hide")
	mobileTemplate.setHideAmount(85)
	mobileTemplate.setBoneType("Avian Bones")
	mobileTemplate.setBoneAmount(70)
	mobileTemplate.setMilkType('Wild Milk')
	mobileTemplate.setMilkAmount(60)
	mobileTemplate.setSocialGroup("kaadu")
	mobileTemplate.setAssistRange(0)
	mobileTemplate.setStalker(False)
	mobileTemplate.setOptionsBitmask(Options.ATTACKABLE)
	
	templates = Vector()
	templates.add('object/mobile/shared_kaadu_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()
	attacks.add('bm_bite_1')
	attacks.add('bm_claw_1')
	attacks.add('bm_hamstring_1')
	attacks.add('bm_provoke_1')
	
	mobileTemplate.setDefaultAttack('creatureMeleeAttack')
	mobileTemplate.setAttacks(attacks)
	
	core.spawnService.addMobileTemplate('kaadu', mobileTemplate)
	return
开发者ID:oswin06082,项目名称:NGECore2,代码行数:48,代码来源:kaadu.py

示例4: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setMilkType [as 别名]
def addTemplate(core):
	mobileTemplate = MobileTemplate()
	
	mobileTemplate.setCreatureName('bachelor_gualama')
	mobileTemplate.setLevel(39)
	mobileTemplate.setMinLevel(39)
	mobileTemplate.setMaxLevel(41)
	mobileTemplate.setDifficulty(Difficulty.NORMAL)

	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(False)
	mobileTemplate.setScale(1)
	mobileTemplate.setMeatType("Wild Meat")
	mobileTemplate.setMeatAmount(200)
	mobileTemplate.setHideType("Wooly Hide")
	mobileTemplate.setHideAmount(150)
	mobileTemplate.setBoneType("Animal Bones")
	mobileTemplate.setBoneAmount(90)
	mobileTemplate.setMilkType('Wild Milk')
	mobileTemplate.setMilkAmount(100)
	mobileTemplate.setSocialGroup("gualama")
	mobileTemplate.setAssistRange(0)
	mobileTemplate.setStalker(False)
	mobileTemplate.setOptionsBitmask(Options.AGGRESSIVE | Options.ATTACKABLE)
	
	templates = Vector()
	templates.add('object/mobile/shared_gualama.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()
	attacks.add('bm_bite_3')
	attacks.add('bm_defensive_3')
	attacks.add('bm_kick_3')
	mobileTemplate.setDefaultAttack('creatureMeleeAttack')
	mobileTemplate.setAttacks(attacks)
	
	core.spawnService.addMobileTemplate('bachelor_gualama', mobileTemplate)
	return
开发者ID:oswin06082,项目名称:NGECore2,代码行数:46,代码来源:bachelor_gualama.py

示例5: addTemplate

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

	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(False)
	mobileTemplate.setScale(1)
	mobileTemplate.setMeatType("Herbivore Meat")
	mobileTemplate.setMeatAmount(450)
	mobileTemplate.setHideType("Leathery Hide")
	mobileTemplate.setHideAmount(300)
	mobileTemplate.setBoneType("Animal Bones")
	mobileTemplate.setBoneAmount(180)
	mobileTemplate.setSocialGroup("bolle bol")
	mobileTemplate.setMilkType('Wild Milk')
	mobileTemplate.setMilkAmount(75)#### Cant find milk amount info 
	mobileTemplate.setAssistRange(8)
	mobileTemplate.setStalker(False)
	mobileTemplate.setOptionsBitmask(Options.ATTACKABLE)
	
	templates = Vector()
	templates.add('object/mobile/shared_bolle_bol.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()
	attacks.add('bm_bite_1')
	attacks.add('bm_stomp_1')
	attacks.add('bm_bolster_armor_1')
	attacks.add('bm_charge_1')
	mobileTemplate.setDefaultAttack('creatureMeleeAttack')
	mobileTemplate.setAttacks(attacks)
	
	core.spawnService.addMobileTemplate('bolle_bol', mobileTemplate)
	return
开发者ID:oswin06082,项目名称:NGECore2,代码行数:45,代码来源:bolle_bol.py

示例6: addTemplate

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

	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(False)
	mobileTemplate.setScale(1)
	mobileTemplate.setMeatType("Wild  Meat")
	mobileTemplate.setMeatAmount(70)
	mobileTemplate.setHideType('Bristly Hide')
	mobileTemplate.setHideAmount(60)
	mobileTemplate.setBoneType('Mammal Bone')
	mobileTemplate.setBoneAmount(45)
	mobileTemplate.setMilkType('Wild Milk')
	mobileTemplate.setMilkAmount(45)
	mobileTemplate.setSocialGroup("ikopi")
	mobileTemplate.setAssistRange(0)
	mobileTemplate.setStalker(False)
	mobileTemplate.setOptionsBitmask(Options.ATTACKABLE)
	
	templates = Vector()
	templates.add('object/mobile/shared_ikopi_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()
	attacks.add('bm_charge_3')
	attacks.add('bm_defensive_3')
	attacks.add('bm_slash_3')
	mobileTemplate.setDefaultAttack('creatureMeleeAttack')
	mobileTemplate.setAttacks(attacks)
	
	core.spawnService.addMobileTemplate('mountain_ikopi', mobileTemplate)
	return
开发者ID:oswin06082,项目名称:NGECore2,代码行数:44,代码来源:mountain_ikopi.py

示例7: addTemplate

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

	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(False)
	mobileTemplate.setScale(1)
	mobileTemplate.setMeatType("Reptile Meat")
	mobileTemplate.setMeatAmount(1250)
	mobileTemplate.setHideType("Leathery Hide")
	mobileTemplate.setHideAmount(325)
	mobileTemplate.setBoneType("Animal Bones")
	mobileTemplate.setBoneAmount(675)
	mobileTemplate.setMilkType('Wild Milk')
	mobileTemplate.setMilkAmount(400)
	mobileTemplate.setSocialGroup("fambaa")
	mobileTemplate.setAssistRange(0)
	mobileTemplate.setStalker(False)
	mobileTemplate.setOptionsBitmask(Options.ATTACKABLE)
	
	templates = Vector()
	templates.add('object/mobile/shared_fambaa.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()
	attacks.add('bm_dampen_pain_2')
	attacks.add('bm_shaken_2')
	attacks.add('bm_stomp_2')
	mobileTemplate.setDefaultAttack('creatureMeleeAttack')
	mobileTemplate.setAttacks(attacks)
	
	core.spawnService.addMobileTemplate('fambaa', mobileTemplate)
	return
开发者ID:oswin06082,项目名称:NGECore2,代码行数:44,代码来源:fambaa.py

示例8: addTemplate

# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setMilkType [as 别名]
def addTemplate(core):
	mobileTemplate = MobileTemplate()
	
	mobileTemplate.setCreatureName('gungan_falumpaset')
	mobileTemplate.setLevel(16)
	mobileTemplate.setDifficulty(Difficulty.NORMAL)
	mobileTemplate.setMinSpawnDistance(4)
	mobileTemplate.setMaxSpawnDistance(8)
	mobileTemplate.setDeathblow(False)
	mobileTemplate.setScale(1)
	mobileTemplate.setMeatType("Domesticated Meat")
	mobileTemplate.setMeatAmount(230)
	mobileTemplate.setHideType("Leathery Hide")
	mobileTemplate.setHideAmount(130)
	mobileTemplate.setBoneType("Mammal Bones")
	mobileTemplate.setBoneAmount(80)
	mobileTemplate.setMilkType('Wild Milk')
	mobileTemplate.setMilkAmount(50)
	mobileTemplate.setSocialGroup("gungan")
	mobileTemplate.setAssistRange(6)
	mobileTemplate.setStalker(False)
	mobileTemplate.setOptionsBitmask(Options.ATTACKABLE)
	
	templates = Vector()
	templates.add('object/mobile/shared_falumpaset_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()
	attacks.add('bm_bite_2')
	attacks.add('bm_kick_2')
	attacks.add('bm_spit_2')
	mobileTemplate.setDefaultAttack('creatureMeleeAttack')
	mobileTemplate.setAttacks(attacks)
	
	core.spawnService.addMobileTemplate('gungan_falumpaset', mobileTemplate)
	return
开发者ID:oswin06082,项目名称:NGECore2,代码行数:43,代码来源:gungan_falumpaset.py


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