英雄属性添加

back_recharge
duhui 2021-06-25 15:29:26 +08:00
parent 39bc93bbca
commit 29b68a8996
2 changed files with 11 additions and 1 deletions

View File

@ -197,6 +197,8 @@ public class CrossServiceLogic {
arenaOfHero.setJewelInfo(new HashSet<>(hero.getJewelInfo()));
arenaOfHero.setCreateTime(hero.getCreateType());
arenaOfHero.setChangeId(hero.getChangeId());
Map<Integer, Long> attribute = HeroLogic.getInstance().calHeroNotBufferAttribute(user, hero, false, GlobalsDef.WORLD_TEAM_ARENA_DEFENSE);
arenaOfHero.setAttributeMap(attribute);
return arenaOfHero;
}

View File

@ -25,7 +25,7 @@ public class ArenaOfHero {
private int createType;
private int changeId;
private Set<String> jewelInfo = new HashSet<>();
private Map<Integer,Long> attributeMap = 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;
@ -150,4 +150,12 @@ public class ArenaOfHero {
public void setCreateType(int createType) {
this.createType = createType;
}
public Map<Integer, Long> getAttributeMap() {
return attributeMap;
}
public void setAttributeMap(Map<Integer, Long> attributeMap) {
this.attributeMap = attributeMap;
}
}