koishi-plugin-ggcevo-game 1.6.5 → 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.
- package/lib/index.js +13 -23
- 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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
1844
|
+
return 0;
|
|
1857
1845
|
}
|
|
1858
1846
|
__name(getShieldArmorByName, "getShieldArmorByName");
|
|
1859
1847
|
var BattleEffectProcessor = {
|
|
@@ -11000,7 +10988,7 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
|
|
|
11000
10988
|
`🕒 开始时间:${record.startTime.toLocaleString("zh-CN", { hour12: false })}`,
|
|
11001
10989
|
`⏱️ 当前时间:${nowtime.toLocaleString("zh-CN", { hour12: false })}`,
|
|
11002
10990
|
`⏳ 还需等待:${remaining}分钟`,
|
|
11003
|
-
`💡
|
|
10991
|
+
`💡 提示:挖矿至少需要进行1个小时`
|
|
11004
10992
|
].join("\n");
|
|
11005
10993
|
}
|
|
11006
10994
|
let halfHours = Math.floor(duration / 30);
|
|
@@ -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);
|
|
@@ -11904,7 +11894,7 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
|
|
|
11904
11894
|
currentBonus: item.bonus,
|
|
11905
11895
|
maxBonus: upgradeConfig2.maxBonus,
|
|
11906
11896
|
cost: actualCost,
|
|
11907
|
-
discount: isCommander ? `(原价: ${baseCost})` : ""
|
|
11897
|
+
discount: isCommander ? `(原价: ${baseCost} 红晶)` : ""
|
|
11908
11898
|
});
|
|
11909
11899
|
}
|
|
11910
11900
|
if (upgradableItems.length === 0) {
|
|
@@ -11924,8 +11914,8 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
|
|
|
11924
11914
|
"====================",
|
|
11925
11915
|
...upgradableItems.map((item) => {
|
|
11926
11916
|
return `▸ ${item.name}:
|
|
11927
|
-
升级加成 ${item.currentBonus}
|
|
11928
|
-
升级消耗:${item.cost} 红晶 ${item.discount}
|
|
11917
|
+
升级加成 ${item.currentBonus}% / ${item.maxBonus}%
|
|
11918
|
+
升级消耗:${item.cost} 红晶 ${item.discount}`;
|
|
11929
11919
|
}),
|
|
11930
11920
|
"====================",
|
|
11931
11921
|
`使用"升级物品 物品名称"进行升级`
|