This commit is contained in:
yuexin 2021-03-10 10:50:56 +08:00
commit 58e207114d

View File

@ -125,13 +125,13 @@ export class GameEnv {
this.robotRateExtra = data.get(BaseConst.ROBOT_RATE_EXTRA).value
}
public getCheatRate(val: number) {
if (val < this.robotLvlLow) {
if (val < this.robotRateMid) {
return this.robotRateLow
} else if (val < this.robotLvlMid) {
} if (val < this.robotLvlHigh) {
return this.robotRateMid
} else if (val < this.robotLvlHigh) {
} else if (val < this.robotLvlExtra) {
return this.robotRateHigh
} else {
} else if (val >= this.robotRateExtra){
return this.robotRateExtra
}
}