身外化身

back_recharge
xuexinpeng 2022-04-24 18:10:34 +08:00
parent b3d35a15a3
commit c7715e7a87
4 changed files with 14 additions and 2 deletions

View File

@ -33,6 +33,9 @@ public class TransformationForceUpHandler extends BaseHandler<HeroInfoProto.Tran
int id = proto.getId();
User user = UserManager.getUser(iSession.getUid());
Map<Integer, SChangingForce> cardMap = STableManager.getConfig(SChangingForce.class);
id = user.getHeroManager().getTransformationForce()+1;
SChangingForce config = cardMap.get(id);
if (config == null) {
return;

View File

@ -201,7 +201,7 @@ public class HeroManager extends MongoBase {
/**
*
*/
private int transformationForce;
private int transformationForce = 1 ;
public int getTransformationForce() {
return transformationForce;

View File

@ -2924,7 +2924,7 @@ public class HeroLogic {
// 变身卡单独提供得属性
combinedAttribute(card.getPropList(), heroAllAttribute);
// 每张变身卡提供得额外属性
combinedAttribute(arrayValue, heroAllAttribute);
//combinedAttribute(arrayValue, heroAllAttribute);
//变身卡升星属性
if(info.getStar() == 1){
combinedAttribute(card.getStar1UpProps(), heroAllAttribute);

View File

@ -32,6 +32,9 @@ public class SChangingCard implements BaseConfig {
private int isOpen;
private int starMax;
private int levelMax;
@Override
public void init() throws Exception {
@ -87,5 +90,11 @@ public class SChangingCard implements BaseConfig {
return isOpen;
}
public int getStarMax() {
return starMax;
}
public int getLevelMax() {
return levelMax;
}
}