koishi-plugin-ggcevo-game 1.6.6 → 1.6.7

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 (2) hide show
  1. package/lib/index.js +9 -19
  2. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -1773,9 +1773,6 @@ function updateStatsByName(name2, updates) {
1773
1773
  }
1774
1774
  __name(updateStatsByName, "updateStatsByName");
1775
1775
  function getMaxHPByName(bossName) {
1776
- if (bossName === "测试假人") {
1777
- return 1e6;
1778
- }
1779
1776
  for (const boss of bossPool) {
1780
1777
  if (boss.main.name === bossName) {
1781
1778
  return boss.main.maxHP;
@@ -1786,13 +1783,10 @@ function getMaxHPByName(bossName) {
1786
1783
  }
1787
1784
  }
1788
1785
  }
1789
- return void 0;
1786
+ return 1e4;
1790
1787
  }
1791
1788
  __name(getMaxHPByName, "getMaxHPByName");
1792
1789
  function getMaxEnergyByName(bossName) {
1793
- if (bossName === "测试假人") {
1794
- return 1e3;
1795
- }
1796
1790
  for (const boss of bossPool) {
1797
1791
  if (boss.main.name === bossName) {
1798
1792
  return boss.main.maxEnergy;
@@ -1803,13 +1797,10 @@ function getMaxEnergyByName(bossName) {
1803
1797
  }
1804
1798
  }
1805
1799
  }
1806
- return void 0;
1800
+ return 1e4;
1807
1801
  }
1808
1802
  __name(getMaxEnergyByName, "getMaxEnergyByName");
1809
1803
  function getMaxStacksByName(bossName) {
1810
- if (bossName === "测试假人") {
1811
- return 100;
1812
- }
1813
1804
  for (const boss of bossPool) {
1814
1805
  if (boss.main.name === bossName) {
1815
1806
  return boss.main.maxStacks;
@@ -1820,40 +1811,37 @@ function getMaxStacksByName(bossName) {
1820
1811
  }
1821
1812
  }
1822
1813
  }
1823
- return void 0;
1814
+ return 0;
1824
1815
  }
1825
1816
  __name(getMaxStacksByName, "getMaxStacksByName");
1826
1817
  function getMaxShieldByName(bossName) {
1827
- if (bossName === "测试假人") return 0;
1828
1818
  for (const boss of bossPool) {
1829
1819
  if (boss.main.name === bossName) return boss.main.maxShield;
1830
1820
  for (const minion of boss.minions) {
1831
1821
  if (minion.name === bossName) return minion.maxShield;
1832
1822
  }
1833
1823
  }
1834
- return void 0;
1824
+ return 0;
1835
1825
  }
1836
1826
  __name(getMaxShieldByName, "getMaxShieldByName");
1837
1827
  function getArmorByName(bossName) {
1838
- if (bossName === "测试假人") return 0;
1839
1828
  for (const boss of bossPool) {
1840
1829
  if (boss.main.name === bossName) return boss.main.armor;
1841
1830
  for (const minion of boss.minions) {
1842
1831
  if (minion.name === bossName) return minion.armor;
1843
1832
  }
1844
1833
  }
1845
- return void 0;
1834
+ return 0;
1846
1835
  }
1847
1836
  __name(getArmorByName, "getArmorByName");
1848
1837
  function getShieldArmorByName(bossName) {
1849
- if (bossName === "测试假人") return 0;
1850
1838
  for (const boss of bossPool) {
1851
1839
  if (boss.main.name === bossName) return boss.main.shieldArmor;
1852
1840
  for (const minion of boss.minions) {
1853
1841
  if (minion.name === bossName) return minion.shieldArmor;
1854
1842
  }
1855
1843
  }
1856
- return void 0;
1844
+ return 0;
1857
1845
  }
1858
1846
  __name(getShieldArmorByName, "getShieldArmorByName");
1859
1847
  var BattleEffectProcessor = {
@@ -11675,7 +11663,9 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
11675
11663
  const explorers = await ctx.database.get("ggcevo_explore", {
11676
11664
  galaxy: galaxyName,
11677
11665
  status: "探索中",
11678
- handle: { $ne: handle }
11666
+ handle: { $ne: handle },
11667
+ plunderbonus: { $gte: 0 }
11668
+ // 新增条件:掠夺收益大于等于0
11679
11669
  });
11680
11670
  if (explorers.length > 0) {
11681
11671
  const shipHandles = explorers.map((e) => e.handle);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-ggcevo-game",
3
3
  "description": "《星际争霸2》咕咕虫-evolved地图的专属游戏助手插件,集成天梯排行、抽奖系统、签到福利、兑换商城等丰富功能。",
4
- "version": "1.6.6",
4
+ "version": "1.6.7",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [