Merge branch 'master' of http://git.kingsome.cn/node/card_svr
This commit is contained in:
commit
58e207114d
@ -125,13 +125,13 @@ export class GameEnv {
|
|||||||
this.robotRateExtra = data.get(BaseConst.ROBOT_RATE_EXTRA).value
|
this.robotRateExtra = data.get(BaseConst.ROBOT_RATE_EXTRA).value
|
||||||
}
|
}
|
||||||
public getCheatRate(val: number) {
|
public getCheatRate(val: number) {
|
||||||
if (val < this.robotLvlLow) {
|
if (val < this.robotRateMid) {
|
||||||
return this.robotRateLow
|
return this.robotRateLow
|
||||||
} else if (val < this.robotLvlMid) {
|
} if (val < this.robotLvlHigh) {
|
||||||
return this.robotRateMid
|
return this.robotRateMid
|
||||||
} else if (val < this.robotLvlHigh) {
|
} else if (val < this.robotLvlExtra) {
|
||||||
return this.robotRateHigh
|
return this.robotRateHigh
|
||||||
} else {
|
} else if (val >= this.robotRateExtra){
|
||||||
return this.robotRateExtra
|
return this.robotRateExtra
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user