伤害副本优化

back_recharge
duhui 2022-12-24 18:05:58 +08:00
parent a6841f2f9d
commit 6048b49a87
1 changed files with 2 additions and 1 deletions

View File

@ -204,7 +204,7 @@ public class ChallengeLogic {
PVEFightEvent pveFightEvent = new PVEFightEvent(user.getId(), teamId, 20, "", fightType, stage.getMonsterGroup(), 3);
FightResult fightResult = FightDispatcher.dispatcher(pveFightEvent);
builder.setResult(fightResult.getResult());
builder.setResult(0);
int round = fightResult.getCurRound();
int victoryValue = stage.getReward1()[stage.getReward1().length - 1][0];
@ -226,6 +226,7 @@ public class ChallengeLogic {
// 满足首通条件
if (fightResult.getResult() == 1 && round <= victoryValue){
user.getPlayerInfoManager().setTreasureReplica(id);
builder.setResult(1);
win = 2;
}
comDropMap = dropMap(stage, type, win, round, builder);