koishi-plugin-ggcevo-game 1.2.55 → 1.2.56
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 +2 -2
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -3650,7 +3650,7 @@ ${validTypes.join("、")}`;
|
|
|
3650
3650
|
const { regionId, realmId, profileId } = profile;
|
|
3651
3651
|
const handle = `${regionId}-S2-${realmId}-${profileId}`;
|
|
3652
3652
|
await session.send(`请输入你要使用多少张兑换券来兑换金币?(请在30秒内回复数字,回复“0”为取消兑换)
|
|
3653
|
-
注意:1张兑换券=
|
|
3653
|
+
注意:1张兑换券=2000金币`);
|
|
3654
3654
|
const exchangeInput = await session.prompt(3e4);
|
|
3655
3655
|
if (!exchangeInput) return "输入超时,请重新输入。";
|
|
3656
3656
|
const exchangeCount = parseInt(exchangeInput, 10);
|
|
@@ -3667,7 +3667,7 @@ ${validTypes.join("、")}`;
|
|
|
3667
3667
|
if (!item || item.quantity < exchangeCount) {
|
|
3668
3668
|
return "您的兑换券不足,无法兑换!";
|
|
3669
3669
|
}
|
|
3670
|
-
const goldAmount = exchangeCount *
|
|
3670
|
+
const goldAmount = exchangeCount * 2e3;
|
|
3671
3671
|
await ctx.database.set("ggcevo_backpack", {
|
|
3672
3672
|
handle,
|
|
3673
3673
|
itemId: 2
|