This commit is contained in:
mamengke01
2020-12-22 17:25:55 +08:00
parent eec53b688f
commit 9a377e94d8
18 changed files with 218 additions and 115 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import { ITID, CONSUME_TYPE, getCurNameById, ITEM_TABLE } from './../consts';
import { EquipModel } from './../db/Equip';
import { resResult, parseReward } from '../pubUtils/util';
import { resResult, parseGoodStr } from '../pubUtils/util';
import { getGoodById } from '../pubUtils/gamedata';
import { RoleModel } from '../db/Role';
import { setAp } from './actionPointService';
@@ -14,7 +14,7 @@ import { gameData } from '../pubUtils/data';
const _ = require('underscore');
export async function handleFixedReward(roleId: string, roleName: string, sid: string, rewardStr: string, multi: number) {
let reward = parseReward(rewardStr);
let reward = parseGoodStr(rewardStr);
let rewards = [];
for(let obj of reward)
rewards.push({ ...obj, count: Math.ceil(obj.count * multi)});