✨ feat:将魂碎片出售
This commit is contained in:
@@ -66,7 +66,7 @@ export class Client {
|
||||
expect(msg.data.roleId).to.be.a('string');
|
||||
expect(msg.data.channelName).to.be.a('string');
|
||||
});
|
||||
this._client.request('connector.entryHandler.enter', { serverId: this.serverId, token }, (enterRes) => {
|
||||
this._client.request('connector.entryHandler.enter', { serverId: this.serverId, token, version:"0.1.1.211229" }, (enterRes) => {
|
||||
// 消息回调
|
||||
checkSuccessResponse(enterRes);
|
||||
this._client.request('connector.entryHandler.debugGetRole', { magicWord: DEBUG_MAGIC_WORD }, (enterRes) => {
|
||||
|
||||
@@ -90,7 +90,43 @@ describe('全局养成测试', function () {
|
||||
});
|
||||
*/
|
||||
|
||||
describe('玉石养成测试', function () {
|
||||
// describe('玉石养成测试', function () {
|
||||
// let pinusClient: PinusWSClient;
|
||||
// let roleInfo;
|
||||
|
||||
// before(function (done) {
|
||||
// const c = new Client();
|
||||
// const timer = setInterval(() => {
|
||||
// if (c.client) {
|
||||
// pinusClient = c.client;
|
||||
// roleInfo = c.roleInfo;
|
||||
// clearInterval(timer);
|
||||
// done();
|
||||
// }
|
||||
// }, 500);
|
||||
// });
|
||||
|
||||
// after(function (done) {
|
||||
// pinusClient.disconnect();
|
||||
// // disconnect 后等待 500ms,供服务器清理环境、退出频道等
|
||||
// setTimeout(() => {
|
||||
// done();
|
||||
// }, 500);
|
||||
// });
|
||||
// // { roleId: 'EAmqtKscfy', roleName: 'kYEXBWNk', serverId: 1, values: { reward: addItem }
|
||||
// it('宝石一键合成', function (done) {
|
||||
// // pinusClient.request('role.heroHandler.addItem', { id: 60001, count: 10 }, (res) => {
|
||||
// // console.log("--------------------添加道具", res)
|
||||
// // done();
|
||||
// // })
|
||||
// pinusClient.request('role.equipHandler.composeStoneByItId', { itId: 42 }, (res) => {
|
||||
// console.log("-------------------- res", res)
|
||||
// done();
|
||||
// })
|
||||
// })
|
||||
// });
|
||||
|
||||
describe('将魂', function () {
|
||||
let pinusClient: PinusWSClient;
|
||||
let roleInfo;
|
||||
|
||||
@@ -113,20 +149,28 @@ describe('玉石养成测试', function () {
|
||||
done();
|
||||
}, 500);
|
||||
});
|
||||
// { roleId: 'EAmqtKscfy', roleName: 'kYEXBWNk', serverId: 1, values: { reward: addItem }
|
||||
it('宝石一键合成', function (done) {
|
||||
// pinusClient.request('role.heroHandler.addItem', { id: 60001, count: 10 }, (res) => {
|
||||
|
||||
// it('将魂回收', function (done) {
|
||||
// pinusClient.request('role.heroHandler.addItem', { id: 21019, count: 500 }, (res) => {
|
||||
// console.log("--------------------添加道具", res)
|
||||
// done();
|
||||
// })
|
||||
pinusClient.request('role.equipHandler.composeStoneByItId', { itId: 42 }, (res) => {
|
||||
console.log("-------------------- res", res)
|
||||
done();
|
||||
})
|
||||
})
|
||||
});
|
||||
// pinusClient.request('role.shopHandler.recycleSoul', { goodsId: 21019, count: 1 }, (res) => {
|
||||
// console.log("-------------------- res", res)
|
||||
// done();
|
||||
// })
|
||||
|
||||
// function addItem() {
|
||||
// let rewardInter;
|
||||
// rewardInter.push({ id: 60001, count: 10 });
|
||||
// }
|
||||
// pinusClient.request('role.shopHandler.recycleSoulFast', { recycleSoulFastPara }, (res) => {
|
||||
// console.log("-------------------- res", res)
|
||||
// done();
|
||||
// })
|
||||
|
||||
// })
|
||||
// });
|
||||
// export interface recycleSoulFastPara {
|
||||
// hid: number;
|
||||
// goodsId: number;
|
||||
// count: number;
|
||||
// }
|
||||
// let recycleSoulFastPara: recycleSoulFastPara[] = [];
|
||||
// recycleSoulFastPara.push({ hid: 19, goodsId: 21019, count: 1 });
|
||||
Reference in New Issue
Block a user