koishi-plugin-ggcevo-game 1.2.14 → 1.2.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 +10 -7
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -1092,13 +1092,16 @@ ${itemDetails.join("\n")}`;
|
|
|
1092
1092
|
const itemMap = /* @__PURE__ */ new Map();
|
|
1093
1093
|
Object.entries(initDefaultItems).forEach(([name2, data]) => itemMap.set(data.id, name2));
|
|
1094
1094
|
itemMap.set(0, "金币");
|
|
1095
|
-
return activities.length ?
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1095
|
+
return activities.length ? [
|
|
1096
|
+
...activities.map((a) => [
|
|
1097
|
+
`活动名称:${a.name}`,
|
|
1098
|
+
`活动时间:${formatDate(a.startTime)} - ${formatDate(a.endTime)}`,
|
|
1099
|
+
`活动描述:${a.description}`,
|
|
1100
|
+
`活动奖励:${a.quantity} × ${itemMap.get(a.itemId) || "未知物品"}`,
|
|
1101
|
+
"━".repeat(20)
|
|
1102
|
+
].join("\n")),
|
|
1103
|
+
"请输入「领取 活动名称」领取奖励"
|
|
1104
|
+
].join("\n") : "当前没有进行中的活动。";
|
|
1102
1105
|
});
|
|
1103
1106
|
ctx.setInterval(async () => {
|
|
1104
1107
|
const now = /* @__PURE__ */ new Date();
|