跨服排行,展示宝物和英雄皮肤
parent
d876273349
commit
b14a43d74e
|
|
@ -207,6 +207,7 @@ public class CrossServiceLogic {
|
|||
arenaOfHero.setJewelInfo(new HashSet<>(hero.getJewelInfo()));
|
||||
arenaOfHero.setCreateTime(hero.getCreateType());
|
||||
arenaOfHero.setChangeId(hero.getChangeId());
|
||||
arenaOfHero.setSkin(hero.getSkin());
|
||||
for (Map.Entry<Integer, List<TeamPosHeroInfo>> entry : teamMap.entrySet()) {
|
||||
Integer teamId = entry.getKey();
|
||||
List<TeamPosHeroInfo> teamList = entry.getValue();
|
||||
|
|
|
|||
|
|
@ -24,26 +24,11 @@ public class ArenaOfHero {
|
|||
private int especialEquipLevel;
|
||||
private int createType;
|
||||
private int changeId;
|
||||
private int skin;
|
||||
private Set<String> jewelInfo = new HashSet<>();
|
||||
private Map<Integer,Long> attributeMap = new HashMap<>();
|
||||
private Map<Integer,Map<Integer,Long>> attributeMapByTeam = new HashMap<>();
|
||||
|
||||
public ArenaOfHero(String id, int templateId, int level, int star, Map<Integer, Integer> equipByPositionMap, Map<Integer, Integer> soulEquipByPositionMap, int breakId, int starBreakId, int createTime, int especialEquipLevel, int createType, int changeId, Set<String> jewelInfo) {
|
||||
this.id = id;
|
||||
this.templateId = templateId;
|
||||
this.level = level;
|
||||
this.star = star;
|
||||
this.equipByPositionMap = equipByPositionMap;
|
||||
this.soulEquipByPositionMap = soulEquipByPositionMap;
|
||||
this.breakId = breakId;
|
||||
this.starBreakId = starBreakId;
|
||||
this.createTime = createTime;
|
||||
this.especialEquipLevel = especialEquipLevel;
|
||||
this.createType = createType;
|
||||
this.changeId = changeId;
|
||||
this.jewelInfo = jewelInfo;
|
||||
}
|
||||
|
||||
public ArenaOfHero() {
|
||||
|
||||
}
|
||||
|
|
@ -175,4 +160,11 @@ public class ArenaOfHero {
|
|||
attributeMapByTeam.put(teamId,attributeMap);
|
||||
}
|
||||
|
||||
public int getSkin() {
|
||||
return skin;
|
||||
}
|
||||
|
||||
public void setSkin(int skin) {
|
||||
this.skin = skin;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -759,7 +759,7 @@ public class PlayerLogic {
|
|||
* @return
|
||||
* @throws Exception
|
||||
*/
|
||||
public PlayerInfoProto.ViewHeroInfoResponse viewCrossHeroInfo(int uid,String heroId,int teamId) throws Exception {
|
||||
public PlayerInfoProto.ViewHeroInfoResponse viewCrossHeroInfo(int uid,String heroId,int teamId) throws Exception {
|
||||
|
||||
ArenaOfUser query = CrossServiceLogic.getInstance().query(uid);
|
||||
|
||||
|
|
@ -777,10 +777,11 @@ public class PlayerLogic {
|
|||
builder.addSpecialEffects(CommonProto.SpecialEffects.newBuilder().setPropertyId(item.getKey()).setPropertyValue(item.getValue().intValue()).build());
|
||||
}
|
||||
Map<String, PropertyItem> jewels = query.getHeroManager().getJewels();
|
||||
for(String equipId : hero.getJewelInfo()){
|
||||
for(String equipId : hero.getJewelInfo()){
|
||||
heroBuilder.addJewels(equipId);
|
||||
builder.addEquip(CBean2Proto.getEquipProto(jewels.get(equipId)));
|
||||
}
|
||||
for(int equipId : hero.getEquipByPositionMap().values()){
|
||||
for(int equipId : hero.getEquipByPositionMap().values()){
|
||||
heroBuilder.addEquipIdList(equipId);
|
||||
builder.addEquip(CBean2Proto.getEquipProto(equipId));
|
||||
}
|
||||
|
|
@ -788,6 +789,7 @@ public class PlayerLogic {
|
|||
for(Map.Entry<Integer,Integer> entry: soulEquipByPositionMap.entrySet()){
|
||||
heroBuilder.addSoulPos(CommonProto.SoulPos.newBuilder().setEquipId(entry.getValue()).setPosition(entry.getKey()));
|
||||
}
|
||||
heroBuilder.setSkinId(hero.getSkin());
|
||||
builder.setForce(HeroLogic.getInstance().calForce(heroNotBufferAttribute));
|
||||
builder.setHero(heroBuilder);
|
||||
return builder.build();
|
||||
|
|
|
|||
Loading…
Reference in New Issue