更新一下const的使用
This commit is contained in:
@@ -30,17 +30,15 @@ export class RoleHandler {
|
||||
}
|
||||
|
||||
async initHeros(roleId: string, roleName: string) {
|
||||
const seqId = await CounterModel.getNewCounter(COUNTER.HID);
|
||||
let ce = calculateCE({hid: 1, lv: 1});
|
||||
|
||||
const heroInfo = {
|
||||
roleId,
|
||||
roleName,
|
||||
hid: 1,
|
||||
hName: '曹操',
|
||||
seqId,
|
||||
star: 0,
|
||||
ce
|
||||
quality: 1,
|
||||
job: 1,
|
||||
star: 0
|
||||
}
|
||||
await HeroModel.createHero(heroInfo);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user