增加随从继承比例的配置项

This commit is contained in:
zhl 2021-03-02 19:49:14 +08:00
parent 42ab759622
commit 1701dfa38b
2 changed files with 5 additions and 0 deletions

View File

@ -62,6 +62,8 @@ export class GameEnv {
public canEatBase: boolean;
// 进阶场能否吃牌
public canEatAdv: boolean;
// 随从继承战力的比率
public petInheritRate: number;
public init(data: Map<number, BaseCfg>) {
this.initCardNum = data.get(BaseConst.INIT_CARD_NUM).value;
@ -98,5 +100,6 @@ export class GameEnv {
]
this.canEatBase = !!data.get(BaseConst.CAN_EAT_BASE).value;
this.canEatAdv = !!data.get(BaseConst.CAN_EAT_ADV).value;
this.petInheritRate = data.get(BaseConst.PET_INHERIT_RATE).value / 100;
}
}

View File

@ -60,6 +60,8 @@ export class BaseConst {
public static readonly CAN_EAT_BASE = 99039
// 进阶场能否吃牌
public static readonly CAN_EAT_ADV = 99040
// 随从继承比例
public static readonly PET_INHERIT_RATE = 99041
public static readonly COMPOUND = 'compound'
public static readonly EFFECTCARD = 'effectcard'