fix 玩家升满级后经验计算bug
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user