|
@@ -236,87 +236,68 @@ export class Rectangle extends test.Shape {
|
236
|
236
|
}
|
237
|
237
|
|
238
|
238
|
|
239
|
|
-
|
240
|
|
-export class SkillBuff {
|
|
239
|
+export namespace Common {
|
|
240
|
+export class Reward {
|
241
|
241
|
|
242
|
242
|
constructor(_buf_: ByteBuf) {
|
243
|
|
- this.idx = _buf_.ReadInt()
|
244
|
|
- this.remark = _buf_.ReadString()
|
245
|
|
- this.type = _buf_.ReadInt()
|
246
|
|
- this.parameters = _buf_.ReadString()
|
247
|
|
- this.probability = _buf_.ReadInt()
|
248
|
|
- this.triggerCondition = _buf_.ReadString()
|
249
|
|
- this.effectType = _buf_.ReadInt()
|
250
|
|
- this.duration = _buf_.ReadInt()
|
251
|
|
- this.overlapTimes = _buf_.ReadInt()
|
252
|
|
- this.uniqueGain = _buf_.ReadBool()
|
253
|
|
- this.halo = _buf_.ReadBool()
|
254
|
|
- this.attributes = _buf_.ReadString()
|
255
|
|
- this.mixBufficon = _buf_.ReadInt()
|
256
|
|
- this.skillShowId = _buf_.ReadInt()
|
257
|
|
- this.floatingTextId = _buf_.ReadInt()
|
|
243
|
+ this.itemid = _buf_.ReadInt()
|
|
244
|
+ this.num = _buf_.ReadInt()
|
258
|
245
|
}
|
259
|
246
|
|
260
|
247
|
/**
|
261
|
|
- * buffid
|
262
|
|
- */
|
263
|
|
- readonly idx: number
|
264
|
|
- /**
|
265
|
|
- * 备注
|
|
248
|
+ * 道具id
|
266
|
249
|
*/
|
267
|
|
- readonly remark: string
|
|
250
|
+ readonly itemid: number
|
268
|
251
|
/**
|
269
|
|
- * buff类型
|
|
252
|
+ * 数量
|
270
|
253
|
*/
|
271
|
|
- readonly type: number
|
272
|
|
- /**
|
273
|
|
- * buff参数
|
274
|
|
- */
|
275
|
|
- readonly parameters: string
|
276
|
|
- /**
|
277
|
|
- * 触发概率
|
278
|
|
- */
|
279
|
|
- readonly probability: number
|
280
|
|
- /**
|
281
|
|
- * 触发条件
|
282
|
|
- */
|
283
|
|
- readonly triggerCondition: string
|
284
|
|
- /**
|
285
|
|
- * 效果类型
|
286
|
|
- */
|
287
|
|
- readonly effectType: number
|
288
|
|
- /**
|
289
|
|
- * 持续时间
|
290
|
|
- */
|
291
|
|
- readonly duration: number
|
292
|
|
- /**
|
293
|
|
- * 叠加次数
|
294
|
|
- */
|
295
|
|
- readonly overlapTimes: number
|
|
254
|
+ readonly num: number
|
|
255
|
+
|
|
256
|
+ resolve(tables:Tables) {
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+ }
|
|
260
|
+}
|
|
261
|
+
|
|
262
|
+}
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
|
|
266
|
+export class HeroLevel {
|
|
267
|
+
|
|
268
|
+ constructor(_buf_: ByteBuf) {
|
|
269
|
+ this.id = _buf_.ReadInt()
|
|
270
|
+ this.level = _buf_.ReadInt()
|
|
271
|
+ { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.unlockSkill = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = _buf_.ReadInt(); this.unlockSkill.push(_e0);}}
|
|
272
|
+ this.unlockSkillDesc = _buf_.ReadString()
|
|
273
|
+ this.atk = _buf_.ReadInt()
|
|
274
|
+ this.atkSpeed = _buf_.ReadInt()
|
|
275
|
+ }
|
|
276
|
+
|
296
|
277
|
/**
|
297
|
|
- * 唯一增益
|
|
278
|
+ * 英雄ID
|
298
|
279
|
*/
|
299
|
|
- readonly uniqueGain: boolean
|
|
280
|
+ readonly id: number
|
300
|
281
|
/**
|
301
|
|
- * 是否是光环
|
|
282
|
+ * 等级
|
302
|
283
|
*/
|
303
|
|
- readonly halo: boolean
|
|
284
|
+ readonly level: number
|
304
|
285
|
/**
|
305
|
|
- * buff增加的属性
|
|
286
|
+ * 英雄解锁技能
|
306
|
287
|
*/
|
307
|
|
- readonly attributes: string
|
|
288
|
+ readonly unlockSkill: number[]
|
308
|
289
|
/**
|
309
|
|
- * 是否合并
|
|
290
|
+ * 解锁技能描述
|
310
|
291
|
*/
|
311
|
|
- readonly mixBufficon: number
|
|
292
|
+ readonly unlockSkillDesc: string
|
312
|
293
|
/**
|
313
|
|
- * 效果id
|
|
294
|
+ * 攻击力
|
314
|
295
|
*/
|
315
|
|
- readonly skillShowId: number
|
|
296
|
+ readonly atk: number
|
316
|
297
|
/**
|
317
|
|
- * 飘字id
|
|
298
|
+ * 攻击速度
|
318
|
299
|
*/
|
319
|
|
- readonly floatingTextId: number
|
|
300
|
+ readonly atkSpeed: number
|
320
|
301
|
|
321
|
302
|
resolve(tables:Tables) {
|
322
|
303
|
|
|
@@ -325,15 +306,6 @@ export class SkillBuff {
|
325
|
306
|
|
326
|
307
|
|
327
|
308
|
|
328
|
|
-
|
329
|
|
-
|
330
|
|
-
|
331
|
|
-
|
332
|
|
-
|
333
|
|
-
|
334
|
|
-
|
335
|
|
-
|
336
|
|
-
|
337
|
309
|
}
|
338
|
310
|
}
|
339
|
311
|
|
|
@@ -471,41 +443,86 @@ export class Skill {
|
471
|
443
|
|
472
|
444
|
|
473
|
445
|
|
474
|
|
-export class HeroLevel {
|
|
446
|
+export class SkillBuff {
|
475
|
447
|
|
476
|
448
|
constructor(_buf_: ByteBuf) {
|
477
|
|
- this.id = _buf_.ReadInt()
|
478
|
|
- this.level = _buf_.ReadInt()
|
479
|
|
- { let n = Math.min(_buf_.ReadSize(), _buf_.Size); this.unlockSkill = []; for(let i = 0 ; i < n ; i++) { let _e0; _e0 = _buf_.ReadInt(); this.unlockSkill.push(_e0);}}
|
480
|
|
- this.unlockSkillDesc = _buf_.ReadString()
|
481
|
|
- this.atk = _buf_.ReadInt()
|
482
|
|
- this.atkSpeed = _buf_.ReadInt()
|
|
449
|
+ this.idx = _buf_.ReadInt()
|
|
450
|
+ this.remark = _buf_.ReadString()
|
|
451
|
+ this.type = _buf_.ReadInt()
|
|
452
|
+ this.parameters = _buf_.ReadString()
|
|
453
|
+ this.probability = _buf_.ReadInt()
|
|
454
|
+ this.triggerCondition = _buf_.ReadString()
|
|
455
|
+ this.effectType = _buf_.ReadInt()
|
|
456
|
+ this.duration = _buf_.ReadInt()
|
|
457
|
+ this.overlapTimes = _buf_.ReadInt()
|
|
458
|
+ this.uniqueGain = _buf_.ReadBool()
|
|
459
|
+ this.halo = _buf_.ReadBool()
|
|
460
|
+ this.attributes = _buf_.ReadString()
|
|
461
|
+ this.mixBufficon = _buf_.ReadInt()
|
|
462
|
+ this.skillShowId = _buf_.ReadInt()
|
|
463
|
+ this.floatingTextId = _buf_.ReadInt()
|
483
|
464
|
}
|
484
|
465
|
|
485
|
466
|
/**
|
486
|
|
- * 英雄ID
|
|
467
|
+ * buffid
|
487
|
468
|
*/
|
488
|
|
- readonly id: number
|
|
469
|
+ readonly idx: number
|
489
|
470
|
/**
|
490
|
|
- * 等级
|
|
471
|
+ * 备注
|
491
|
472
|
*/
|
492
|
|
- readonly level: number
|
|
473
|
+ readonly remark: string
|
493
|
474
|
/**
|
494
|
|
- * 英雄解锁技能
|
|
475
|
+ * buff类型
|
495
|
476
|
*/
|
496
|
|
- readonly unlockSkill: number[]
|
|
477
|
+ readonly type: number
|
497
|
478
|
/**
|
498
|
|
- * 解锁技能描述
|
|
479
|
+ * buff参数
|
499
|
480
|
*/
|
500
|
|
- readonly unlockSkillDesc: string
|
|
481
|
+ readonly parameters: string
|
501
|
482
|
/**
|
502
|
|
- * 攻击力
|
|
483
|
+ * 触发概率
|
503
|
484
|
*/
|
504
|
|
- readonly atk: number
|
|
485
|
+ readonly probability: number
|
505
|
486
|
/**
|
506
|
|
- * 攻击速度
|
|
487
|
+ * 触发条件
|
507
|
488
|
*/
|
508
|
|
- readonly atkSpeed: number
|
|
489
|
+ readonly triggerCondition: string
|
|
490
|
+ /**
|
|
491
|
+ * 效果类型
|
|
492
|
+ */
|
|
493
|
+ readonly effectType: number
|
|
494
|
+ /**
|
|
495
|
+ * 持续时间
|
|
496
|
+ */
|
|
497
|
+ readonly duration: number
|
|
498
|
+ /**
|
|
499
|
+ * 叠加次数
|
|
500
|
+ */
|
|
501
|
+ readonly overlapTimes: number
|
|
502
|
+ /**
|
|
503
|
+ * 唯一增益
|
|
504
|
+ */
|
|
505
|
+ readonly uniqueGain: boolean
|
|
506
|
+ /**
|
|
507
|
+ * 是否是光环
|
|
508
|
+ */
|
|
509
|
+ readonly halo: boolean
|
|
510
|
+ /**
|
|
511
|
+ * buff增加的属性
|
|
512
|
+ */
|
|
513
|
+ readonly attributes: string
|
|
514
|
+ /**
|
|
515
|
+ * 是否合并
|
|
516
|
+ */
|
|
517
|
+ readonly mixBufficon: number
|
|
518
|
+ /**
|
|
519
|
+ * 效果id
|
|
520
|
+ */
|
|
521
|
+ readonly skillShowId: number
|
|
522
|
+ /**
|
|
523
|
+ * 飘字id
|
|
524
|
+ */
|
|
525
|
+ readonly floatingTextId: number
|
509
|
526
|
|
510
|
527
|
resolve(tables:Tables) {
|
511
|
528
|
|
|
@@ -514,6 +531,15 @@ export class HeroLevel {
|
514
|
531
|
|
515
|
532
|
|
516
|
533
|
|
|
534
|
+
|
|
535
|
+
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
|
|
541
|
+
|
|
542
|
+
|
517
|
543
|
}
|
518
|
544
|
}
|
519
|
545
|
|