寻宝:修改掉落bug;修改战斗结果判断

This commit is contained in:
liangtongchuan
2020-12-02 13:13:09 +08:00
parent a001ec4478
commit 3515f99260
6 changed files with 88 additions and 33 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ export async function handleFixedReward(roleId: string, roleName: string, reward
let reward = decodeStr('fixReward', rewardStr);
let rewards = [];
for(let obj of reward)
rewards.push({ ...obj, count: obj.count * multi});
rewards.push({ ...obj, count: Math.ceil(obj.count * multi)});
const result = await handleReward(roleId, roleName, reward);
return result;
}