koishi-plugin-ggcevo-game 1.5.24 → 1.5.26
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 -12
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -11741,7 +11741,7 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
|
|
|
11741
11741
|
`【${name2}】`,
|
|
11742
11742
|
`- 价格: ${ship.price}金币`,
|
|
11743
11743
|
`- 探索加成: +${ship.explorebonus}%成功率`,
|
|
11744
|
-
`-
|
|
11744
|
+
`- 挖矿加成: +${ship.miningbonus}%效率`,
|
|
11745
11745
|
`- 特殊效果: ${ship.effect || "无"}`
|
|
11746
11746
|
].join("\n");
|
|
11747
11747
|
});
|
|
@@ -11775,8 +11775,8 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
|
|
|
11775
11775
|
return [
|
|
11776
11776
|
`🚀 飞船名称:${shipName}`,
|
|
11777
11777
|
`📝 描述:${ship.description}`,
|
|
11778
|
-
`🔭 探索加成:+${ship.explorebonus}
|
|
11779
|
-
`⛏️
|
|
11778
|
+
`🔭 探索加成:+${ship.explorebonus}%金币`,
|
|
11779
|
+
`⛏️ 挖矿加成:+${ship.miningbonus}%金币`,
|
|
11780
11780
|
`💡 特殊效果:${ship.effect || "无"}`,
|
|
11781
11781
|
`🛒 购买价格:${ship.price}金币`,
|
|
11782
11782
|
`📅 获得时间:${shipRecord.createTime.toLocaleString("zh-CN", { hour12: false })}`,
|
|
@@ -11799,7 +11799,7 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
|
|
|
11799
11799
|
`【${name3}】`,
|
|
11800
11800
|
`- 价格: ${ship2.price}金币`,
|
|
11801
11801
|
`- 探索加成: ${ship2.explorebonus}%`,
|
|
11802
|
-
`-
|
|
11802
|
+
`- 挖矿加成: ${ship2.miningbonus}%`,
|
|
11803
11803
|
`- 效果: ${ship2.effect || "无"}`
|
|
11804
11804
|
].join("\n");
|
|
11805
11805
|
});
|
|
@@ -11846,8 +11846,8 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
|
|
|
11846
11846
|
});
|
|
11847
11847
|
return [
|
|
11848
11848
|
`🎉 成功购买 ${shipName}!`,
|
|
11849
|
-
`🔭 探索加成:+${ship.explorebonus}
|
|
11850
|
-
`⛏️
|
|
11849
|
+
`🔭 探索加成:+${ship.explorebonus}%金币`,
|
|
11850
|
+
`⛏️ 挖矿加成:+${ship.miningbonus}%金币`,
|
|
11851
11851
|
`💡 特殊效果:${ship.effect || "无"}`,
|
|
11852
11852
|
`📅 购买时间:${now.toLocaleString("zh-CN", { hour12: false })}`,
|
|
11853
11853
|
`💰 剩余金币:${newCoins}`,
|
|
@@ -11856,14 +11856,15 @@ ${Spacestationtechnology.map((t) => t.techname).join("、")}`;
|
|
|
11856
11856
|
// 新增的提示
|
|
11857
11857
|
].join("\n");
|
|
11858
11858
|
});
|
|
11859
|
-
ctx.command("ggcevo/升级物品 [itemName]", "升级辛迪加海盗物品").
|
|
11860
|
-
const
|
|
11859
|
+
ctx.command("ggcevo/升级物品 [itemName]", "升级辛迪加海盗物品").action(async ({ session }, itemName) => {
|
|
11860
|
+
const [profile] = await ctx.database.get("sc2arcade_player", { userId: session.userId });
|
|
11861
|
+
if (!profile) return "🔒 需要先绑定游戏句柄。";
|
|
11862
|
+
const handle = `${profile.regionId}-S2-${profile.realmId}-${profile.profileId}`;
|
|
11861
11863
|
if (!itemName) return "请输入要升级的物品名称,例如:升级物品 自动采掘机器人";
|
|
11862
|
-
const
|
|
11863
|
-
if (!
|
|
11864
|
-
const career = careers[0];
|
|
11864
|
+
const [career] = await ctx.database.get("ggcevo_careers", { handle });
|
|
11865
|
+
if (!career) return "🚫 未查询到您的阵营信息";
|
|
11865
11866
|
if (career.group !== "辛迪加海盗") {
|
|
11866
|
-
return `🚫
|
|
11867
|
+
return `🚫 仅限辛迪加海盗阵营使用`;
|
|
11867
11868
|
}
|
|
11868
11869
|
const itemConfig2 = SyndicatedItems[itemName];
|
|
11869
11870
|
if (!itemConfig2) return `🚫 未找到物品【${itemName}】的配置信息`;
|