炼器堂:修改字段

This commit is contained in:
luying
2022-02-26 17:07:28 +08:00
parent 974b136fda
commit 0e14ea0440
9 changed files with 76 additions and 45 deletions
+9 -1
View File
@@ -7,12 +7,13 @@ import { Teraph, RoleModel, RoleType, RoleUpdate } from '../db/Role';
import { SCHOOL } from '../pubUtils/dicParam';
import { gameData } from '../pubUtils/data';
import { SchoolModel } from '../db/School';
import { SclResultInter, SclPosInter } from '../pubUtils/interface';
import { SclResultInter, SclPosInter, RewardInter } from '../pubUtils/interface';
import { CheckMeterial } from './rewardService';
import { HeroUpdate } from '../db/Hero';
import { SkinUpdate } from '../db/Skin';
import { Figure } from '../domain/dbGeneral';
import { pick } from 'underscore';
import { Reward } from '../domain/battleField/pvp';
export async function getTeraphStrengthenResult(role: RoleType, count: number, dicTeraph: DicTeraph, teraph: Teraph) {
let criAttr: number[] = [], times = 0;
@@ -150,4 +151,11 @@ export function getInitHeroById(hid: number) {
heroInfo: pinus.app.get('initHeroes').get(hid),
skinInfo: pinus.app.get('initSkins').get(hid)
}
}
export function addConsumeToHero(oldConsume: Reward[], consumes: RewardInter[]) {
let newConsume: Reward[] = [];
for(let {id, count} of oldConsume) {
}
}