koishi-plugin-ggcevo-game 1.6.80 → 1.6.82
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 +4 -5
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -6457,13 +6457,12 @@ async function updateWeights(ctx, selectedId) {
|
|
|
6457
6457
|
const allWeights = await ctx.database.get("ggcevo_boss_weights", {});
|
|
6458
6458
|
for (const weight of allWeights) {
|
|
6459
6459
|
if (weight.bossId === selectedId) {
|
|
6460
|
-
const newWeight = Math.max(50, Math.floor(weight.weight / 2));
|
|
6461
6460
|
await ctx.database.set("ggcevo_boss_weights", { bossId: weight.bossId }, {
|
|
6462
|
-
weight:
|
|
6461
|
+
weight: 50,
|
|
6463
6462
|
lastSpawn: /* @__PURE__ */ new Date()
|
|
6464
6463
|
});
|
|
6465
6464
|
} else {
|
|
6466
|
-
const newWeight = Math.min(
|
|
6465
|
+
const newWeight = Math.min(500, Math.floor(weight.weight * 1.2));
|
|
6467
6466
|
await ctx.database.set("ggcevo_boss_weights", { bossId: weight.bossId }, {
|
|
6468
6467
|
weight: newWeight,
|
|
6469
6468
|
lastSpawn: weight.lastSpawn
|
|
@@ -7429,7 +7428,7 @@ var spaceship = {
|
|
|
7429
7428
|
description: "巨兽级歼星舰的小型化版本",
|
|
7430
7429
|
miningbonus: 0,
|
|
7431
7430
|
explorebonus: 30,
|
|
7432
|
-
effect: "探索的成功率提高60%;探索发生掠夺的概率提高30%;掠夺其他飞船的成功率提高30
|
|
7431
|
+
effect: "探索的成功率提高60%;探索发生掠夺的概率提高30%;掠夺其他飞船的成功率提高30%;被其他飞船掠夺的成功率降低30%",
|
|
7433
7432
|
price: 6e3
|
|
7434
7433
|
}
|
|
7435
7434
|
};
|
|
@@ -12146,7 +12145,7 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
|
|
|
12146
12145
|
return name2;
|
|
12147
12146
|
}
|
|
12148
12147
|
}
|
|
12149
|
-
return "
|
|
12148
|
+
return "普通飞船";
|
|
12150
12149
|
}
|
|
12151
12150
|
__name(getSpaceshipNameById, "getSpaceshipNameById");
|
|
12152
12151
|
ctx.command("ggcevo/探索 [galaxyName]").action(async ({ session }, galaxyName) => {
|