无尽副本类型变化
parent
401889401c
commit
9b38690f93
|
|
@ -93,11 +93,13 @@ public class ChallengeLogic {
|
|||
}
|
||||
LOGGER.info("tongguan reward");
|
||||
builder.setPercentReward(10000);
|
||||
builder.setLossBloodOrTimes(result[1]);
|
||||
LOGGER.info("win times 回合数:"+result[1]);
|
||||
} else if (model == 1 && win == 0) {
|
||||
//没打过
|
||||
int[][] reward1 = sChallengeConfig.getReward1();
|
||||
int ratio = 0;
|
||||
if (type == 1) {//无尽副本 血量
|
||||
if (type == 2) {//无尽副本 血量
|
||||
SMonsterGroup sMonsterGroup = SMonsterGroup.getsMonsterGroupMap().get(sChallengeConfig.getMonsterGroup());
|
||||
// 获取怪物组
|
||||
int[][] content = sMonsterGroup.getContents();
|
||||
|
|
@ -123,7 +125,7 @@ public class ChallengeLogic {
|
|||
}
|
||||
LOGGER.info("输了 lossBlood:"+lossBlood);
|
||||
builder.setLossBloodOrTimes((long)lossBlood);
|
||||
} else if (type == 2) {//回合数
|
||||
} else if (type == 1) {//回合数
|
||||
long times = result[1];//回合数
|
||||
for (int[] percent : reward1) {
|
||||
if (percent[0] > times) {
|
||||
|
|
@ -209,13 +211,13 @@ public class ChallengeLogic {
|
|||
if (model == 2) {
|
||||
//扫荡
|
||||
switch (type) {
|
||||
case 1:
|
||||
case 1: // 回合
|
||||
if (!limit(endlessNewReplicaLexel, id)) {
|
||||
MessageUtil.sendMessage(iSession, 1, MessageTypeProto.MessageType.CHALLENGE_RESPONSE.getNumber(), builder.build(), true);
|
||||
return;
|
||||
}
|
||||
break;
|
||||
case 2:
|
||||
case 2:// 血量
|
||||
if (!limit(treasureReplicaLexel, id)) {
|
||||
MessageUtil.sendMessage(iSession, 1, MessageTypeProto.MessageType.CHALLENGE_RESPONSE.getNumber(), builder.build(), true);
|
||||
return;
|
||||
|
|
@ -287,6 +289,7 @@ public class ChallengeLogic {
|
|||
new int[]{n.getKey(), n.getValue()}).toArray(int[][]::new), BIReason.EXPLORE_MAP_COST_RETURN);
|
||||
builder.setDrop(drop);
|
||||
builder.setType(type);
|
||||
LOGGER.info("type :"+type);
|
||||
}
|
||||
MessageUtil.sendMessage(iSession, 1, MessageTypeProto.MessageType.CHALLENGE_RESPONSE.getNumber(), builder.build(), true);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue