血量修改
parent
29bf5b17be
commit
8f0f004ec6
|
@ -144,27 +144,10 @@ public class EndConfirmExpeditionBattleRequestHandler extends BaseHandler<Expedi
|
|||
|
||||
|
||||
//
|
||||
// if(ExpeditionLogic.isHardNode(nodeInfo.getType())){
|
||||
// //节点血量更新
|
||||
// nodeInfo.getSnapFightInfo().getHeroAttribute().forEach((s, familyHeroInfo) ->{
|
||||
// SMonsterConfig sMonsterConfig = STableManager.getConfig(SMonsterConfig.class).get(Integer.valueOf(s));
|
||||
// if(sMonsterConfig!=null){
|
||||
// nodeInfo.getBossHP().put(s, (double) remainHp.remove(0) / (double)sMonsterConfig.getHp());
|
||||
// }
|
||||
// }
|
||||
// );
|
||||
//
|
||||
// }else {
|
||||
//节点血量更新
|
||||
nodeInfo.getSnapFightInfo().getHeroAttribute().forEach((s, familyHeroInfo) ->
|
||||
nodeInfo.getBossHP().put(s, (double) remainHp.remove(familyHeroInfo.getPosition()-1) / (double) familyHeroInfo.getAttribute().get(HeroAttributeEnum.CurHP.getPropertyId()))
|
||||
);
|
||||
// }
|
||||
// //节点血量更新
|
||||
// nodeInfo.getSnapFightInfo().getHeroAttribute().forEach((s, familyHeroInfo) ->
|
||||
// nodeInfo.getBossHP().put(s, (double) remainHp.remove(0) / (double) familyHeroInfo.getAttribute().get(HeroAttributeEnum.CurHP.getPropertyId()))
|
||||
// );
|
||||
|
||||
nodeInfo.getSnapFightInfo().getHeroAttribute().forEach((s, familyHeroInfo) ->
|
||||
nodeInfo.getBossHP().put(s, (double) remainHp.remove(familyHeroInfo.getPosition() - 1) / (double) familyHeroInfo.getAttribute().get(HeroAttributeEnum.CurHP.getPropertyId()))
|
||||
);
|
||||
//更新节点
|
||||
Expedition.ExpeditionNodeInfoIndication.Builder builder = Expedition.ExpeditionNodeInfoIndication.newBuilder();
|
||||
|
||||
|
|
Loading…
Reference in New Issue