yx查看英雄宝物数字右上标

back_recharge
xuexinpeng 2021-10-16 15:05:29 +08:00
parent ecba1854dd
commit 06c60f4d0a
2 changed files with 9 additions and 7 deletions

View File

@ -132,7 +132,7 @@ public class CoreService implements RPCRequestIFace.Iface {
Map<String, com.ljsd.jieling.logic.dao.PropertyItem> equipMap = user.getEquipManager().getEquipMap();
heroMap.values().forEach(v-> v.getJewelInfo().forEach(v2->{
com.ljsd.jieling.logic.dao.PropertyItem item = equipMap.get(v2);
jewels.put(v2,buildrprcPropertyItem(item));
jewels.put(v2,buildrprcPropertyItem(item,user,v));
}));
HashMap<Integer, Integer> map = new HashMap<>();
teams.forEach((k,v)->{
@ -185,12 +185,13 @@ public class CoreService implements RPCRequestIFace.Iface {
}
return null;
}
private PropertyItem buildrprcPropertyItem(com.ljsd.jieling.logic.dao.PropertyItem propertyItem){
private PropertyItem buildrprcPropertyItem(com.ljsd.jieling.logic.dao.PropertyItem propertyItem,User user,Hero hero){
PropertyItem rpcPropertyItem = new PropertyItem();
rpcPropertyItem.setId(propertyItem.getId());
rpcPropertyItem.setEquipId(propertyItem.getEquipId());
rpcPropertyItem.setLevel(propertyItem.getLevel());
//tempEquip.getLevelByHongMeng(user.getHeroManager(),heroId)
//rpcPropertyItem.setLevel(propertyItem.getLevelByHongMeng());
rpcPropertyItem.setHeroId(propertyItem.getHeroId());
rpcPropertyItem.setPropertyValueByIdMap(propertyItem.getPropertyValueByIdMap());
rpcPropertyItem.setSecondValueByIdMap(propertyItem.getSecondValueByIdMap());
@ -200,6 +201,7 @@ public class CoreService implements RPCRequestIFace.Iface {
if(propertyItem instanceof Jewel){
Jewel tempEquip =(Jewel)propertyItem;
rpcPropertyItem.setRebuildLevel(tempEquip.getBuildLevel());
rpcPropertyItem.setLevel(tempEquip.getLevelByHongMeng(user.getHeroManager(),hero.getId()));
}
return rpcPropertyItem;
}

View File

@ -1177,9 +1177,9 @@ public class PlayerLogic {
for(Map.Entry<Integer,Long> item : heroNotBufferAttribute.entrySet()){
int id = item.getKey();
int values = item.getValue().intValue();
if (id == 53 || id == 57 || id == 58){
/*if (id == 53 || id == 57 || id == 58){
values = item.getValue().intValue()-10000;
}
}*/
builder.addSpecialEffects(CommonProto.SpecialEffects.newBuilder().setPropertyId(id).setPropertyValue(values).build());
}
Map<String, com.ljsd.jieling.thrift.idl.PropertyItem> jewels = crossArenaManager.getJewels();
@ -1224,9 +1224,9 @@ public class PlayerLogic {
for(Map.Entry<Integer,Long> item : heroNotBufferAttribute.entrySet()){
int id = item.getKey();
int values = item.getValue().intValue();
if (id == 53 || id == 57 || id == 58){
/*if (id == 53 || id == 57 || id == 58){
values = item.getValue().intValue()-10000;
}
}*/
builder.addSpecialEffects(CommonProto.SpecialEffects.newBuilder().setPropertyId(id).setPropertyValue(values).build());
}