修改作弊率的计算方式
This commit is contained in:
parent
7e52d2261a
commit
65f026db69
@ -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
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user