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
@@ -10,6 +10,7 @@ import { ItemModel } from '../../../db/Item';
import { gameData, getHeroExpByLv, getHeroStarByQuality, getHeroWakeByQuality, getHeroLvByExp, getMaxGradeByjobClass, getJobByGradeAndClass, getFriendShipById } from '../../../pubUtils/data';
import { RewardInter } from '../../../pubUtils/interface';
import { getAllAttrStage } from '../../../pubUtils/playerCe';
import { Stats } from 'fs';
export default function(app: Application) {
return new HeroHandler(app);
@@ -404,6 +405,8 @@ export class HeroHandler {
let exp:number = 0;
for (let item of items) {
let itemInfo = gameData.goods.get(item.id);
if (!itemInfo)
return resResult(STATUS.DIC_DATA_NOT_FOUND)
let dicItid = ITID.get(itemInfo.itid);
if (dicItid.type == CONSUME_TYPE.FAVOUR) {
exp += itemInfo.value;