Skip to content

Commit 633f860

Browse files
committed
加入时间轴热力图功能
1 parent 7c546d9 commit 633f860

30 files changed

+2119
-226
lines changed

Constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Created by moeheart at 10/11/2020
22
# 全局用到的部分常量。
33

4-
EDITION = "7.3.0"
4+
EDITION = "7.4.0"
55
ANNOUNCEMENT = "奶歌复盘pro持续更新中!不要忘了更新到最新版本呀~"
66

77
LVLTABLE = [0, 30, 100, 200, 300, 500, 700, 900, 1200, 1500, 1800, 2400, 3000, 999999]

data/DataContent.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ class SingleDataBuff(SingleData):
3131
Buff事件,对应jx3dat-5, jcl-13
3232
buff事件包括:
3333
time: 毫秒数,对应jx3dat[3], jcl[4]
34+
frame: 逻辑帧,对应jx3dat[x], jcl[2]
3435
caster: 来源ID,对应jx3dat[5], jcl[6][10]
3536
target: 目标ID,对应jx3dat[6], jcl[6][1]
3637
id: buffID,对应jx3dat[7], jcl[6][5]
@@ -48,6 +49,7 @@ def setByJcl(self, item):
4849
- item: jcl形式的事件信息.
4950
'''
5051
self.time = int(item[3])
52+
self.frame = int(item[1])
5153
self.caster = item[5]["10"]
5254
self.target = item[5]["1"]
5355
self.id = item[5]["5"]
@@ -65,6 +67,7 @@ def setByJx3dat(self, item):
6567
- item: jx3dat形式的事件信息.
6668
'''
6769
self.time = int(item["3"])
70+
self.frame = int(item["1"])
6871
self.caster = item["5"]
6972
self.target = item["6"]
7073
self.id = item["7"]

docs/剑三警长文档-7.3.0.docx

1000 KB
Binary file not shown.

icons/371.png

2.65 KB
Loading

icons/922.png

1.89 KB
Loading

notebooks/.ipynb_checkpoints/CalAvgDps-checkpoint.ipynb

