创建初始装备

This commit is contained in:
luying
2020-12-17 18:46:20 +08:00
parent e0c1e8045b
commit b5b7d071c1
15 changed files with 205 additions and 80 deletions
@@ -16,17 +16,17 @@ export class RoleHandler {
}
async initEquips(roleId: string, roleName: string) {
const seqId = await CounterModel.getNewCounter(COUNTER.EID);
const equipInfo = {
roleId,
roleName,
id: 1,
name: '倚天剑',
seqId,
type: 1
}
const equip = await EquipModel.createEquip(equipInfo);
await HeroModel.addEquip(roleId, 12, equip._id);
// const seqId = await CounterModel.getNewCounter(COUNTER.EID);
// const equipInfo = {
// roleId,
// roleName,
// id: 1,
// name: '倚天剑',
// seqId,
// type: 1
// }
// const equip = await EquipModel.createEquip(equipInfo);
// await HeroModel.addEquip(roleId, 12, equip._id);
}
async initHeros(roleId: string, roleName: string) {