hid的初始seqId改为10000
This commit is contained in:
@@ -3,6 +3,7 @@ import { HeroModel } from '../../../db/Hero';
|
||||
import { EquipModel } from '../../../db/Equip';
|
||||
import { calculateCE } from '../../../pubUtils/util';
|
||||
import {Application, BackendSession, createTcpMailBox} from 'pinus';
|
||||
import { COUNTER } from '../../../consts/consts';
|
||||
|
||||
export default function(app: Application) {
|
||||
return new RoleHandler(app);
|
||||
@@ -13,7 +14,7 @@ export class RoleHandler {
|
||||
}
|
||||
|
||||
async initEquips(roleId: string, roleName: string) {
|
||||
const seqId = await CounterModel.getNewCounter('eid');
|
||||
const seqId = await CounterModel.getNewCounter(COUNTER.EID);
|
||||
const equipInfo = {
|
||||
roleId,
|
||||
roleName,
|
||||
@@ -27,7 +28,7 @@ export class RoleHandler {
|
||||
}
|
||||
|
||||
async initHeros(roleId: string, roleName: string) {
|
||||
const seqId = await CounterModel.getNewCounter('hid');
|
||||
const seqId = await CounterModel.getNewCounter(COUNTER.HID);
|
||||
let ce = calculateCE({hid: 1, lv: 1});
|
||||
|
||||
const heroInfo = {
|
||||
|
||||
Reference in New Issue
Block a user