@sjtdev/koishi-plugin-dota2tracker 1.2.10-pre → 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/changelog.md CHANGED
@@ -1,7 +1,29 @@
1
+ # 1.2.10
2
+ **新增**:
3
+ - 添加对新英雄`百戏大王`的支持。(战报播报、查询英雄等)
4
+
5
+ **修复**:
6
+ - 修复`查询英雄`图片中英雄的“基础攻击间隔”显示有误的问题。
7
+ - 修复战报图中若玩家名有html标签会导致图片排版错乱的问题。
8
+ - 修复周报与日报中评分条样式不正确的问题。
9
+
10
+ **改进**:
11
+ - 调整了总结模板和玩家信息模板中胜负字体颜色样式,使其看起来更清晰。
12
+ - 优化了总结模板中胜负数和胜率的样式。
13
+
14
+ <details>
15
+ <summary><b>1.2.10-pre更新日志</b></summary>
16
+
17
+ ### 1.2.10-pre.2
18
+ **改进**:
19
+ - 调整了总结模板和玩家信息模板中胜负字体颜色样式,使其看起来更清晰。
20
+ - 优化了总结模板中胜负数和胜率的样式。
21
+
1
22
  ### 1.2.10-pre
2
23
  **修复**:
3
24
  - 修复战报图中若玩家名有html标签会导致图片排版错乱的问题。
4
25
  - 修复周报与日报中评分条样式不正确的问题。
26
+ </details>
5
27
 
6
28
  # 1.2.9
7
29
  **改进**:
@@ -13,7 +35,7 @@
13
35
 
14
36
  **修复**:
15
37
  - `查询英雄`:修复DOTA2 7.37版本更新后API变动导致部分英雄查询报错。
16
-
38
+
17
39
  <details>
18
40
  <summary><b>1.2.9-pre更新日志</b></summary>
19
41
 
package/lib/index.js CHANGED
@@ -1174,6 +1174,7 @@ var HEROES_CHINESE = {
1174
1174
  "126": ["虚无之灵", "紫猫"],
1175
1175
  "128": ["电炎绝手", "老奶奶"],
1176
1176
  "129": ["玛尔斯"],
1177
+ "131": ["百戏大王"],
1177
1178
  "135": ["破晓辰星", "大锤"],
1178
1179
  "136": ["玛西"],
1179
1180
  "137": ["獸", "畜"],
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sjtdev/koishi-plugin-dota2tracker",
3
3
  "description": "koishi插件-追踪群友的DOTA2对局",
4
- "version": "1.2.10-pre",
4
+ "version": "1.2.10",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
@@ -26,7 +26,7 @@
26
26
  "dota2"
27
27
  ],
28
28
  "dependencies": {
29
- "dotaconstants": "^8.10.0",
29
+ "dotaconstants": "^8.11.0",
30
30
  "ejs": "^3.1.10",
31
31
  "moment": "^2.30.1"
32
32
  },
@@ -637,7 +637,7 @@
637
637
  </tr>
638
638
  <tr>
639
639
  <td>基础攻击间隔</td>
640
- <td>${hero.attack_capability.toFixed(1)}</td>
640
+ <td>${hero.attack_rate.toFixed(1)}</td>
641
641
  </tr>
642
642
  <tr>
643
643
  <td>基础攻击前摇</td>
@@ -78,10 +78,10 @@
78
78
  }
79
79
 
80
80
  .player .info .matches span.win {
81
- color: #006400;
81
+ color: #007A00;
82
82
  }
83
83
  .player .info .matches span.lose {
84
- color: #8b0000;
84
+ color: #B30000;
85
85
  }
86
86
 
87
87
  .player .info .matches span.victory {
@@ -25,8 +25,6 @@
25
25
  span {
26
26
  min-width: 0;
27
27
  white-space: nowrap; /* 不换行 */
28
- overflow: hidden; /* 超出部分隐藏 */
29
- text-overflow: ellipsis; /* 省略号 */
30
28
  }
31
29
 
32
30
  .title {
@@ -57,8 +55,21 @@
57
55
  display: block;
58
56
  width: 100%;
59
57
  text-align: center;
58
+ overflow: hidden; /* 超出部分隐藏 */
59
+ text-overflow: ellipsis; /* 省略号 */
60
+ }
61
+ .player > .count {
62
+ display: grid;
63
+ grid-template-columns: 1fr 1fr 1.8fr;
64
+ width: 100%;
60
65
  }
61
66
 
67
+ .player > .count > span {
68
+ text-align: left;
69
+ }
70
+ .player > .count > span:last-child {
71
+ text-align: right;
72
+ }
62
73
  .player > .performance {
63
74
  display: flex;
64
75
  align-items: center;
@@ -82,7 +93,7 @@
82
93
  justify-content: flex-end;
83
94
  }
84
95
  .player > .performance > .score_bar.neg > .left {
85
- background: linear-gradient(to right, #777, #888, #999, #888, #777);
96
+ background: linear-gradient(to right, #777, #888, #888, #777);
86
97
  }
87
98
  .player > .performance > .score_bar.pos > .right {
88
99
  background: linear-gradient(to right, #6cf, #7df, #6cf);
@@ -117,10 +128,10 @@
117
128
  margin-left: 4px;
118
129
  }
119
130
  span.win {
120
- color: #006400;
131
+ color: #007A00;
121
132
  }
122
133
  span.lose {
123
- color: #8b0000;
134
+ color: #B30000;
124
135
  }
125
136
  </style>
126
137
  </head>