远征:在功能开启前不随机对手
This commit is contained in:
@@ -871,18 +871,18 @@ export class Rank {
|
||||
this.valueConfig.forEach(({ name, reverse, isTimestamp, len, weight }) => {
|
||||
let pow = Math.pow(10, weight);
|
||||
let score = Math.floor(_num / pow);
|
||||
console.log('*** 1', name, len, weight, score)
|
||||
// console.log('*** 1', name, len, weight, score)
|
||||
_num -= pow * score;
|
||||
if(isTimestamp) score = this.handleTimestamp(score, len);
|
||||
console.log('*** 2', name, len, weight, score)
|
||||
// console.log('*** 2', name, len, weight, score)
|
||||
if(reverse) {
|
||||
let pow = Math.pow(10, len);
|
||||
score = pow - 1 - score;
|
||||
}
|
||||
console.log('*** 3', name, len, weight, score)
|
||||
// console.log('*** 3', name, len, weight, score)
|
||||
scores.push(score);
|
||||
})
|
||||
console.log('#### decodeScore', this.key, scores, this.valueConfig);
|
||||
// console.log('#### decodeScore', this.key, scores, this.valueConfig);
|
||||
return scores;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user