法相,战力更新
parent
26fed76685
commit
e2685214ae
|
|
@ -3,6 +3,8 @@ package com.ljsd.jieling.logic.equip;
|
|||
import com.ljsd.jieling.exception.ErrorCode;
|
||||
import com.ljsd.jieling.exception.ErrorCodeException;
|
||||
import com.ljsd.jieling.globals.BIReason;
|
||||
import com.ljsd.jieling.logic.activity.event.Poster;
|
||||
import com.ljsd.jieling.logic.activity.event.SaveHeroForceEvent;
|
||||
import com.ljsd.jieling.logic.dao.EquipManager;
|
||||
import com.ljsd.jieling.logic.dao.Faxiang;
|
||||
import com.ljsd.jieling.logic.dao.Hero;
|
||||
|
|
@ -122,6 +124,8 @@ public class EquipLogic {
|
|||
equipManager.putFaxiang(faxiang);
|
||||
}
|
||||
}
|
||||
// 更新战力
|
||||
Poster.getPoster().dispatchEvent(new SaveHeroForceEvent(user.getId(),""));
|
||||
MessageUtil.sendMessage(session, 1, MessageTypeProto.MessageType.WEAR_FAXIANG_EQUIP_RESPONSE_VALUE, null, true);
|
||||
}
|
||||
|
||||
|
|
@ -219,6 +223,8 @@ public class EquipLogic {
|
|||
costFaxiang(user, costID, count, true);
|
||||
}
|
||||
equipManager.putFaxiang(faxiang);
|
||||
// 更新战力
|
||||
Poster.getPoster().dispatchEvent(new SaveHeroForceEvent(user.getId(),""));
|
||||
MessageUtil.sendMessage(session, 1, MessageTypeProto.MessageType.STRONGTHEN_FAXIANG_EQUIP_RESPONSE_VALUE, null, true);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3452,8 +3452,7 @@ public class HeroLogic {
|
|||
}
|
||||
force += sEquipConfig.getScore();
|
||||
}
|
||||
long l = force + heroAllAttribute.get(HeroAttributeEnum.EquipForce.getPropertyId());
|
||||
return l;
|
||||
return force + heroAllAttribute.get(HeroAttributeEnum.EquipForce.getPropertyId());
|
||||
}
|
||||
|
||||
///获取最高战斗力
|
||||
|
|
@ -3953,7 +3952,7 @@ public class HeroLogic {
|
|||
|
||||
|
||||
List<Integer> list = new ArrayList<>();
|
||||
Arrays.stream(teamId).forEach(i -> list.add(i));
|
||||
Arrays.stream(teamId).forEach(list::add);
|
||||
|
||||
AtomicBoolean result = isInTeams(user, heroId, teamId);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue