feat(fight): 新增玩家特效配置并优化精灵特效生成逻辑
This commit is contained in:
@@ -94,11 +94,16 @@ func GenPetInfo(id int, dv, natureId, abilityTypeEnum, shinyid, level []int) *Pe
|
||||
|
||||
if abilityTypeEnum != nil {
|
||||
|
||||
rrr := xmlres.EffectMAP[RandomInRange(abilityTypeEnum)+1006]
|
||||
p.EffectInfo = append(p.EffectInfo, PetEffectInfo{
|
||||
EID: uint16(gconv.Int16(rrr.Eid)),
|
||||
Args: rrr.ArgsS,
|
||||
})
|
||||
for i, v := range xmlres.PlayerEffectMAP {
|
||||
if RandomInRange(abilityTypeEnum) == i {
|
||||
p.EffectInfo = append(p.EffectInfo, PetEffectInfo{
|
||||
EID: uint16(gconv.Int16(v.Eid)),
|
||||
Args: v.ArgsS,
|
||||
})
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//p.EffectInfo[0].Args = []int{petxml.Type, 5} //默认等级1
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user