From 794fd34895474c6c18dbf3feec4b30c9f7014e9d Mon Sep 17 00:00:00 2001 From: xuexinpeng Date: Mon, 18 Apr 2022 17:25:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A0=E5=B0=BD=E5=89=AF=E6=9C=AC=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E8=BE=93=E8=B5=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ljsd/jieling/logic/arena/ChallengeLogic.java | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/serverlogic/src/main/java/com/ljsd/jieling/logic/arena/ChallengeLogic.java b/serverlogic/src/main/java/com/ljsd/jieling/logic/arena/ChallengeLogic.java index 118632170..69844b39d 100644 --- a/serverlogic/src/main/java/com/ljsd/jieling/logic/arena/ChallengeLogic.java +++ b/serverlogic/src/main/java/com/ljsd/jieling/logic/arena/ChallengeLogic.java @@ -232,8 +232,19 @@ public class ChallengeLogic { } comDropMap = dropMap(sChallengeConfig, model, type, 1, fightResult.getCheckResult()); } else { - //没打过 //输了 保底+总奖励*奖励百分比 - comDropMap = dropMap(sChallengeConfig, model, type, 0, fightResult.getCheckResult()); + if (type == 1){ + if((int) fightResult.getCheckResult()[1]>=20){ + //无尽副本回合数超过20 赢 + user.getPlayerInfoManager().setEndlessNewReplica(id); + comDropMap = dropMap(sChallengeConfig, model, type, 1, fightResult.getCheckResult()); + }else{ + //没打过 //输了 保底+总奖励*奖励百分比 + comDropMap = dropMap(sChallengeConfig, model, type, 0, fightResult.getCheckResult()); + } + }else if(type == 2){ + //没打过 //输了 保底+总奖励*奖励百分比 + comDropMap = dropMap(sChallengeConfig, model, type, 0, fightResult.getCheckResult()); + } } CommonProto.FightData fightData = CommonProto.FightData.newBuilder() .setFightMaxTime(20)