排行榜本服查看英雄信息exp等级显示问题

DESKTOP-98AVA47\Administrator 2021-10-30 09:25:53 +08:00
parent 0fb715e75f
commit fb75fd38c6
2 changed files with 4 additions and 4 deletions

View File

@ -1243,7 +1243,7 @@ public class PlayerLogic {
}));
for(String equipId : hero.getJewelInfo()){
heroBuilder.addJewels(equipId);
builder.addEquip(CBean2Proto.getEquipProtoyx(jewels.get(equipId),user));
builder.addEquip(CBean2Proto.getEquipProtoyx(jewels.get(equipId),user,heroId));
}
// 装备
Collection<Integer> equipList =hero.getEquipByPositionMap().values();

View File

@ -498,7 +498,7 @@ public class CBean2Proto {
}
return equipProto.build();
}
public static CommonProto.Equip getEquipProtoyx(PropertyItem equip,User user){
public static CommonProto.Equip getEquipProtoyx(PropertyItem equip,User user,String heroId){
//前端读表
// Map<Integer, Integer> propertyValueByIdMap = equip.getPropertyValueByIdMap();
Map<Integer, Long> secondValueByIdMap = equip.getSecondValueByIdMap();
@ -513,10 +513,10 @@ public class CBean2Proto {
.setRebuildLevel(tempEquip.getRebuildLevel())
.setSkillId(tempEquip.getSkill());
}
if(equip instanceof Jewel){
if(equip instanceof Jewel){//tempEquip.getLevelByHongMeng(user.getHeroManager(),heroId
Jewel tempEquip =(Jewel)equip;
equipProto.setRebuildLevel(tempEquip.getBuildLevel())
.setExp(tempEquip.getLevel()).setTreeLv(user.getPlayerInfoManager().getTreeLevel());
.setExp(tempEquip.getLevelByHongMeng(user.getHeroManager(),heroId)).setTreeLv(user.getPlayerInfoManager().getTreeLevel());
}
return equipProto.build();
}