跨服bug热更
parent
56f9773f7b
commit
8f49866e06
|
|
@ -214,7 +214,7 @@ public class CrossServiceLogic {
|
|||
if (collect.isEmpty()){
|
||||
continue;
|
||||
}
|
||||
Map<Integer, Long> attribute = HeroLogic.getInstance().calHeroNotBufferAttribute(user, hero, true, teamId);
|
||||
Map<Integer, Long> attribute = HeroLogic.getInstance().calHeroNotBufferAttribute(user, hero, false, teamId);
|
||||
arenaOfHero.putAttributeMapByTeam(teamId,attribute);
|
||||
}
|
||||
return arenaOfHero;
|
||||
|
|
|
|||
|
|
@ -774,10 +774,16 @@ public class PlayerLogic {
|
|||
|
||||
Map<Integer, Long> heroNotBufferAttribute = hero.getAttributeMapByTeam().getOrDefault(teamId,new HashMap<>());
|
||||
for(Map.Entry<Integer,Long> item : heroNotBufferAttribute.entrySet()){
|
||||
builder.addSpecialEffects(CommonProto.SpecialEffects.newBuilder().setPropertyId(item.getKey()).setPropertyValue(item.getValue().intValue()).build());
|
||||
int id = item.getKey();
|
||||
int values = item.getValue().intValue();
|
||||
if (id == 53 || id == 57 || id == 58){
|
||||
values = item.getValue().intValue()-10000;
|
||||
}
|
||||
builder.addSpecialEffects(CommonProto.SpecialEffects.newBuilder().setPropertyId(id).setPropertyValue(values).build());
|
||||
}
|
||||
Map<String, PropertyItem> jewels = query.getHeroManager().getJewels();
|
||||
for(String equipId : hero.getJewelInfo()){
|
||||
heroBuilder.addJewels(equipId);
|
||||
builder.addEquip(CBean2Proto.getEquipProto(jewels.get(equipId)));
|
||||
}
|
||||
for(int equipId : hero.getEquipByPositionMap().values()){
|
||||
|
|
|
|||
Loading…
Reference in New Issue