分解装备 穿戴或卸载装备 装备打孔 宝石镶嵌 宝石合成 宝石卸下

This commit is contained in:
mamengke01
2020-12-17 21:44:11 +08:00
parent d2097a4264
commit 1005b14abc
11 changed files with 266 additions and 107 deletions
@@ -21,14 +21,14 @@ export class HeroHandler {
private channelService: ChannelService = this.app.get('channelService');
public async test(msg: { id: number, count: number, seqId:number}, session: BackendSession) {
public async test(msg: { id: number, count: number, seqId:number, type:number}, session: BackendSession) {
let roleId: string = session.get('roleId');
let roleName: string = session.get('roleName');
let sid: string = session.get('sid');
let {id, count, seqId} = msg;
let {id, count, seqId, type} = msg;
let result = await handleCost(roleId, sid, [{id, count, seqId}] );
let result = await handleCost(roleId, sid, [{id, count, seqId, type}] );
//let result = await addItems(roleId, roleName, sid, [{id, count}] );
if(!result) {
return resResult(STATUS.BATTLE_CONSUMES_NOT_ENOUGH);