身外化身
parent
b3d35a15a3
commit
c7715e7a87
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -201,7 +201,7 @@ public class HeroManager extends MongoBase {
|
|||
/**
|
||||
* 变身卡变身之力
|
||||
*/
|
||||
private int transformationForce;
|
||||
private int transformationForce = 1 ;
|
||||
|
||||
public int getTransformationForce() {
|
||||
return transformationForce;
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue