一键装备
parent
da3ad5f06e
commit
521b7d062a
|
@ -19,6 +19,6 @@ public class SoulEquipWearHandler extends BaseHandler<HeroInfoProto.SoulEquipWea
|
|||
@Override
|
||||
public void processWithProto(ISession iSession, HeroInfoProto.SoulEquipWearRequest equipWearRequest) throws Exception {
|
||||
List<HeroInfoProto.SoulEquipPos> equipIdsList = equipWearRequest.getSoulEquipIdsList();
|
||||
HeroLogic.getInstance().wearSoulEquipOpt(iSession,equipWearRequest.getHeroId(),equipIdsList);
|
||||
HeroLogic.getInstance().wearSoulEquipOpt(iSession,equipWearRequest.getHeroId(),equipIdsList,equipWearRequest.getType());
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1432,7 +1432,7 @@ public class HeroLogic {
|
|||
|
||||
|
||||
// 安装魂印
|
||||
public void wearSoulEquipOpt(ISession session,String heroId, List<HeroInfoProto.SoulEquipPos> equipIds) throws Exception {
|
||||
public void wearSoulEquipOpt(ISession session,String heroId, List<HeroInfoProto.SoulEquipPos> equipIds,int type) throws Exception {
|
||||
int uid = session.getUid();
|
||||
User user = UserManager.getUser(uid);
|
||||
Hero hero = user.getHeroManager().getHeroMap().get(heroId);
|
||||
|
@ -1453,7 +1453,7 @@ public class HeroLogic {
|
|||
if (null == cfg ) {
|
||||
throw new Exception("装备配置不存在" + equip.getCfgId());
|
||||
}
|
||||
if(equipIds.size()!=6){
|
||||
if(type!=1){
|
||||
currentType.put(entry.getKey(),cfg.getType());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue