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