贪婪节点奖励修改

back_recharge
lvxinran 2021-03-05 09:06:47 +08:00
parent ce12694f5a
commit bc75aaade9
2 changed files with 15 additions and 4 deletions

View File

@ -247,10 +247,15 @@ public class EndExpeditionBattleRequest extends BaseHandler<Expedition.EndExpedi
throw new ErrorCodeException(ErrorCode.CFG_NULL); throw new ErrorCodeException(ErrorCode.CFG_NULL);
} }
CommonProto.Drop.Builder drop; CommonProto.Drop.Builder drop;
if(sExpeditionFloorConfig.getReward()!=null&&sExpeditionNodeConfig.getReward()!=0){ if(nodeInfo.getType()==ExpeditionLogic.NODETYPE_GREED){
drop = ItemUtil.drop(user, sExpeditionFloorConfig.getReward(),sExpeditionNodeConfig.getReward(),0,BIReason.EXPEDITION_DROP_REWARD); drop = ItemUtil.drop(user,new int[]{STableManager.getConfig(SExpeditionSetting.class).get(1).getSpecialReward()},1,0,BIReason.EXPEDITION_DROP_REWARD);
}else { }else{
drop = CommonProto.Drop.newBuilder(); if(sExpeditionFloorConfig.getReward()!=null&&sExpeditionNodeConfig.getReward()!=0){
drop = ItemUtil.drop(user, sExpeditionFloorConfig.getReward(),sExpeditionNodeConfig.getReward(),0,BIReason.EXPEDITION_DROP_REWARD);
}else {
drop = CommonProto.Drop.newBuilder();
}
} }
//试炼和贪婪节点胜利直接通过 //试炼和贪婪节点胜利直接通过

View File

@ -34,6 +34,8 @@ public class SExpeditionSetting implements BaseConfig {
private int recruitTime; private int recruitTime;
private int[][] playerLevelfix; private int[][] playerLevelfix;
private int specialReward;
@Override @Override
public void init() throws Exception { public void init() throws Exception {
@ -100,4 +102,8 @@ public class SExpeditionSetting implements BaseConfig {
public int[][] getPlayerLevelfix() { public int[][] getPlayerLevelfix() {
return playerLevelfix; return playerLevelfix;
} }
public int getSpecialReward() {
return specialReward;
}
} }