koishi-plugin-jrys-plus 1.0.4 → 1.0.5

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.
@@ -159,8 +159,8 @@
159
159
  <script>
160
160
  (function() {
161
161
  var luck = {{LUCK}};
162
- // 运势 0~100 映射为 1~10 颗星
163
- var starCount = Math.max(1, Math.ceil(luck / 10));
162
+ // 运势 0~99 均匀映射为 1~10 颗星(每档 10%)
163
+ var starCount = Math.floor(luck / 10) + 1;
164
164
  // 十种彩色
165
165
  var colors = [
166
166
  '#ff4757', '#ff6b81', '#ffa502', '#eccc68',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "koishi-plugin-jrys-plus",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "今日运势签到 + 排行榜,精简优化版",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",