diff --git a/src/cfg/GameEnv.ts b/src/cfg/GameEnv.ts index 05b1c69..a1f1e45 100644 --- a/src/cfg/GameEnv.ts +++ b/src/cfg/GameEnv.ts @@ -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 } }