@sjtdev/koishi-plugin-dota2tracker 1.2.8-pre → 1.2.8-pre.2

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
@@ -4,10 +4,15 @@
4
4
  - 将战报中的播报评语由随机选取改为固定种子:比赛ID+玩家SteamID,确保在不同调用时刻、次数及平台下,对同一场比赛中的玩家评语保持一致。
5
5
  - `查询玩家`指令图片中,玩家近期比赛表中未解析的场次参战率由"?%"改为估算值,显示为"≈xx%"
6
6
  <details>
7
- <summary>为什么是“估算”?</summary>
8
- 比赛未解析无法获取“团队击杀数”,若是将己方所有玩家的击杀数相加,则会漏掉那些由小兵、防御塔等非玩家单位击杀数;若是将敌方所有玩家的死亡数相加,又会多出送野、自杀等不应算在己方战果中的计数。<br>目前程序采用将己方所有击杀数累加的方式来估算参战率
7
+ <summary>为什么未解析的比赛需要“估算”?</summary>
8
+ 比赛未解析无法获取“团队击杀数”,若是将己方所有玩家的击杀数相加,则会漏掉那些由小兵、防御塔等非玩家单位击杀数;若是将敌方所有玩家的死亡数相加,又会多出送野、自杀等不应算在己方战果中的计数。<br>目前程序采用将己方所有击杀数累加的方式来估算参战率,可能会略高于实际值
9
9
  </details>
10
10
 
11
+ ##### pre.2
12
+ **改进**:
13
+ - 比赛图片模板`match_2`中,现在冠绝排名数字位置更准确了。
14
+ - 比赛图片模板`match_2`中,比赛段位可以显示星级了。
15
+
11
16
  # 1.2.7
12
17
  ##### 于1.2.7-beta中尝试修复的功能均已正常工作,正式发布1.2.7
13
18
  ##### 以下为包括beta版更新内容在内的所有改动
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.8-pre",
4
+ "version": "1.2.8-pre.2",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
7
7
  "files": [
@@ -49,6 +49,18 @@
49
49
  color: #ffb400;
50
50
  }
51
51
 
52
+ nav > .rank {
53
+ width: 48px;
54
+ height: 48px;
55
+ position: relative;
56
+ }
57
+
58
+ nav > .rank > img {
59
+ width: 48px;
60
+ height: 48px;
61
+ position: absolute;
62
+ }
63
+
52
64
  .radiant {
53
65
  color: #3c9028;
54
66
  }
@@ -232,7 +244,7 @@
232
244
  .player > .rank > p {
233
245
  position: absolute;
234
246
  width: 100%;
235
- bottom: 3px;
247
+ bottom: 2px;
236
248
  text-align: center;
237
249
  font-size: 9px;
238
250
  color: #fff;
@@ -450,7 +462,8 @@
450
462
  <p><%-d2a.lobbyTypes[match.lobbyType] || match.lobbyType%>/<%-d2a.gameMode[match.gameMode] || match.gameMode%></p>
451
463
  </div>
452
464
  <div class="rank">
453
- <img width="48" height="48" src="<%-utils.getImageUrl('medal_' + match.rank?.toString().split('')[0])%>" alt="" />
465
+ <img src="<%-utils.getImageUrl('medal_' + (match.rank?.toString().split('')[0] ?? '0'))%>" alt="" />
466
+ <img style="z-index: 1;" src="<%-utils.getImageUrl('star_' + (match.rank?.toString().split('')[1] ?? '0'))%>" alt="" />
454
467
  </div>
455
468
  </nav>
456
469
  <section class="match_result">