光环提交

back_recharge
lvxinran 2019-07-22 16:13:15 +08:00
parent 3e70a0384c
commit cfbc1eb00e
1 changed files with 10 additions and 7 deletions

View File

@ -869,21 +869,24 @@ public class CombatLogic {
return "";
}
public static Map<String,Map<Integer, Integer>> elementEffect(User user){
Map<String, Map<Integer, Integer>> heroAllAttributeMap = user.getMapManager().getHeroAllAttributeMap();
public static List<int[][]> elementEffect(User user){
Map<String, Hero> heroMap = user.getHeroManager().getHeroMap();
Map<Integer, SElementalResonanceConfig> configMap = SElementalResonanceConfig.configMap;
int curTeamPosId = user.getTeamPosManager().getCurTeamPosId();
List<TeamPosHeroInfo> teamPosHeroInfos = user.getTeamPosManager().getTeamPosForHero().get(curTeamPosId);
//找出上场的Id
Set<String> heroes = heroAllAttributeMap.keySet();
List<Integer> heroFind = new ArrayList<>(heroes.size());
for(String key :heroes){
List<Integer> heroFind = new ArrayList<>(teamPosHeroInfos.size());
for(TeamPosHeroInfo key :teamPosHeroInfos){
for(Map.Entry<String,Hero> entry :heroMap.entrySet()){
if(key.equals(entry.getKey())){
if(key.getHeroId().equals(entry.getKey())){
heroFind.add(entry.getValue().getTemplateId());
}
}
}
Map<Integer,Integer> propertiesMap = new HashMap<>();
for(Integer heroId:heroFind){
int propertyName = SCHero.sCHero.get(heroId).getPropertyName();
@ -958,7 +961,7 @@ public class CombatLogic {
System.out.println(next[0][0]+","+next[0][1]);
}
return heroAllAttributeMap;
return resultEffect;
}
public static <K, V extends Comparable<? super V>> Map<K, V> sortByValueDescending(Map<K, V> map)