captainbattle 1.0.7 → 1.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (149) hide show
  1. package/dist/core/CallID.d.ts +21 -13
  2. package/dist/core/CallID.js +23 -13
  3. package/dist/core/ListenID.d.ts +551 -501
  4. package/dist/core/ListenID.js +552 -501
  5. package/dist/core/config/BadgeCfg.d.ts +18 -4
  6. package/dist/core/config/BadgeCfg.js +20 -6
  7. package/dist/core/config/BattlePassCfg.d.ts +1 -1
  8. package/dist/core/config/BuffCfg.d.ts +7 -1
  9. package/dist/core/config/BuffCfg.js +6 -0
  10. package/dist/core/config/Cfg.d.ts +36 -4
  11. package/dist/core/config/Cfg.js +46 -6
  12. package/dist/core/config/ChatLogCfg.d.ts +18 -0
  13. package/dist/core/config/ChatLogCfg.js +17 -0
  14. package/dist/core/config/Const.d.ts +2 -1
  15. package/dist/core/config/Const.js +1 -0
  16. package/dist/core/config/ConstConfigCfg.d.ts +2 -0
  17. package/dist/core/config/ConstConfigCfg.js +2 -0
  18. package/dist/core/config/DragonPathCfg.d.ts +1 -1
  19. package/dist/core/config/EmailCfg.d.ts +5 -3
  20. package/dist/core/config/EmailCfg.js +7 -5
  21. package/dist/core/config/EndlessConfigCfg.d.ts +1 -0
  22. package/dist/core/config/EndlessConfigCfg.js +1 -0
  23. package/dist/core/config/EnemyGridCfg.d.ts +1 -1
  24. package/dist/core/config/FormationCfg.d.ts +1 -1
  25. package/dist/core/config/FuncDescCfg.d.ts +4 -0
  26. package/dist/core/config/FuncDescCfg.js +4 -0
  27. package/dist/core/config/GemCfg.d.ts +1 -1
  28. package/dist/core/config/GuildBossWaveCfg.d.ts +1 -0
  29. package/dist/core/config/GuildIslandBuildCfg.d.ts +2 -1
  30. package/dist/core/config/GuildIslandTaskCfg.d.ts +13 -0
  31. package/dist/core/config/GuildIslandTaskCfg.js +8 -0
  32. package/dist/core/config/ItemsCfg.d.ts +1 -1
  33. package/dist/core/config/PetCfg.d.ts +1 -1
  34. package/dist/core/config/PetConfigCfg.d.ts +7 -0
  35. package/dist/core/config/PetConfigCfg.js +7 -0
  36. package/dist/core/config/PetSkillCfg.d.ts +1 -0
  37. package/dist/core/config/PetSlotLvCfg.d.ts +1 -0
  38. package/dist/core/config/PrivilegeCfg.d.ts +1 -0
  39. package/dist/core/config/PrivilegeCfg.js +1 -0
  40. package/dist/core/config/RankListCfg.d.ts +10 -0
  41. package/dist/core/config/RankListCfg.js +8 -0
  42. package/dist/core/config/RelicDungeonConfigCfg.d.ts +0 -1
  43. package/dist/core/config/RelicDungeonConfigCfg.js +0 -1
  44. package/dist/core/config/RelicDungeonGrowCfg.d.ts +5 -0
  45. package/dist/core/config/RobotConfigCfg.d.ts +7 -6
  46. package/dist/core/config/RuleDescCfg.d.ts +6 -2
  47. package/dist/core/config/RuleDescCfg.js +9 -5
  48. package/dist/core/config/SeaArenaConfigCfg.d.ts +2 -1
  49. package/dist/core/config/SeaArenaConfigCfg.js +1 -0
  50. package/dist/core/config/SprintActivityConfigCfg.d.ts +12 -0
  51. package/dist/core/config/SprintActivityConfigCfg.js +12 -0
  52. package/dist/core/config/SprintActivityRankRewardCfg.d.ts +3 -1
  53. package/dist/core/config/StageCfg.d.ts +2 -0
  54. package/dist/core/config/TreasureMatchConfigCfg.d.ts +19 -0
  55. package/dist/core/config/TreasureMatchConfigCfg.js +16 -0
  56. package/dist/core/config/TreasureMatchIconCfg.d.ts +12 -0
  57. package/dist/core/config/TreasureMatchIconCfg.js +8 -0
  58. package/dist/core/config/TreasureMatchRankRewardCfg.d.ts +10 -0
  59. package/dist/core/config/TreasureMatchRankRewardCfg.js +8 -0
  60. package/dist/core/config/VehicleUpgradeAttrCfg.d.ts +10 -0
  61. package/dist/core/config/VehicleUpgradeAttrCfg.js +8 -0
  62. package/dist/core/config/VehicleUpgradeConfigCfg.d.ts +16 -0
  63. package/dist/core/config/VehicleUpgradeConfigCfg.js +13 -0
  64. package/dist/core/config/VehicleUpgradeLevelCfg.d.ts +13 -0
  65. package/dist/core/config/VehicleUpgradeLevelCfg.js +8 -0
  66. package/dist/core/framework/Time.d.ts +1 -0
  67. package/dist/core/framework/Time.js +1 -0
  68. package/dist/core/module/arena/ArenaBattleModule.d.ts +3 -0
  69. package/dist/core/module/arena/ArenaBattleModule.js +14 -2
  70. package/dist/core/module/battle/Game.d.ts +13 -3
  71. package/dist/core/module/battle/Game.js +36 -6
  72. package/dist/core/module/battle/IGameModule.d.ts +1 -0
  73. package/dist/core/module/battle/IGameModule.js +7 -3
  74. package/dist/core/module/battle/battle.interface.d.ts +17 -1
  75. package/dist/core/module/battle/battle.interface.js +3 -0
  76. package/dist/core/module/battle/buff/buffitem/BossCloneBuff.d.ts +10 -0
  77. package/dist/core/module/battle/buff/buffitem/BossCloneBuff.js +89 -0
  78. package/dist/core/module/battle/buff/buffitem/BossPetrifyBuff.d.ts +9 -0
  79. package/dist/core/module/battle/buff/buffitem/BossPetrifyBuff.js +60 -0
  80. package/dist/core/module/battle/buff/buffitem/BossReinforcementBuff.d.ts +7 -0
  81. package/dist/core/module/battle/buff/buffitem/BossReinforcementBuff.js +26 -0
  82. package/dist/core/module/battle/buff/buffitem/ForceDizzinessBuff.d.ts +6 -0
  83. package/dist/core/module/battle/buff/buffitem/ForceDizzinessBuff.js +26 -0
  84. package/dist/core/module/battle/buff/buffitem/ImmuneForceDizziness.d.ts +3 -0
  85. package/dist/core/module/battle/buff/buffitem/ImmuneForceDizziness.js +18 -0
  86. package/dist/core/module/battle/buff/buffitem/PosionBuff.js +8 -2
  87. package/dist/core/module/battle/buff/buffitem/ReplaceSkillBuff.d.ts +1 -1
  88. package/dist/core/module/battle/buff/buffitem/ReplaceSkillBuff.js +4 -3
  89. package/dist/core/module/battle/buff/buffitem/SprintBuff.js +40 -17
  90. package/dist/core/module/battle/buff/buffitem/VenomBurstBuff.d.ts +8 -0
  91. package/dist/core/module/battle/buff/buffitem/VenomBurstBuff.js +40 -0
  92. package/dist/core/module/battle/buff/buffitem/index.d.ts +6 -0
  93. package/dist/core/module/battle/buff/buffitem/index.js +7 -1
  94. package/dist/core/module/battle/entity/FighterData.js +5 -1
  95. package/dist/core/module/battle/event/EntityEvent.d.ts +2 -0
  96. package/dist/core/module/battle/event/EntityEvent.js +2 -0
  97. package/dist/core/module/battle/factory/FighterFactory.js +17 -5
  98. package/dist/core/module/battle/fsm-state/Boss38210State.d.ts +11 -0
  99. package/dist/core/module/battle/fsm-state/Boss38210State.js +30 -0
  100. package/dist/core/module/battle/fsm-state/FighterStateProfiles.d.ts +2 -1
  101. package/dist/core/module/battle/fsm-state/FighterStateProfiles.js +4 -2
  102. package/dist/core/module/battle/fsm-state/TurnState.js +4 -4
  103. package/dist/core/module/battle/fsm-state/TurnTransitions.js +4 -4
  104. package/dist/core/module/battle/fsm-state/index.d.ts +1 -0
  105. package/dist/core/module/battle/fsm-state/index.js +2 -1
  106. package/dist/core/module/battle/manager/EntityManager.js +7 -3
  107. package/dist/core/module/battle/skill/emitter/SkillTargetHorRandomEmitter.d.ts +12 -0
  108. package/dist/core/module/battle/skill/emitter/SkillTargetHorRandomEmitter.js +62 -0
  109. package/dist/core/module/battle/skill/emitter/index.d.ts +1 -0
  110. package/dist/core/module/battle/skill/emitter/index.js +2 -1
  111. package/dist/core/module/battle/skill/impacts/Impact101.js +1 -0
  112. package/dist/core/module/battle/skill/impacts/Impact3.js +2 -1
  113. package/dist/core/module/battle/skill/impacts/Impact5.js +5 -1
  114. package/dist/core/module/battle/system/BornSystem.js +4 -0
  115. package/dist/core/module/battle/system/BuffSystem.js +9 -3
  116. package/dist/core/module/battle/system/SkillSystem.js +1 -1
  117. package/dist/core/module/battle/system/TurnPhaseSystem.js +1 -1
  118. package/dist/core/module/battle/target/RandomPosSelection.d.ts +4 -0
  119. package/dist/core/module/battle/target/RandomPosSelection.js +61 -0
  120. package/dist/core/module/battle/target/index.d.ts +1 -0
  121. package/dist/core/module/battle/target/index.js +2 -1
  122. package/dist/core/module/battle/turn/TurnBattleGame.d.ts +11 -3
  123. package/dist/core/module/battle/turn/TurnBattleGame.js +53 -12
  124. package/dist/core/module/battle/turn/TurnBattleModule.js +2 -2
  125. package/dist/core/module/battle/turn/TurnBattleTypes.d.ts +1 -6
  126. package/dist/core/module/battle/turn/TurnBattleTypes.js +1 -4
  127. package/dist/core/module/battle/util/BattleConfig.js +2 -2
  128. package/dist/core/module/battle/util/BattleUtils.d.ts +7 -1
  129. package/dist/core/module/battle/util/BattleUtils.js +67 -33
  130. package/dist/core/module/guild/island/battle/GuildIsLandBattleModule.d.ts +11 -0
  131. package/dist/core/module/guild/island/battle/GuildIsLandBattleModule.js +44 -0
  132. package/dist/core/module/guild/island/battle/index.d.ts +1 -0
  133. package/dist/core/module/guild/island/battle/index.js +13 -0
  134. package/dist/core/module/guild/view/boss/GuildBossBattleModule.js +1 -0
  135. package/dist/core/module/module.interface.d.ts +24 -0
  136. package/dist/core/module/module.interface.js +3 -0
  137. package/dist/core/module/property/Property.d.ts +2 -1
  138. package/dist/core/module/property/Property.js +8 -7
  139. package/dist/core/module/property/PropertyUtil.d.ts +17 -0
  140. package/dist/core/module/property/PropertyUtil.js +75 -1
  141. package/dist/core/module/relicDungeon/RelicBattleModule.d.ts +18 -0
  142. package/dist/core/module/relicDungeon/RelicBattleModule.js +148 -5
  143. package/dist/core/proto/CommonProto.d.ts +8740 -4068
  144. package/dist/core/proto/Proto.d.ts +129 -39
  145. package/dist/index.d.ts +47 -4
  146. package/dist/index.js +69 -12
  147. package/dist/register-all.d.ts +1 -0
  148. package/dist/register-all.js +1 -0
  149. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -12,6 +12,7 @@ exports.startRelicDungeonVerify = startRelicDungeonVerify;
