贪婪节点奖励修改
parent
ce12694f5a
commit
bc75aaade9
|
@ -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();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//试炼和贪婪节点胜利直接通过
|
//试炼和贪婪节点胜利直接通过
|
||||||
|
|
|
@ -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;
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue