fix 玩家升满级后经验计算bug

This commit is contained in:
luying
2020-11-25 16:18:20 +08:00
parent dd9c51f335
commit 71c2d99cf4
3 changed files with 14 additions and 6 deletions
+1 -1
View File
@@ -165,7 +165,7 @@ export class WarReward {
private async randomBlueprt() {
const { lv } = await RoleModel.findByRoleId(this.roleId);
const result = BLUEPRT_CHANCE.find(cur => {return cur.min <= lv && cur.max >= lv});
console.log('****', lv, result)
if(result) {
const dicOdds = decodeStr('possibility', result.chance);
const {dic: {id}} = getRandomWithWeight(dicOdds);