【摘星阁重构】增加道具消耗种类

back_recharge
duhui 2022-08-08 14:34:13 +08:00
parent b085fc0b2b
commit 0138170505
2 changed files with 3 additions and 6 deletions

View File

@ -382,7 +382,7 @@ public class HomeLogic {
}
}
// 道具消耗
boolean cost = ItemUtil.itemCost(user, new int[][]{oldRankUp.getCost()}, BIReason.ARCHITECTURE_RANK_UP_LEVEL, 0);
boolean cost = ItemUtil.itemCost(user, oldRankUp.getCost(), BIReason.ARCHITECTURE_RANK_UP_LEVEL, 0);
if (!cost){
throw new ErrorCodeException(ErrorCode.ITEM_NOT_ENOUGH);
}

View File

@ -1,10 +1,7 @@
package config;
import manager.STableManager;
import manager.Table;
import java.util.Map;
@Table(name ="EquipRankUp")
public class SEquipRankUp implements BaseConfig {
@ -14,7 +11,7 @@ public class SEquipRankUp implements BaseConfig {
private int[] rate;
private int[] cost;
private int[][] cost;
private int limit;
@ -37,7 +34,7 @@ public class SEquipRankUp implements BaseConfig {
return rate;
}
public int[] getCost() {
public int[][] getCost() {
return cost;
}