战力
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user