koishi-plugin-ggcevo-game 1.3.14 → 1.3.15
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 +3 -4
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -4226,23 +4226,22 @@ ${validTypes.join("、")}`;
|
|
|
4226
4226
|
}], ["handle", "itemId"]);
|
|
4227
4227
|
}
|
|
4228
4228
|
});
|
|
4229
|
-
let message = `✅
|
|
4229
|
+
let message = `✅ 成功购买${isWeapon ? "武器" : "物品"}「${item}」
|
|
4230
4230
|
`;
|
|
4231
4231
|
message += `花费 ${actualPrice} 金币`;
|
|
4232
4232
|
if (discountDetails.length > 0) {
|
|
4233
|
-
message +=
|
|
4233
|
+
message += `(原价 ${config2.price} 金币)
|
|
4234
4234
|
折扣明细:
|
|
4235
4235
|
▸ ${discountDetails.join("\n▸ ")}`;
|
|
4236
4236
|
}
|
|
4237
4237
|
if (isWeapon) {
|
|
4238
4238
|
if (isAutoEquipped) {
|
|
4239
|
-
message += "\n
|
|
4239
|
+
message += "\n【系统已自动装备该武器】";
|
|
4240
4240
|
}
|
|
4241
4241
|
message += "\n输入「武器仓库」查看详情";
|
|
4242
4242
|
} else {
|
|
4243
4243
|
const [current] = await ctx.database.get("ggcevo_warehouse", { handle, itemId: config2.id });
|
|
4244
4244
|
message += `
|
|
4245
|
-
|
|
4246
4245
|
当前持有数量:${current?.quantity || 1},输入「仓库」查看物品`;
|
|
4247
4246
|
}
|
|
4248
4247
|
return message;
|