增加随从继承比例的配置项
This commit is contained in:
parent
42ab759622
commit
1701dfa38b
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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'
|
||||
|
Loading…
x
Reference in New Issue
Block a user