koishi-plugin-ggcevo-game 1.2.9 → 1.2.10
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 -5
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -718,19 +718,24 @@ ${itemDetails.join("\n")}`;
|
|
|
718
718
|
}
|
|
719
719
|
}
|
|
720
720
|
let tickets = 3;
|
|
721
|
-
let points = getRandomInt(
|
|
721
|
+
let points = getRandomInt(20, 40);
|
|
722
722
|
if (monthlyDays === 7) {
|
|
723
723
|
tickets = 4;
|
|
724
|
-
points = getRandomInt(20, 30);
|
|
725
724
|
} else if (monthlyDays === 14) {
|
|
726
725
|
tickets = 5;
|
|
727
|
-
points = getRandomInt(30, 50);
|
|
728
726
|
} else if (monthlyDays === 21) {
|
|
729
727
|
tickets = 6;
|
|
730
|
-
points = getRandomInt(50, 70);
|
|
731
728
|
} else if (monthlyDays === 28) {
|
|
732
729
|
tickets = 7;
|
|
733
|
-
|
|
730
|
+
}
|
|
731
|
+
if (monthlyDays >= 7 && monthlyDays < 14) {
|
|
732
|
+
points = getRandomInt(40, 60);
|
|
733
|
+
} else if (monthlyDays >= 14 && monthlyDays < 21) {
|
|
734
|
+
points = getRandomInt(60, 80);
|
|
735
|
+
} else if (monthlyDays >= 21 && monthlyDays < 28) {
|
|
736
|
+
points = getRandomInt(80, 100);
|
|
737
|
+
} else if (monthlyDays >= 28) {
|
|
738
|
+
points = getRandomInt(100, 200);
|
|
734
739
|
}
|
|
735
740
|
await ctx.database.upsert("ggcevo_sign", [{
|
|
736
741
|
handle,
|