骑砍战团MOD开发(18)-module_troops预制常量

一.兵种类型

#兵种皮肤 顺序0/1/2与module_skin.py对应 兵种皮肤最多16种
tf_male           = 0
tf_female         = 1
tf_song_male      = 2
troop_type_mask   = 0x0000000f

#英雄
tf_hero              = 0x00000010

#宝箱物品交换对应兵种
tf_inactive          = 0x00000020


#骑兵
tf_mounted           = 0x00000400

#商人(物品槽不放置装备)
tf_is_merchant       = 0x00001000 

#随机脸谱
tf_randomize_face    = 0x00008000

#装备槽是否挂载装备
tf_guarantee_boots            = 0x00100000
tf_guarantee_armor            = 0x00200000
tf_guarantee_helmet           = 0x00400000
tf_guarantee_gloves           = 0x00800000
tf_guarantee_horse            = 0x01000000
tf_guarantee_shield           = 0x02000000
tf_guarantee_ranged           = 0x04000000
tf_guarantee_polearm          = 0x08000000

#部队列表无法被移除
tf_unmoveable_in_party_window = 0x10000000

tf_unkillable        = 0x00000040
tf_allways_fall_dead = 0x00000080
tf_no_capture_alive  = 0x00000100

二.兵种属性

#力量
ca_strength     = 0
#敏捷
ca_agility      = 1
#智力(控制人物技能的加点)
ca_intelligence = 2
#魅力
ca_charisma     = 3

header_operation.py接口:
troop_raise_attribute  = 1520  # (troop_raise_attribute, , , ),

三.兵种武器熟练度

#单手
wpt_one_handed_weapon = 0
#双手
wpt_two_handed_weapon = 1
#长杆
wpt_polearm           = 2
#弓箭
wpt_archery           = 3
#弩
wpt_crossbow          = 4
#投掷
wpt_throwing          = 5
#火器
wpt_firearm           = 6

header_operation.py提供API:
troop_raise_proficiency = 1522  # (troop_raise_proficiency, , , ),

你可能感兴趣的:(骑砍1战团mod开发,游戏程序)