贪婪节点奖励修改
parent
ce12694f5a
commit
bc75aaade9
|
@ -247,12 +247,17 @@ public class EndExpeditionBattleRequest extends BaseHandler<Expedition.EndExpedi
|
|||
throw new ErrorCodeException(ErrorCode.CFG_NULL);
|
||||
}
|
||||
CommonProto.Drop.Builder drop;
|
||||
if(nodeInfo.getType()==ExpeditionLogic.NODETYPE_GREED){
|
||||
drop = ItemUtil.drop(user,new int[]{STableManager.getConfig(SExpeditionSetting.class).get(1).getSpecialReward()},1,0,BIReason.EXPEDITION_DROP_REWARD);
|
||||
}else{
|
||||
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();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//试炼和贪婪节点胜利直接通过
|
||||
if (ExpeditionLogic.isHardNode(nodeInfo.getType())||(ExpeditionLogic.isBattleNode(nodeInfo.getType())&&(null==nodeInfo.getHolyEquipId()||nodeInfo.getHolyEquipId().size()==0))) {
|
||||
//updata node
|
||||
|
|
|
@ -35,6 +35,8 @@ public class SExpeditionSetting implements BaseConfig {
|
|||
|
||||
private int[][] playerLevelfix;
|
||||
|
||||
private int specialReward;
|
||||
|
||||
@Override
|
||||
public void init() throws Exception {
|
||||
|
||||
|
@ -100,4 +102,8 @@ public class SExpeditionSetting implements BaseConfig {
|
|||
public int[][] getPlayerLevelfix() {
|
||||
return playerLevelfix;
|
||||
}
|
||||
|
||||
public int getSpecialReward() {
|
||||
return specialReward;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue