本文整理汇总了Python中services.spawn.MobileTemplate.setMilkAmount方法的典型用法代码示例。如果您正苦于以下问题:Python MobileTemplate.setMilkAmount方法的具体用法?Python MobileTemplate.setMilkAmount怎么用?Python MobileTemplate.setMilkAmount使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类services.spawn.MobileTemplate
的用法示例。
在下文中一共展示了MobileTemplate.setMilkAmount方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setMilkAmount [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
示例2: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setMilkAmount [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
示例3: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setMilkAmount [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
示例4: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setMilkAmount [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
示例5: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setMilkAmount [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
示例6: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setMilkAmount [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
示例7: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setMilkAmount [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
示例8: addTemplate
# 需要导入模块: from services.spawn import MobileTemplate [as 别名]
# 或者: from services.spawn.MobileTemplate import setMilkAmount [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