Task【ID1005747】【猎妖之路优化】猎妖之路优化内容 奖励改成奖励组

back_recharge
zhangshanxue 2020-02-26 16:54:12 +08:00
parent b0ad311440
commit c53b6056ed
2 changed files with 9 additions and 15 deletions

View File

@ -199,9 +199,7 @@ public class EndExpeditionBattleRequest extends BaseHandler<Expedition.EndExpedi
if (sExpeditionFloorConfig == null) {
throw new ErrorCodeException(ErrorCode.CFG_NULL);
}
CommonProto.Drop.Builder drop = ItemUtil.drop(user, sExpeditionFloorConfig.getReward(), BIReason.EXPEDITION_DROP_REWARD);
CommonProto.Drop.Builder drop = ItemUtil.drop(user, sExpeditionFloorConfig.getReward(),1,0,BIReason.EXPEDITION_DROP_REWARD);
Expedition.EndExpeditionBattleResponse.Builder response = Expedition.EndExpeditionBattleResponse.newBuilder();
response.setResult(resultCode);
response.setDrop(drop);

View File

@ -3,7 +3,6 @@ package config;
import manager.STableManager;
import manager.Table;
import java.util.HashMap;
import java.util.Map;
@Table(name ="ExpeditionFloorConfig")
@ -15,19 +14,18 @@ public class SExpeditionFloorConfig implements BaseConfig {
private int[][] nodeType;
private int[][] randomNode;
private int[][] randomNode;
private int[][] holyProbability;
private int[][] reward;
private int[] reward;
private int[][] treasureBox;
@Override
public void init() throws Exception {
}
@ -43,11 +41,15 @@ public class SExpeditionFloorConfig implements BaseConfig {
return nodeType;
}
public int[][] getRandomNode() {
return randomNode;
}
public int[][] getHolyProbability() {
return holyProbability;
}
public int[][] getReward() {
public int[] getReward() {
return reward;
}
@ -55,11 +57,5 @@ public class SExpeditionFloorConfig implements BaseConfig {
return treasureBox;
}
public int[][] getRandomNode() {
return randomNode;
}
public void setRandomNode(int[][] randomNode) {
this.randomNode = randomNode;
}
}