debug接口:获取所有武将添加职介
This commit is contained in:
@@ -741,8 +741,9 @@ export class HeroHandler {
|
|||||||
for(let { actorId } of gameData.recruit) {
|
for(let { actorId } of gameData.recruit) {
|
||||||
let dicHero = gameData.hero.get(actorId);
|
let dicHero = gameData.hero.get(actorId);
|
||||||
if(!dicHero) continue;
|
if(!dicHero) continue;
|
||||||
|
let { jobid, grade } = gameData.jobClassMaxGrades.get(dicHero.jobClass);
|
||||||
heroInfos.push({
|
heroInfos.push({
|
||||||
hid: actorId, star: 6, colorStar: 6, quality: 4, lv: 100, exp: getExpByLv(100).sum
|
hid: actorId, star: 6, colorStar: 6, quality: 4, lv: 100, exp: getExpByLv(100).sum, job: jobid, grade
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
let resultHeroes = await createHeroes(roleId, roleName, sid, serverId, heroInfos);
|
let resultHeroes = await createHeroes(roleId, roleName, sid, serverId, heroInfos);
|
||||||
|
|||||||
Reference in New Issue
Block a user