主线奖励改直接掉落2
parent
cbdf6c9898
commit
fd80ebe6d3
|
|
@ -229,10 +229,10 @@ public class ItemUtil {
|
|||
/**
|
||||
* 掉落 走特权
|
||||
*/
|
||||
public static CommonProto.Drop.Builder dropToPrivilege(User user, int[] dropIds, int reason) throws Exception {
|
||||
public static CommonProto.Drop.Builder dropToPrivilege(User user, int[][] dropIds, int reason) throws Exception {
|
||||
CommonProto.Drop.Builder dropBuilder = CommonProto.Drop.newBuilder();
|
||||
ItemMap itemObj = new ItemMap();
|
||||
selectItemArr(new int[][]{dropIds},itemObj);
|
||||
selectItemArr(dropIds,itemObj);
|
||||
// combineRewardDropGroup(user, dropIds, 1,itemObj);
|
||||
privilegeAddToMainLevelChallenge(user, itemObj);
|
||||
mapToAdd(user,itemObj,dropBuilder,reason);
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ public class SMainLevelConfig implements BaseConfig {
|
|||
|
||||
private int monsterGroup;
|
||||
|
||||
private int[] reward;
|
||||
private int[][] reward;
|
||||
|
||||
private int[] randomRewardMin;
|
||||
|
||||
|
|
@ -113,7 +113,7 @@ public class SMainLevelConfig implements BaseConfig {
|
|||
return monsterGroup;
|
||||
}
|
||||
|
||||
public int[] getReward() {
|
||||
public int[][] getReward() {
|
||||
return reward;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue