334 lines
6.1 KiB
Java
334 lines
6.1 KiB
Java
package config;
|
|
|
|
import manager.Table;
|
|
|
|
import java.util.Map;
|
|
|
|
@Table(name ="GameSetting")
|
|
public class SGameSetting implements BaseConfig {
|
|
|
|
private int id;
|
|
|
|
private int[][] bornItem;
|
|
|
|
private float[] speedFormula;
|
|
|
|
private int initialEnergy;
|
|
|
|
private int[] energyRecoverSpeed;
|
|
|
|
private int[] actionPowerRormula;
|
|
|
|
private int[] speed;
|
|
|
|
private int heroNumlimit;
|
|
|
|
private int equipNumlimit;
|
|
|
|
private int worldTalking;
|
|
|
|
private int[] bornPosition;
|
|
|
|
private String natureName;
|
|
|
|
private int itemCompoundLimit;
|
|
|
|
private int heroCompoundLimit;
|
|
|
|
|
|
private int adventureRefresh;
|
|
|
|
private int invasionBossPrivilege;
|
|
|
|
private int invasionBossItem;
|
|
|
|
private int adventureFastBattle;
|
|
|
|
private int adventureOffline;
|
|
|
|
//delete
|
|
private int adventureInvasionBoss;
|
|
|
|
private int invasionBossTimesAdd;
|
|
|
|
private int adventureMineralPrivilege;
|
|
|
|
private int adventureRunePrivilege;
|
|
|
|
private int adventureBaseRewardPrivilege;
|
|
private int adventureFastBattlePrivilege;
|
|
|
|
private float smeltReturnDiscount;
|
|
|
|
private int equipCompoundLimit;
|
|
|
|
private int[][] dailyGift;
|
|
|
|
private int recoveryTime;
|
|
|
|
private int heroTimes;
|
|
|
|
private int[][] returnMaterials;
|
|
|
|
private int incidentalBossSave;
|
|
|
|
private int openBoxLimits; //单次使用道具上限
|
|
|
|
private int[] lotterySecurityReward;
|
|
|
|
private int[] achievementRefreshType;
|
|
|
|
private int nextAvailableTime;
|
|
|
|
private int defaultPicture;
|
|
|
|
private int[] treasurePrice;
|
|
|
|
private int incidentalBossCd;
|
|
|
|
private int endlessMinLevel;
|
|
|
|
private int[][] sevenDaysLastReward;
|
|
|
|
|
|
private int[][] itemAdd;
|
|
|
|
private int showRank;
|
|
|
|
private Map<Integer,int[]> itemRecoveryMap;
|
|
|
|
private int maxNameLength;
|
|
|
|
private int maxEnergyGet;
|
|
|
|
private int adventureItem;
|
|
|
|
private int[][] equipTalismanaUnlock;
|
|
|
|
private int[][] equipSignUnlock;
|
|
|
|
private int[][] heroReturn;
|
|
|
|
private int defaultHead;
|
|
|
|
private int[][] differLocation;
|
|
|
|
private int defaultSuit;
|
|
|
|
private int wookbookVersion;
|
|
|
|
@Override
|
|
public void init() throws Exception {
|
|
|
|
}
|
|
|
|
|
|
public int getId() {
|
|
return id;
|
|
}
|
|
|
|
public int[][] getBornItem() {
|
|
return bornItem;
|
|
}
|
|
|
|
public float[] getSpeedFormula() {
|
|
return speedFormula;
|
|
}
|
|
|
|
public int getInitialEnergy() {
|
|
return initialEnergy;
|
|
}
|
|
|
|
public int[] getEnergyRecoverSpeed() {
|
|
return energyRecoverSpeed;
|
|
}
|
|
|
|
public int[] getActionPowerRormula() {
|
|
return actionPowerRormula;
|
|
}
|
|
|
|
public int[] getSpeed() {
|
|
return speed;
|
|
}
|
|
|
|
public int getHeroNumlimit() {
|
|
return heroNumlimit;
|
|
}
|
|
|
|
public int getEquipNumlimit() {
|
|
return equipNumlimit;
|
|
}
|
|
|
|
public int[] getBornPosition() {
|
|
return bornPosition;
|
|
}
|
|
|
|
public int getItemCompoundLimit() {
|
|
return itemCompoundLimit;
|
|
}
|
|
|
|
public int getHeroCompoundLimit() {
|
|
return heroCompoundLimit;
|
|
}
|
|
|
|
public float calSpeed(float speed, int breakId){
|
|
if(breakId == 0){
|
|
return 0;
|
|
}
|
|
breakId = breakId%100;
|
|
float result = 0;
|
|
int length = speedFormula.length;
|
|
for(int i=0;i< speedFormula.length;i++){
|
|
double pow = Math.pow(breakId, --length);
|
|
result += speedFormula[i]*pow;
|
|
}
|
|
return result;
|
|
}
|
|
|
|
public int getWorldTalking() {
|
|
return worldTalking;
|
|
}
|
|
|
|
public int getAdventureRefresh() {
|
|
return adventureRefresh;
|
|
}
|
|
|
|
public String getNatureName() {
|
|
return natureName;
|
|
}
|
|
|
|
public int getInvasionBossPrivilege() {
|
|
return invasionBossPrivilege;
|
|
}
|
|
|
|
public int getInvasionBossItem() {
|
|
return invasionBossItem;
|
|
}
|
|
|
|
public int getAdventureFastBattle() {
|
|
return adventureFastBattle;
|
|
}
|
|
|
|
public int getAdventureOffline() {
|
|
return adventureOffline;
|
|
}
|
|
|
|
public int[][] getDailyGift() {
|
|
return dailyGift;
|
|
}
|
|
|
|
|
|
public int getRecoveryTime() {
|
|
return recoveryTime;
|
|
}
|
|
|
|
public int getHeroTimes() {
|
|
return heroTimes;
|
|
}
|
|
|
|
public int[][] getReturnMaterials() {
|
|
return returnMaterials;
|
|
}
|
|
|
|
public int getIncidentalBossSave() {
|
|
return incidentalBossSave;
|
|
}
|
|
|
|
public int getOpenBoxLimits() {
|
|
return openBoxLimits;
|
|
}
|
|
|
|
|
|
public int[] getLotterySecurityReward() {
|
|
return lotterySecurityReward;
|
|
}
|
|
|
|
public int[] getAchievementRefreshType() {
|
|
return achievementRefreshType;
|
|
}
|
|
|
|
|
|
public int getNextAvailableTime() {
|
|
return nextAvailableTime;
|
|
}
|
|
|
|
public int getDefaultPicture() {
|
|
return defaultPicture;
|
|
}
|
|
|
|
public int[] getTreasurePrice() {
|
|
return treasurePrice;
|
|
}
|
|
|
|
public int getIncidentalBossCd() {
|
|
return incidentalBossCd;
|
|
}
|
|
|
|
|
|
public int getInvasionBossTimesAdd() {
|
|
return invasionBossTimesAdd;
|
|
}
|
|
|
|
public int getEndlessMinLevel() {
|
|
return endlessMinLevel;
|
|
}
|
|
|
|
public int[][] getSevenDaysLastReward() {
|
|
return sevenDaysLastReward;
|
|
}
|
|
|
|
public int[][] getItemAdd() {
|
|
return itemAdd;
|
|
}
|
|
|
|
|
|
public Map<Integer, int[]> getItemRecoveryMap() {
|
|
return itemRecoveryMap;
|
|
}
|
|
|
|
public void setItemRecoveryMap(Map<Integer, int[]> itemRecoveryMap) {
|
|
this.itemRecoveryMap = itemRecoveryMap;
|
|
}
|
|
|
|
public int getShowRank() {
|
|
return showRank;
|
|
}
|
|
|
|
public void setShowRank(int showRank) {
|
|
this.showRank = showRank;
|
|
}
|
|
|
|
public int getMaxNameLength() {
|
|
return maxNameLength;
|
|
}
|
|
|
|
public int getMaxEnergyGet() {
|
|
return maxEnergyGet;
|
|
}
|
|
|
|
public int getAdventureItem() {
|
|
return adventureItem;
|
|
}
|
|
|
|
public int[][] getEquipTalismanaUnlock() {
|
|
return equipTalismanaUnlock;
|
|
}
|
|
|
|
public int[][] getEquipSignUnlock() {
|
|
return equipSignUnlock;
|
|
}
|
|
|
|
public int getDefaultHead() {
|
|
return defaultHead;
|
|
}
|
|
|
|
public int[][] getDifferLocation() {
|
|
return differLocation;
|
|
}
|
|
|
|
public int getDefaultSuit() {return defaultSuit; }
|
|
|
|
public int getWookbookVersion() {
|
|
return wookbookVersion;
|
|
}
|
|
} |