修正由于配表数据类型更改引起的不能吃牌配置无效的bug
This commit is contained in:
parent
be5706b564
commit
4e7df43d90
@ -129,8 +129,8 @@ export class GameEnv {
|
||||
parseInt(data.get(BaseConst.PLAYER3_INIT_NUM).value),
|
||||
parseInt(data.get(BaseConst.PLAYER4_INIT_NUM).value)
|
||||
]
|
||||
this.canEatBase = !!data.get(BaseConst.CAN_EAT_BASE).value
|
||||
this.canEatAdv = !!data.get(BaseConst.CAN_EAT_ADV).value
|
||||
this.canEatBase = !!parseInt(data.get(BaseConst.CAN_EAT_BASE).value)
|
||||
this.canEatAdv = !!parseInt(data.get(BaseConst.CAN_EAT_ADV).value)
|
||||
this.petInheritRate = parseInt(data.get(BaseConst.PET_INHERIT_RATE).value) / 100
|
||||
this.robotLvlLow = parseInt(data.get(BaseConst.ROBOT_LVL_LOW).value)
|
||||
this.robotLvlMid = parseInt(data.get(BaseConst.ROBOT_LVL_MID).value)
|
||||
@ -155,9 +155,9 @@ export class GameEnv {
|
||||
+(data.get(99060)?.value || 0),
|
||||
]
|
||||
this.maxWaitingTime = 60
|
||||
this.allowLeftPve = !!data.get(99062)?.value
|
||||
this.allowLeftCasual = !!data.get(99063)?.value
|
||||
this.allowLeftMatch = !!data.get(99064)?.value
|
||||
this.allowLeftPve = !!parseInt(data.get(99062)?.value)
|
||||
this.allowLeftCasual = !!parseInt(data.get(99063)?.value)
|
||||
this.allowLeftMatch = !!parseInt(data.get(99064)?.value)
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user