创建初始装备
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user