化身之力
parent
ed181d79ee
commit
9a73862291
|
@ -64,6 +64,8 @@ public class UpOrDownTransformationHandler extends BaseHandler<HeroInfoProto.UpO
|
|||
}
|
||||
// 激活或者卸下变身卡
|
||||
info = new TransformationInfo(id, 0, 0);
|
||||
info.setLevel(1);
|
||||
info.setStar(0);
|
||||
}
|
||||
user.getHeroManager().putTransformationList(info);
|
||||
// 返回值
|
||||
|
|
|
@ -23,6 +23,7 @@ public class TransformationInfo {
|
|||
this.status = status;
|
||||
}
|
||||
|
||||
|
||||
public int getCardId() {
|
||||
return cardId;
|
||||
}
|
||||
|
|
|
@ -1,7 +1,10 @@
|
|||
package config;
|
||||
|
||||
import manager.STableManager;
|
||||
import manager.Table;
|
||||
|
||||
import java.util.Map;
|
||||
|
||||
@Table(name ="ChangingCard")
|
||||
public class SChangingCard implements BaseConfig {
|
||||
|
||||
|
@ -11,18 +14,20 @@ public class SChangingCard implements BaseConfig {
|
|||
|
||||
private int[][] propList;
|
||||
|
||||
private int[][] starUpCost;
|
||||
private int[][] starUpCost;
|
||||
|
||||
private int[][] star1UpProps;
|
||||
private int[][] star1UpProps;
|
||||
|
||||
private int[][] star2UpProps;
|
||||
private int[][] star2UpProps;
|
||||
|
||||
private int[][] star3UpProps;
|
||||
private int[][] star3UpProps;
|
||||
|
||||
private int[][] starUpExp;
|
||||
private int[] exp;
|
||||
|
||||
private int[][] starUpExp;
|
||||
|
||||
private int levelUpPool;
|
||||
|
||||
private int[] exp;
|
||||
private int levelUpPool;
|
||||
private int[] skill;
|
||||
|
||||
private int isOpen;
|
||||
|
@ -34,7 +39,7 @@ public class SChangingCard implements BaseConfig {
|
|||
}
|
||||
|
||||
|
||||
public int getId() {
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
|
@ -42,10 +47,38 @@ public class SChangingCard implements BaseConfig {
|
|||
return cardId;
|
||||
}
|
||||
|
||||
public int[][] getPropList() {
|
||||
public int[][] getPropList() {
|
||||
return propList;
|
||||
}
|
||||
|
||||
public int[][] getStarUpCost() {
|
||||
return starUpCost;
|
||||
}
|
||||
|
||||
public int[][] getStar1UpProps() {
|
||||
return star1UpProps;
|
||||
}
|
||||
|
||||
public int[][] getStar2UpProps() {
|
||||
return star2UpProps;
|
||||
}
|
||||
|
||||
public int[][] getStar3UpProps() {
|
||||
return star3UpProps;
|
||||
}
|
||||
|
||||
public int[] getExp() {
|
||||
return exp;
|
||||
}
|
||||
|
||||
public int[][] getStarUpExp() {
|
||||
return starUpExp;
|
||||
}
|
||||
|
||||
public int getLevelUpPool() {
|
||||
return levelUpPool;
|
||||
}
|
||||
|
||||
public int[] getSkill() {
|
||||
return skill;
|
||||
}
|
||||
|
@ -54,31 +87,5 @@ public class SChangingCard implements BaseConfig {
|
|||
return isOpen;
|
||||
}
|
||||
|
||||
public int[][] getStarUpCost() {
|
||||
return starUpCost;
|
||||
}
|
||||
|
||||
public int[][] getStar1UpProps() {
|
||||
return star1UpProps;
|
||||
}
|
||||
|
||||
public int[][] getStar2UpProps() {
|
||||
return star2UpProps;
|
||||
}
|
||||
|
||||
public int[][] getStar3UpProps() {
|
||||
return star3UpProps;
|
||||
}
|
||||
|
||||
public int[][] getStarUpExp() {
|
||||
return starUpExp;
|
||||
}
|
||||
|
||||
public int[] getExp() {
|
||||
return exp;
|
||||
}
|
||||
|
||||
public int getLevelUpPool() {
|
||||
return levelUpPool;
|
||||
}
|
||||
}
|
|
@ -9,7 +9,7 @@ import java.util.Map;
|
|||
@Table(name ="ChangingCardLevel")
|
||||
public class SChangingCardLevel implements BaseConfig {
|
||||
|
||||
private int iD;
|
||||
private int id;
|
||||
|
||||
private int level;
|
||||
|
||||
|
@ -21,10 +21,10 @@ public class SChangingCardLevel implements BaseConfig {
|
|||
|
||||
private int[] changingForceExp;
|
||||
|
||||
public static Map<Integer, Map<Integer, SChangingCardLevel>> sChallengeConfigs;
|
||||
public static Map<Integer, Map<Integer, SChangingCardLevel>> sChallengeConfigs =new HashMap<Integer, Map<Integer, SChangingCardLevel>>();;
|
||||
@Override
|
||||
public void init() throws Exception {
|
||||
/*Map<Integer, SChangingCardLevel> sChangingCardLevel = STableManager.getConfig(SChangingCardLevel.class);
|
||||
Map<Integer, SChangingCardLevel> sChangingCardLevel = STableManager.getConfig(SChangingCardLevel.class);
|
||||
for(SChangingCardLevel config: sChangingCardLevel.values()){
|
||||
if(!sChallengeConfigs.containsKey(config.getPoolId())){
|
||||
sChallengeConfigs.put(config.getPoolId(),new HashMap<Integer, SChangingCardLevel>());
|
||||
|
@ -32,7 +32,7 @@ public class SChangingCardLevel implements BaseConfig {
|
|||
if(!sChallengeConfigs.get(config.getPoolId()).containsKey(config.getLevel())){
|
||||
sChallengeConfigs.get(config.getPoolId()).put(config.getLevel(),config);
|
||||
}
|
||||
}*/
|
||||
}
|
||||
}
|
||||
|
||||
public static Map<Integer, SChangingCardLevel> getConfigByPoolId(int poolId){
|
||||
|
@ -44,12 +44,11 @@ public class SChangingCardLevel implements BaseConfig {
|
|||
}
|
||||
|
||||
|
||||
|
||||
public int getID() {
|
||||
return iD;
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public int getLevel() {
|
||||
public int getLevel() {
|
||||
return level;
|
||||
}
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ import java.util.Map;
|
|||
@Table(name ="ChangingForce")
|
||||
public class SChangingForce implements BaseConfig {
|
||||
|
||||
private int iD;
|
||||
private int id;
|
||||
|
||||
private int level;
|
||||
|
||||
|
@ -22,12 +22,11 @@ public class SChangingForce implements BaseConfig {
|
|||
|
||||
}
|
||||
|
||||
|
||||
public int getID() {
|
||||
return iD;
|
||||
public int getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public int getLevel() {
|
||||
public int getLevel() {
|
||||
return level;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue