变身卡增加星级

back_recharge
duhui 2022-10-18 16:09:32 +08:00
parent de7600323e
commit a2641a596a
2 changed files with 29 additions and 12 deletions

View File

@ -2936,21 +2936,29 @@ public class HeroLogic {
// 身外化身加成 // 身外化身加成
Map<Integer, TransformationInfo> transformationList = heroManager.getTransformationList(); Map<Integer, TransformationInfo> transformationList = heroManager.getTransformationList();
Map<Integer, SChangingCard> changingCardMap = STableManager.getConfig(SChangingCard.class); Map<Integer, SChangingCard> changingCardMap = STableManager.getConfig(SChangingCard.class);
int[][] arrayValue = SSpecialConfig.getTwiceArrayValue(SSpecialConfig.PER_CHANGING_CART_PROP);
for (TransformationInfo info : transformationList.values()) { for (TransformationInfo info : transformationList.values()) {
SChangingCard card = changingCardMap.get(info.getCardId()); SChangingCard card = changingCardMap.get(info.getCardId());
if (card != null){ if (card != null){
// 变身卡单独提供得属性 // 变身卡单独提供得属性
combinedAttribute(card.getPropList(), heroAllAttribute); combinedAttribute(card.getPropList(), heroAllAttribute);
// 每张变身卡提供得额外属性
//combinedAttribute(arrayValue, heroAllAttribute);
//变身卡升星属性 //变身卡升星属性
if(info.getStar() == 1){ switch (info.getStar()){
combinedAttribute(card.getStar1UpProps(), heroAllAttribute); case 1:
}else if(info.getStar() == 2){ combinedAttribute(card.getStar1UpProps(), heroAllAttribute);
combinedAttribute(card.getStar2UpProps(), heroAllAttribute); break;
}else if(info.getStar() == 3){ case 2:
combinedAttribute(card.getStar3UpProps(), heroAllAttribute); combinedAttribute(card.getStar2UpProps(), heroAllAttribute);
break;
case 3:
combinedAttribute(card.getStar3UpProps(), heroAllAttribute);
break;
case 4:
combinedAttribute(card.getStar4UpProps(), heroAllAttribute);
break;
case 5:
combinedAttribute(card.getStar5UpProps(), heroAllAttribute);
break;
default:break;
} }
//变身卡升级属性 //变身卡升级属性
int pool = card.getLevelUpPool(); int pool = card.getLevelUpPool();

View File

@ -1,10 +1,7 @@
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 {
@ -22,6 +19,10 @@ public class SChangingCard implements BaseConfig {
private int[][] star3UpProps; private int[][] star3UpProps;
private int[][] star4UpProps;
private int[][] star5UpProps;
private int[] exp; private int[] exp;
private int[][] starUpExp; private int[][] starUpExp;
@ -97,4 +98,12 @@ public class SChangingCard implements BaseConfig {
public int getLevelMax() { public int getLevelMax() {
return levelMax; return levelMax;
} }
public int[][] getStar4UpProps() {
return star4UpProps;
}
public int[][] getStar5UpProps() {
return star5UpProps;
}
} }