Lines changed: 35 additions & 138 deletions
Large diffs are not rendered by default.
Lines changed: 105 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,105 @@
1+
{
2+
"cells": [
3+
{
4+
"cell_type": "code",
5+
"execution_count": 8,
6+
"id": "64524f66",
7+
"metadata": {},
8+
"outputs": [],
9+
"source": [
10+
"# 这是关于DPS排名的一个比赛的分析代码\n",
11+
"\n",
12+
"stdList = [\"无方\", \"田螺\", \"大师\", \"焚影\", \"藏剑\", \"花间\", \"衍天\", \"凌雪\", \"霸刀\", \"苍云\", \"气纯\", \"剑纯\", \"冰心\", \"丐帮\", \"鲸鱼\", \"傲血\", \"毒经\", \"蓬莱\", \"莫问\"]\n",
13+
"std = {}\n",
14+
"for i in range(len(stdList)):\n",
15+
" std[stdList[i]] = i+1\n",
16+
"\n"
17+
]
18+
},
19+
{
20+
"cell_type": "code",
21+
"execution_count": 9,
22+
"id": "894f0d17",
23+
"metadata": {},
24+
"outputs": [],
25+
"source": [
26+
"ansList = \"\"\"无方→田螺→蓬莱→霸刀→衍天→焚影→鲸鱼→花间→冰心→苍云→傲血→凌雪→丐帮→气纯→藏剑→剑纯→大师→莫问→毒经\t花姐\n",
27+
"无方→田螺→衍天→莫问→气纯→焚影→蓬莱→鲸鱼→毒经→藏剑→剑纯→冰心→花间→霸刀→苍云→傲血→丐帮→凌雪→大师\t天乙玄晶\n",
28+
"无方→田螺→衍天→蓬莱→焚影→鲸鱼→丐帮→苍云→霸刀→冰心→毒经→藏剑→剑纯→莫问→花间→大师→气纯→傲血→凌雪\t220\n",
29+
"无方→衍天→田螺→霸刀→丐帮→焚影→冰心→大师→蓬莱→毒经→花间→鲸鱼→莫问→凌雪→苍云→傲血→藏剑→剑纯→气纯\t招财\n",
30+
"无方→衍天→田螺→莫问→蓬莱→鲸鱼→剑纯→傲血→凌雪→霸刀→焚影→丐帮→苍云→气纯→冰心→藏剑→毒经→大师→花间\t白菜头\n",
31+
"无方→丐帮→衍天→田螺→焚影→苍云→霸刀→冰心→鲸鱼→蓬莱→藏剑→剑纯→凌雪→毒经→莫问→傲血→花间→气纯→大师\t小青\n",
32+
"无方→田螺→苍云→焚影→霸刀→丐帮→气纯→鲸鱼→藏剑→莫问→蓬莱→凌雪→衍天→傲血→花间→剑纯→毒经→大师→冰心\tYNLZ\n",
33+
"无方→田螺→藏剑→丐帮→蓬莱→霸刀→衍天→焚影→气纯→剑纯→冰心→毒经→花间→鲸鱼→莫问→苍云→傲血→大师→凌雪\t陆寻寻\n",
34+
"无方→田螺→毒经→冰心→莫问→剑纯→傲血→藏剑→霸刀→蓬莱→凌雪→衍天→苍云→丐帮→焚影→鲸鱼→气纯→花间→大师\t唐简@破阵子\"\"\"\n",
35+
"\n",
36+
"ans = {}\n",
37+
"ansRaw = {}\n",
38+
"a1 = ansList.split('\\n')\n",
39+
"for line in a1:\n",
40+
" name = line.split('\\t')[1]\n",
41+
" ansRaw[name] = line.split('\\t')[0]\n",
42+
" res = line.split('\\t')[0].split(\"\")\n",
43+
" ansSingle = []\n",
44+
" for item in res:\n",
45+
" ansSingle.append(std[item])\n",
46+
" ans[name] = ansSingle\n"
47+
]
48+
},
49+
{
50+
"cell_type": "code",
51+
"execution_count": 10,
52+
"id": "4c779103",
53+
"metadata": {},
54+
"outputs": [
55+
{
56+
"name": "stdout",
57+
"output_type": "stream",
58+
"text": [
59+
"{'花姐': [1, 2, 18, 9, 7, 4, 15, 6, 13, 10, 16, 8, 14, 11, 5, 12, 3, 19, 17], '天乙玄晶': [1, 2, 7, 19, 11, 4, 18, 15, 17, 5, 12, 13, 6, 9, 10, 16, 14, 8, 3], '220': [1, 2, 7, 18, 4, 15, 14, 10, 9, 13, 17, 5, 12, 19, 6, 3, 11, 16, 8], '招财': [1, 7, 2, 9, 14, 4, 13, 3, 18, 17, 6, 15, 19, 8, 10, 16, 5, 12, 11], '白菜头': [1, 7, 2, 19, 18, 15, 12, 16, 8, 9, 4, 14, 10, 11, 13, 5, 17, 3, 6], '小青': [1, 14, 7, 2, 4, 10, 9, 13, 15, 18, 5, 12, 8, 17, 19, 16, 6, 11, 3], 'YNLZ': [1, 2, 10, 4, 9, 14, 11, 15, 5, 19, 18, 8, 7, 16, 6, 12, 17, 3, 13], '陆寻寻': [1, 2, 5, 14, 18, 9, 7, 4, 11, 12, 13, 17, 6, 15, 19, 10, 16, 3, 8], '唐简@破阵子': [1, 2, 17, 13, 19, 12, 16, 5, 9, 18, 8, 7, 10, 14, 4, 15, 11, 6, 3]}\n"
60+
]
61+
}
62+
],
63+
"source": [
64+
"print(ans)"
65+
]
66+
},
67+
{
68+
"cell_type": "code",
69+
"execution_count": null,
70+
"id": "48aad8d7",
71+
"metadata": {},
72+
"outputs": [],
73+
"source": [
74+
"def calculRev(s):\n",
75+
" L = length(s)\n",
76+
" rev = 0\n",
77+
" for i in range(L-1):\n",
78+
" for j in range(i+1, L):\n",
79+
" if s[i] > s[j]:\n",
80+
" rev += 1\n"
81+
]
82+
}
83+
],
84+
"metadata": {
85+
"kernelspec": {
86+
"display_name": "Python 3 (ipykernel)",
87+
"language": "python",
88+
"name": "python3"
89+
},
90+
"language_info": {
91+
"codemirror_mode": {
92+
"name": "ipython",
93+
"version": 3
94+
},
95+
"file_extension": ".py",
96+
"mimetype": "text/x-python",
97+
"name": "python",
98+
"nbconvert_exporter": "python",
99+
"pygments_lexer": "ipython3",
100+
"version": "3.9.6"
101+
}
102+
},
103+
"nbformat": 4,
104+
"nbformat_minor": 5
105+
}

notebooks/.ipynb_checkpoints/CalXiangzhi-checkpoint.ipynb

Lines changed: 644 additions & 0 deletions
Large diffs are not rendered by default.

notebooks/2021-12-6/contest.png

104 KB
Loading

notebooks/2021-12-6/pt1.png

103 KB
Loading

0 commit comments

Comments
 (0)