koishi-plugin-ggcevo-game 1.0.0 → 1.0.1
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 -3
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -766,7 +766,7 @@ ID:${activity.id}
|
|
|
766
766
|
await ctx.database.upsert("ggcevo_rank", [{
|
|
767
767
|
handle,
|
|
768
768
|
name: record.profile.name,
|
|
769
|
-
rank: record.decision === "win" ? (ggcrank?.rank || 0) +
|
|
769
|
+
rank: record.decision === "win" ? (ggcrank?.rank || 0) + 150 : (ggcrank?.rank || 0) - 50,
|
|
770
770
|
matches: (ggcrank?.matches || 0) + 1
|
|
771
771
|
}]);
|
|
772
772
|
}
|
|
@@ -825,7 +825,7 @@ ID:${activity.id}
|
|
|
825
825
|
await ctx.database.upsert("ggcevo_rank", [{
|
|
826
826
|
handle,
|
|
827
827
|
name: record.profile.name,
|
|
828
|
-
rank: record.decision === "win" ? (ggcrank?.rank || 0) +
|
|
828
|
+
rank: record.decision === "win" ? (ggcrank?.rank || 0) + 150 : (ggcrank?.rank || 0) - 50,
|
|
829
829
|
matches: (ggcrank?.matches || 0) + 1
|
|
830
830
|
}]);
|
|
831
831
|
}
|
|
@@ -865,7 +865,7 @@ ID:${activity.id}
|
|
|
865
865
|
).join("\n");
|
|
866
866
|
return [
|
|
867
867
|
`🏆 GGCEvo S1赛季胜点榜 🏆`,
|
|
868
|
-
`本赛季至
|
|
868
|
+
`本赛季至5月15日23点结算`,
|
|
869
869
|
`第 ${pageNum} 页 共 ${totalPages} 页`,
|
|
870
870
|
"------------------------------",
|
|
871
871
|
rankingText,
|