From 65f026db697072bcd8f06d3ede4051ce31ef333a Mon Sep 17 00:00:00 2001 From: zhl Date: Tue, 9 Mar 2021 20:43:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BD=9C=E5=BC=8A=E7=8E=87?= =?UTF-8?q?=E7=9A=84=E8=AE=A1=E7=AE=97=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/cfg/GameEnv.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 } }