上传装备套装数据维护
This commit is contained in:
parent
233f9f4367
commit
77e141ec29
@ -114,11 +114,15 @@ func (this *apiComp) Equip(session comm.IUserSession, req *pb.EquipmentEquipReq)
|
||||
confs[2].Suittype == confs[3].Suittype {
|
||||
hero.SuiteId = confs[0].Suittype
|
||||
}
|
||||
} else {
|
||||
hero.SuiteId = 0
|
||||
}
|
||||
if subsit { //后2个位置都有装备 判断是否存在套装
|
||||
if confs[4].Suittype == confs[5].Suittype {
|
||||
hero.SuiteExtId = confs[4].Suittype
|
||||
}
|
||||
} else {
|
||||
hero.SuiteId = 0
|
||||
}
|
||||
//更新装备数据加成
|
||||
if code = this.module.ModuleHero.UpdateEquipment(session, hero, equipments); code != pb.ErrorCode_Success {
|
||||
|
Loading…
Reference in New Issue
Block a user