12
12
  exports.startGuildVerify = startGuildVerify;
13
13
  exports.startDailyTrialVerify = startDailyTrialVerify;
14
14
  exports.startArenaVerify = startArenaVerify;
15
+ exports.startIslandVerify = startIslandVerify;
15
16
  // 必须排在最前面:给 require 装上 db:// 说明符的解析钩子。
16
17
  // tsc 是按书写顺序依次 require 的,放第一行才能保证下面那些
17
18
  // `db://assets/scripts/...` 形式的导入能走到钩子。详见 db-url-resolver.ts。
@@ -184,7 +185,7 @@ function loadFighterInfo(battlePlayer) {
184
185
  }
185
186
  return myFightDatas;
186
187
  }
187
- function parseFighterInfo(battlePlayer, playerId) {
188
+ function parseFighterInfo(battlePlayer, playerId, attrAdd, powerAdd) {
188
189
  const myFightDatas = [];
189
190
  let waitBornSkillIds = [];
190
191
  let waitLearnSkillIds = [];
@@ -204,6 +205,14 @@ function parseFighterInfo(battlePlayer, playerId) {
204
205
  if (myRoleData.waitToLearn && myRoleData.waitToLearn.length) {
205
206
  waitLearnSkillIds.push(...myRoleData.waitToLearn);
206
207
  }
208
+ //公会加成
209
+ if (attrAdd) {
210
+ for (const key in attrAdd) {
211
+ if (!Object.hasOwn(attrAdd, key))
212
+ continue;
213
+ Property_1.PropertyHelper.addPropertyByKeyValue(myRoleData.property, +key, attrAdd[key]);
214
+ }
215
+ }
207
216
  this.cutSomeProperty(myRoleData);
208
217
  myFightDatas.push(myRoleData);
209
218
  }
@@ -214,6 +223,7 @@ function parseFighterInfo(battlePlayer, playerId) {
214
223
  * @param type 游戏模块
215
224
  * @param battlePlayer 玩家数据
216
225
  * @param param 游戏参数
226
+ * @param callback 回调函数
217
227
  * @returns 是否胜利
218
228
  */
219
229
  function startBattleVerify(type, battlePlayer, param, callback) {
@@ -278,9 +288,13 @@ function startBattleVerify(type, battlePlayer, param, callback) {
278
288
  }
279
289
  let wavesPro = [];
280
290
  let logicStep = 60;
291
+ let weatherTraitId = 0;
292
+ let mapTraitId = 0;
281
293
  if (type === battle_interface_1.EGameModule.Stage) {
282
294
  let stage = Cfg_1.Cfg.Stage.get(param.stageId);
283
295
  if (stage) {
296
+ weatherTraitId = stage.stageType === 2 ? (param.weatherTraitId || 0) : 0;
297
+ mapTraitId = stage.stageType === 2 ? (param.mapTraitId || 0) : 0;
284
298
  let lvMonId = stage.lvMould;
285
299
  if (param.forceLvMould) {
286
300
  lvMonId = param.forceLvMould;
@@ -336,6 +350,8 @@ function startBattleVerify(type, battlePlayer, param, callback) {
336
350
  maxExpLevel: 0,
337
351
  inputs,
338
352
  talentSkillIds,
353
+ weatherTraitId,
354
+ mapTraitId,
339
355
  debugEvent: param.debugEvent,
340
356
  resultCall: (win, debugData) => {
341
357
  isWin = win;
@@ -375,8 +391,18 @@ function startBattleVerify(type, battlePlayer, param, callback) {
375
391
  game.destroy();
376
392
  return isWin;
377
393
  }
378
- function startBattlePVP(type, challenger, defender, param) {
394
+ /**
395
+ * 开始验证pvp战斗
396
+ * @param type 游戏模块
397
+ * @param challenger 挑战者玩家数据
398
+ * @param defender 防守者玩家数据
399
+ * @param param 游戏参数
400
+ * @param callback 回调函数
401
+ * @returns 是否胜利
402
+ */
403
+ function startBattlePVP(type, challenger, defender, param, callback) {
379
404
  if (param.forcePass) {
405
+ callback && callback(null);
380
406
  return true;
381
407
  }
382
408
  // 配置按需加载:入口 import 本包不再有读盘副作用,直接调用也能跑
@@ -387,9 +413,9 @@ function startBattlePVP(type, challenger, defender, param) {
387
413
  const challengeUserId = +battlePlayer.baseInfo.userId;
388
414
  const defenderUserId = +enemyBattlePlayer.baseInfo.userId;
389
415
  //加载挑战方单位数据
390
- const challengerInfo = this.parseFighterInfo(battlePlayer, challengeUserId);
416
+ const challengerInfo = parseFighterInfo(battlePlayer, challengeUserId);
391
417
  //加载防守方单位数据
392
- const defenderInfo = this.parseFighterInfo(enemyBattlePlayer, defenderUserId);
418
+ const defenderInfo = parseFighterInfo(enemyBattlePlayer, defenderUserId);
393
419
  let isWin = false;
394
420
  const game = new TurnBattleGame_1.default({
395
421
  type: battle_interface_1.EGameModule.Arena,
@@ -409,11 +435,11 @@ function startBattlePVP(type, challenger, defender, param) {
409
435
  });
410
436
  for (let i = 0; i < challengerInfo.length; i++) {
411
437
  let data = challengerInfo[i];
412
- data.oid = this.game.getNextOid();
438
+ data.oid = game.getNextOid();
413
439
  }
414
440
  for (let i = 0; i < defenderInfo.length; i++) {
415
441
  let data = defenderInfo[i];
416
- data.oid = this.game.getNextOid();
442
+ data.oid = game.getNextOid();
417
443
  }
418
444
  //初始化
419
445
  game.initPVPFight(challengerInfo, defenderInfo);
@@ -436,6 +462,10 @@ function startBattlePVP(type, challenger, defender, param) {
436
462
  game.fixUpdate(Game_1.default.stableTime);
437
463
  frames++;
438
464
  }
465
+ if (callback) {
466
+ callback(game);
467
+ }
468
+ game.destroy();
439
469
  return isWin;
440
470
  }
441
471
  /**
@@ -458,10 +488,13 @@ function startRelicDungeonVerify(battlePlayer, param) {
458
488
  damage: 0,
459
489
  };
460
490
  startBattleVerify(battle_interface_1.EGameModule.RelicDungeon, battlePlayer, param, game => {
461
- const gameModule = game.gameModule;
462
- if (gameModule) {
491
+ if (game && game.gameModule) {
492
+ const gameModule = game.gameModule;
463
493
  data.damage = gameModule.damage;
464
494
  }
495
+ else {
496
+ data.damage = 999;
497
+ }
465
498
  });
466
499
  return data;
467
500
  }
@@ -477,8 +510,8 @@ function startGuildVerify(battlePlayer, param) {
477
510
  damage: 0,
478
511
  };
479
512
  startBattleVerify(battle_interface_1.EGameModule.GuildBoss, battlePlayer, param, (game) => {
480
- const gameModule = game.gameModule;
481
- if (gameModule) {
513
+ if (game && game.gameModule) {
514
+ const gameModule = game.gameModule;
482
515
  data.damage = gameModule.damage;
483
516
  data.killHpCount = gameModule.calcBossHpDedStep();
484
517
  }
@@ -500,12 +533,36 @@ function startDailyTrialVerify(battlePlayer, param) {
500
533
  }
501
534
  /**
502
535
  * 验证竞技场战斗
503
- * @param battlePlayer 挑战方玩家数据
536
+ * @param challenger 挑战方玩家数据
504
537
  * @param param 战斗参数 defender 对方玩家数据
505
538
  * @returns
506
539
  */
507
540
  function startArenaVerify(challenger, defender, param) {
508
- return startBattlePVP(battle_interface_1.EGameModule.Arena, challenger, defender, param);
541
+ const data = {
542
+ isWin: false,
543
+ fightData: {},
544
+ };
545
+ const isWin = startBattlePVP(battle_interface_1.EGameModule.Arena, challenger, defender, param, game => {
546
+ data.fightData = game.getFightDataMap();
547
+ });
548
+ data.isWin = isWin;
549
+ return data;
550
+ }
551
+ /**
552
+ * 验证海岛争霸赛战斗
553
+ * @param battlePlayer 挑战方玩家数据
554
+ * @param param 战斗参数 defender 对方玩家数据
555
+ */
556
+ function startIslandVerify(challenger, defender, param) {
557
+ const data = {
558
+ isWin: false,
559
+ fightData: {},
560
+ };
561
+ const isWin = startBattlePVP(battle_interface_1.EGameModule.GuildIsland, challenger, defender, param, game => {
562
+ data.fightData = game.getFightDataMap();
563
+ });
564
+ data.isWin = isWin;
565
+ return data;
509
566
  }
510
567
  /*
511
568
  const inputInfo = { "type": 3, "seed": 247106275, "reqTime": 1793591265517, "stageId": 1, "cheerLayer": 0, "inputs": [{ "frame": 32, "data": { "params": [0, 1, 12000200], "type": 2 } }, { "frame": 46, "data": { "params": [0, 1, 8101011001], "type": 2 } }, { "frame": 60, "data": { "params": [0, 1, 1200020105], "type": 2 } }, { "frame": 628, "data": { "params": [0, 1, 10010070], "type": 2 } }, { "frame": 1880, "data": { "params": [0, 1, 15000200], "type": 2 } }, { "frame": 2113, "data": { "params": [0, 924, 9957, 1, 1], "type": 1 } }, { "frame": 2116, "data": { "params": [0, 924, 9957, 1, 0], "type": 1 } }, { "frame": 2120, "data": { "params": [0, 950, 9955, 1, 1], "type": 1 } }, { "frame": 2123, "data": { "params": [0, 950, 9955, 1, 0], "type": 1 } }, { "frame": 2562, "data": { "params": [0, -350, 9994, 1, 1], "type": 1 } }, { "frame": 2567, "data": { "params": [0, -350, 9994, 1, 0], "type": 1 } }, { "frame": 2677, "data": { "params": [0, 1, 12000100], "type": 2 } }, { "frame": 3097, "data": { "params": [0, -433, 9991, 1, 1], "type": 1 } }, { "frame": 3106, "data": { "params": [0, -387, 9993, 1, 1], "type": 1 } }, { "frame": 3108, "data": { "params": [0, -342, 9994, 1, 1], "type": 1 } }, { "frame": 3108, "data": { "params": [0, -319, 9995, 1, 1], "type": 1 } }, { "frame": 3110, "data": { "params": [0, -276, 9996, 1, 1], "type": 1 } }, { "frame": 3110, "data": { "params": [0, -233, 9997, 1, 1], "type": 1 } }, { "frame": 3111, "data": { "params": [0, -172, 9999, 1, 1], "type": 1 } }, { "frame": 3111, "data": { "params": [0, -132, 9999, 1, 1], "type": 1 } }, { "frame": 3113, "data": { "params": [0, -112, 9999, 1, 1], "type": 1 } }, { "frame": 3114, "data": { "params": [0, -73, 10000, 1, 1], "type": 1 } }, { "frame": 3116, "data": { "params": [0, -54, 10000, 1, 1], "type": 1 } }, { "frame": 3119, "data": { "params": [0, -54, 10000, 1, 0], "type": 1 } }, { "frame": 3160, "data": { "params": [0, 494, 9988, 1, 1], "type": 1 } }, { "frame": 3164, "data": { "params": [0, 600, 9982, 1, 1], "type": 1 } }, { "frame": 3166, "data": { "params": [0, 644, 9979, 1, 1], "type": 1 } }, { "frame": 3166, "data": { "params": [0, 693, 9976, 1, 1], "type": 1 } }, { "frame": 3168, "data": { "params": [0, 738, 9973, 1, 1], "type": 1 } }, { "frame": 3168, "data": { "params": [0, 765, 9971, 1, 1], "type": 1 } }, { "frame": 3169, "data": { "params": [0, 826, 9966, 1, 1], "type": 1 } }, { "frame": 3171, "data": { "params": [0, 835, 9965, 1, 1], "type": 1 } }, { "frame": 3172, "data": { "params": [0, 844, 9964, 1, 1], "type": 1 } }, { "frame": 3174, "data": { "params": [0, 844, 9964, 1, 0], "type": 1 } }, { "frame": 3221, "data": { "params": [0, 867, 9962, 1, 1], "type": 1 } }, { "frame": 3228, "data": { "params": [0, 857, 9963, 1, 1], "type": 1 } }, { "frame": 3228, "data": { "params": [0, 866, 9962, 1, 1], "type": 1 } }, { "frame": 3230, "data": { "params": [0, 896, 9960, 1, 1], "type": 1 } }, { "frame": 3232, "data": { "params": [0, 941, 9956, 1, 1], "type": 1 } }, { "frame": 3233, "data": { "params": [0, 963, 9954, 1, 1], "type": 1 } }, { "frame": 3233, "data": { "params": [0, 971, 9953, 1, 1], "type": 1 } }, { "frame": 3235, "data": { "params": [0, 980, 9952, 1, 1], "type": 1 } }, { "frame": 3236, "data": { "params": [0, 971, 9953, 1, 1], "type": 1 } }, { "frame": 3236, "data": { "params": [0, 972, 9953, 1, 0], "type": 1 } }, { "frame": 3753, "data": { "params": [0, 1, 1200010102], "type": 2 } }, { "frame": 4319, "data": { "params": [0, 3763, 9265, 1, 1], "type": 1 } }, { "frame": 4320, "data": { "params": [0, 3840, 9233, 1, 1], "type": 1 } }, { "frame": 4320, "data": { "params": [0, 3876, 9218, 1, 1], "type": 1 } }, { "frame": 4322, "data": { "params": [0, 3975, 9176, 1, 1], "type": 1 } }, { "frame": 4322, "data": { "params": [0, 3997, 9166, 1, 1], "type": 1 } }, { "frame": 4323, "data": { "params": [0, 4102, 9120, 1, 1], "type": 1 } }, { "frame": 4323, "data": { "params": [0, 4168, 9090, 1, 1], "type": 1 } }, { "frame": 4325, "data": { "params": [0, 4221, 9066, 1, 1], "type": 1 } }, { "frame": 4325, "data": { "params": [0, 4307, 9025, 1, 1], "type": 1 } }, { "frame": 4326, "data": { "params": [0, 4367, 8996, 1, 1], "type": 1 } }, { "frame": 4326, "data": { "params": [0, 4414, 8973, 1, 1], "type": 1 } }, { "frame": 4328, "data": { "params": [0, 4470, 8945, 1, 1], "type": 1 } }, { "frame": 4328, "data": { "params": [0, 4525, 8917, 1, 1], "type": 1 } }, { "frame": 4330, "data": { "params": [0, 4568, 8896, 1, 1], "type": 1 } }, { "frame": 4353, "data": { "params": [0, 4620, 8869, 1, 1], "type": 1 } }, { "frame": 4355, "data": { "params": [0, 4607, 8875, 1, 1], "type": 1 } }, { "frame": 4360, "data": { "params": [0, 4626, 8865, 1, 1], "type": 1 } }, { "frame": 4367, "data": { "params": [0, 4626, 8865, 1, 0], "type": 1 } }, { "frame": 4430, "data": { "params": [0, 3680, 9298, 1, 1], "type": 1 } }, { "frame": 4432, "data": { "params": [0, 3626, 9319, 1, 1], "type": 1 } }, { "frame": 4433, "data": { "params": [0, 3644, 9312, 1, 1], "type": 1 } }, { "frame": 4433, "data": { "params": [0, 3619, 9322, 1, 1], "type": 1 } }, { "frame": 4435, "data": { "params": [0, 3682, 9297, 1, 1], "type": 1 } }, { "frame": 4435, "data": { "params": [0, 3708, 9287, 1, 1], "type": 1 } }, { "frame": 4436, "data": { "params": [0, 3733, 9277, 1, 1], "type": 1 } }, { "frame": 4436, "data": { "params": [0, 3771, 9262, 1, 1], "type": 1 } }, { "frame": 4438, "data": { "params": [0, 3804, 9248, 1, 1], "type": 1 } }, { "frame": 4443, "data": { "params": [0, 3804, 9248, 1, 0], "type": 1 } }, { "frame": 5926, "data": { "params": [0, 1, 10010080], "type": 2 } }, { "frame": 5960, "data": { "params": [0, 3696, 9292, 1, 1], "type": 1 } }, { "frame": 5965, "data": { "params": [0, 3696, 9292, 1, 0], "type": 1 } }, { "frame": 6118, "data": { "params": [0, 1, 10010090], "type": 2 } }, { "frame": 7504, "data": { "params": [0, 1, 1500020106], "type": 2 } }], "battlePlayer": { "userId": "10302000001", "uuid": "dt1", "nickname": "p_10302", "lv": 2, "maxStage": 2, "registerTime": 1793257944489, "onlineTime": 1793590899087, "offlineTime": 1793590879327, "online": true, "guildId": 1001, "guildRole": 100, "battlePower": 1350, "guildInfo": { "lastUpdateTime": 1793584403003, "guildWeekPoint": 500 }, "equipPartMap": { "1": { "lv": 1, "partId": 1, "equipId": 0 }, "2": { "lv": 1, "partId": 2, "equipId": 0 }, "3": { "lv": 1, "partId": 3, "equipId": 0 }, "4": { "lv": 1, "partId": 4, "equipId": 0 }, "5": { "lv": 1, "partId": 5, "equipId": 0 }, "6": { "lv": 1, "partId": 6, "equipId": 0 } }, "gemSlotMap": { "1": { "gemIds": [0], "partId": 1, "unlockCount": 1 }, "2": { "gemIds": [0], "partId": 2, "unlockCount": 1 }, "3": { "gemIds": [0], "partId": 3, "unlockCount": 1 }, "4": { "gemIds": [0], "partId": 4, "unlockCount": 1 }, "5": { "gemIds": [0], "partId": 5, "unlockCount": 1 }, "6": { "gemIds": [0], "partId": 6, "unlockCount": 1 } }, "turretMap": { "120001": { "id": 120001, "lv": 1, "turretModId": 0 }, "120002": { "id": 120002, "lv": 1, "turretModId": 0 }, "150002": { "id": 150002, "lv": 1, "turretModId": 0 } }, "talents": [{ "id": 1, "type": 1 }, { "id": 1, "type": 2 }, { "id": 1, "type": 3 }], "talentTree": {}, "skinMap": {}, "equipSkinMap": {}, "skinSlotMap": { "1": { "groupIds": [0] }, "2": { "groupIds": [0] }, "3": { "groupIds": [0] } }, "decorationInfo": { "unlockItems": [], "playerDecoration": { "title": 0, "avatar": 301001, "avatarFrame": 401001, "bubbleFrame": 601001 } }, "serverId": 1, "relicMap": { "1": { "configId": 1101001, "eValue": 0, "randomAttrList": [{ "id": 2204001, "value": 5 }], "randomEntryList": [] }, "2": { "configId": 1201001, "eValue": 0, "randomAttrList": [{ "id": 2303001, "value": 5 }], "randomEntryList": [] }, "3": { "configId": 1301001, "eValue": 0, "randomAttrList": [{ "id": 2332001, "value": 5 }], "randomEntryList": [] }, "4": { "configId": 1401001, "eValue": 0, "randomAttrList": [{ "id": 2328001, "value": 5 }], "randomEntryList": [] }, "5": { "configId": 1501001, "eValue": 0, "randomAttrList": [{ "id": 2303001, "value": 6 }], "randomEntryList": [] } }, "purifySkillLevel": 1, "curPurifyPlan": { "affixItems": [{ "id": 0, "value": 0, "status": 0 }, { "id": 0, "value": 0, "status": 0 }] }, "baseInfo": { "userId": "10302000001", "nickname": "p_10302", "lv": 2, "onlineTime": 1793590899087, "offlineTime": 1793590879327, "maxStage": 2, "decorationInfo": { "unlockItems": [], "playerDecoration": { "title": 0, "avatar": 301001, "avatarFrame": 401001, "bubbleFrame": 601001 } }, "serverId": 1 } } }
@@ -7,6 +7,7 @@ import "./core/module/battle/skill/emitter/projectiles";
7
7
  import "./core/module/battle/skill/impacts";
8
8
  import "./core/module/battle/target";
9
9
  import "./core/module/dailyTrial";
10
+ import "./core/module/guild/island/battle";
10
11
  import "./core/module/guild/view/boss";
11
12
  import "./core/module/relicDungeon";
12
13
  import "./core/module/stage";
@@ -25,6 +25,7 @@ require("./core/module/battle/skill/emitter/projectiles"); // @cacheFunction ->
25
25
  require("./core/module/battle/skill/impacts"); // @registerImpact -> impactRegistry
26
26
  require("./core/module/battle/target"); // registerTargetSelection -> targetSelectionRegistry(不引则目标选择器查不到,索敌全是空)
27
27
  require("./core/module/dailyTrial"); // @cacheFunction -> bufferCache(Game 按 EGameModule 取战斗模块)
28
+ require("./core/module/guild/island/battle"); // @cacheFunction -> bufferCache(Game 按 EGameModule 取战斗模块)
28
29
  require("./core/module/guild/view/boss"); // @cacheFunction -> bufferCache(Game 按 EGameModule 取战斗模块)
29
30
  require("./core/module/relicDungeon"); // @cacheFunction -> bufferCache(Game 按 EGameModule 取战斗模块)
30
31
  require("./core/module/stage"); // @cacheFunction -> bufferCache(Game 按 EGameModule 取战斗模块)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "captainbattle",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "description": "水上大乱斗后端战斗模拟",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",