Spaces:
Runtime error
Runtime error
File size: 12,846 Bytes
2452398 025687f 6e6388e 5825182 2452398 025687f b76daae 025687f a2a5d31 effe13f a2a5d31 025687f effe13f 025687f 970efde 6e6388e 970efde 025687f b76daae 025687f f0b1638 025687f f0b1638 025687f a2a5d31 025687f f0b1638 025687f f0b1638 5825182 effe13f 970efde 6e6388e 970efde 025687f b8aecdd 55f0dce 025687f b8aecdd 2452398 5825182 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 |
from typing import Dict
from base.skill import Skill, DotSkill, PhysicalDamage, PhysicalDotDamage
from general.skills import GENERAL_SKILLS
SKILLS: Dict[int, Skill | dict] = {
32823: {
"skill_class": PhysicalDamage,
"skill_name": "破",
"surplus_cof": [
1048576 * (0.875 - 1),
1048576 * (0.1375 - 1),
1048576 * (0.275 - 1),
1048576 * (0.4032 - 1)
]
},
**{
skill_id: {
"skill_class": PhysicalDamage,
"skill_name": "霜风刀法",
"attack_power_cof": 16,
"weapon_damage_cof": 1024
} for skill_id in (16419, 16820, 16822)
},
**{
skill_id: {
"skill_class": PhysicalDamage,
"skill_name": "雷走风切",
"damage_base": 175,
"damage_rand": 15,
"attack_power_cof": 224 * 0.8 * 0.7,
} for skill_id in (16599, 16631)
},
11447: {
"skill_class": PhysicalDotDamage,
"skill_name": "闹须弥(DOT)",
"damage_base": [25, 28, 31, 34, 37, 40, 43, 46, 49, 52],
"attack_power_cof": [50] +
[50 + (i - 1) * 25 for i in range(2, 10)] +
[280],
"interval": 48,
"tick": 8
},
17060: {
"skill_class": DotSkill,
"skill_name": "闹须弥",
"bind_skill": 11447,
},
16933: {
"skill_class": PhysicalDamage,
"skill_name": "惊燕式",
"damage_base": [30, 35, 40, 45, 50, 55, 60, 65, 70, 80],
"damage_rand": [5, 5, 5, 5, 5, 10, 10, 10, 10, 10],
"attack_power_cof": [16 * 1.3 * 1.2] +
[(16 + (i - 1) * 8) * 1.3 * 1.2 for i in range(2, 10)] +
[64 * 1.3 * 1.2],
"weapon_damage_cof": 1024
},
16934: {
"skill_class": PhysicalDamage,
"skill_name": "惊燕式",
"damage_base": [30, 35, 40, 45, 50, 55, 60, 65, 70, 80],
"damage_rand": [5, 5, 5, 5, 5, 10, 10, 10, 10, 10],
"attack_power_cof": [20 * 1.3 * 1.2] +
[(20 + (i - 1) * 8) * 1.3 * 1.2 for i in range(2, 10)] +
[80 * 1.3 * 1.2],
"weapon_damage_cof": 1024
},
16935: {
"skill_class": PhysicalDamage,
"skill_name": "逐鹰式",
"damage_base": [30, 35, 40, 45, 50, 55, 60, 65, 70, 80],
"damage_rand": [5, 5, 5, 5, 5, 10, 10, 10, 10, 10],
"attack_power_cof": [16 * 1.3 * 1.2] +
[(16 + (i - 1) * 8) * 1.3 * 1.2 for i in range(2, 10)] +
[64 * 1.3 * 1.2],
"weapon_damage_cof": 1024
},
16936: {
"skill_class": PhysicalDamage,
"skill_name": "逐鹰式",
"damage_base": [30, 35, 40, 45, 50, 55, 60, 65, 70, 80],
"damage_rand": [5, 5, 5, 5, 5, 10, 10, 10, 10, 10],
"attack_power_cof": [16 * 1.3 * 1.2] +
[(16 + (i - 1) * 8) * 1.3 * 1.2 for i in range(2, 10)] +
[96 * 1.3 * 1.2],
"weapon_damage_cof": 1024
},
16937: {
"skill_class": PhysicalDamage,
"skill_name": "控鹤式",
"damage_base": [30, 35, 40, 45, 50, 55, 60, 65, 70, 80],
"damage_rand": [5, 5, 5, 5, 5, 10, 10, 10, 10, 10],
"attack_power_cof": [16 * 1.3 * 1.2] +
[(16 + (i - 1) * 8) * 1.3 * 1.2 for i in range(2, 10)] +
[80 * 1.3 * 1.2],
"weapon_damage_cof": 1024
},
16938: {
"skill_class": PhysicalDamage,
"skill_name": "控鹤式",
"damage_base": [30, 35, 40, 45, 50, 55, 60, 65, 70, 80],
"damage_rand": [5, 5, 5, 5, 5, 10, 10, 10, 10, 10],
"attack_power_cof": [20 * 1.3 * 1.2] +
[(20 + (i - 1) * 8) * 1.3 * 1.2 for i in range(2, 10)] +
[104 * 1.3 * 1.2],
"weapon_damage_cof": 1024
},
16939: {
"skill_class": PhysicalDamage,
"skill_name": "起凤式",
"damage_base": [30, 35, 40, 45, 50, 55, 60, 65, 70, 80],
"damage_rand": [5, 5, 5, 5, 5, 10, 10, 10, 10, 10],
"attack_power_cof": [16 * 1.3 * 1.2] +
[(16 + (i - 1) * 8) * 1.3 * 1.2 for i in range(2, 10)] +
[96 * 1.3 * 1.2],
"weapon_damage_cof": 1024
},
16940: {
"skill_class": PhysicalDamage,
"skill_name": "起凤式",
"damage_base": [30, 35, 40, 45, 50, 55, 60, 65, 70, 80],
"damage_rand": [5, 5, 5, 5, 5, 10, 10, 10, 10, 10],
"attack_power_cof": [20 * 1.3 * 1.2] +
[(20 + (i - 1) * 8) * 1.3 * 1.2 for i in range(2, 10)] +
[120 * 1.3 * 1.2],
"weapon_damage_cof": 1024
},
16941: {
"skill_class": PhysicalDamage,
"skill_name": "腾蛟式",
"damage_base": [30, 35, 40, 45, 50, 55, 60, 65, 70, 80],
"damage_rand": [5, 5, 5, 5, 5, 10, 10, 10, 10, 10],
"attack_power_cof": [16 * 1.3 * 1.2] +
[(16 + (i - 1) * 8) * 1.3 * 1.2 for i in range(2, 10)] +
[112 * 1.3 * 1.2],
"weapon_damage_cof": 1024
},
16942: {
"skill_class": PhysicalDamage,
"skill_name": "腾蛟式",
"damage_base": [30, 35, 40, 45, 50, 55, 60, 65, 70, 80],
"damage_rand": [5, 5, 5, 5, 5, 10, 10, 10, 10, 10],
"attack_power_cof": [20 * 1.3 * 1.2] +
[(20 + (i - 1) * 8) * 1.3 * 1.2 for i in range(2, 10)] +
[128 * 1.3 * 1.2],
"weapon_damage_cof": 1024
},
16943: {
"skill_class": PhysicalDamage,
"skill_name": "擒龙式",
"damage_base": [30, 35, 40, 45, 50, 55, 60, 65, 70, 80],
"damage_rand": [5, 5, 5, 5, 5, 10, 10, 10, 10, 10],
"attack_power_cof": [16 * 1.3 * 1.2] +
[(16 + (i - 1) * 8) * 1.3 * 1.2 for i in range(2, 10)] +
[112 * 1.3 * 1.2],
"weapon_damage_cof": 1024
},
16944: {
"skill_class": PhysicalDamage,
"skill_name": "擒龙式",
"damage_base": [30, 35, 40, 45, 50, 55, 60, 65, 70, 80],
"damage_rand": [5, 5, 5, 5, 5, 10, 10, 10, 10, 10],
"attack_power_cof": [20 * 1.3 * 1.2] +
[(20 + (i - 1) * 8) * 1.3 * 1.2 for i in range(2, 10)] +
[144 * 1.3 * 1.2],
"weapon_damage_cof": 1024
},
16787: {
"skill_class": PhysicalDamage,
"skill_name": "坚壁清野",
"damage_base": [150, 170, 190, 210, 230, 250, 270, 290, 310, 330, 350, 370, 390, 410, 430],
"damage_rand": [5, 5, 5, 5, 5, 10, 10, 10, 10, 15, 15, 15, 20, 20, 20],
"attack_power_cof": [60 * 1.2 * 0.7 * 1.1] +
[(60 + (i - 1) * 16) * 1.2 * 0.7 * 1.1 for i in range(2, 15)] +
[288 * 1.2 * 0.7 * 1.1],
},
16794: {
"skill_class": PhysicalDamage,
"skill_name": "坚壁清野",
"damage_base": [55, 70, 85, 100, 115, 130, 145, 160, 175, 190, 205, 220, 235, 240, 250],
"damage_rand": [5, 5, 5, 5, 5, 10, 10, 10, 10, 15, 15, 15, 20, 20, 20],
"attack_power_cof": [32 * 1.1] +
[32 + (i - 1) * 9 * 1.1 for i in range(2, 15)] +
[160 * 1.1],
},
16610: {
"skill_class": PhysicalDamage,
"skill_name": "刀啸风吟",
"damage_base": [100, 110, 120, 130, 140, 150, 160, 170, 180, 190, 205, 220, 235, 240, 250],
"damage_rand": [5, 5, 5, 5, 5, 10, 10, 10, 10, 15, 15, 15, 20, 20, 20],
"attack_power_cof": [50 * 1.2 * 1.05 * 1.1 * 1.1 * 1.05 * 1.1] +
[(50 + (i - 1) * 14) * 1.2 * 1.05 * 1.1 * 1.1 * 1.05 * 1.1 for i in range(2, 15)] +
[256 * 1.2 * 1.05 * 1.1 * 1.1 * 1.05 * 1.1],
},
16760: {
"skill_class": PhysicalDamage,
"skill_name": "项王击鼎",
"damage_base": [35, 45, 55, 70, 85, 100, 115, 130, 145, 175, 190, 205, 220, 235, 250],
"damage_rand": [5, 5, 5, 5, 5, 10, 10, 10, 10, 15, 15, 15, 15, 15, 15],
"attack_power_cof": [40 * 1.2 * 0.9 * 1.1 * 1.1] +
[(40 + (i - 1) * 11) * 1.2 * 0.9 * 1.1 * 1.1 for i in range(2, 15)] +
[200 * 1.2 * 0.9 * 1.1 * 1.1],
"weapon_damage_cof": 1024
},
16382: {
"skill_class": PhysicalDamage,
"skill_name": "项王击鼎",
"damage_base": [50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180, 190],
"damage_rand": [5, 5, 5, 5, 5, 10, 10, 10, 10, 15, 15, 15, 15, 15, 15],
"attack_power_cof": [16 * 0.9 * 1.1] +
[(16 + (i - 1) * 7) * 0.9 * 1.1 for i in range(2, 15)] +
[128 * 0.9 * 1.1],
"weapon_damage_cof": 1024
},
20991: {
"skill_class": PhysicalDamage,
"skill_name": "破釜沉舟",
"damage_base": [90, 86, 110, 130, 150, 170, 190, 210, 230, 250, 270, 290, 310, 330, 350],
"damage_rand": [5, 5, 5, 5, 5, 10, 10, 10, 10, 15, 15, 15, 15, 15, 20],
"attack_power_cof": [80 * 0.9 * 0.95 * 1.1 * 1.15 * 1.1] +
[(80 + (i - 1) * 22) * 0.9 * 0.95 * 1.1 * 1.15 * 1.1 for i in range(2, 15)] +
[400 * 0.9 * 0.95 * 1.1 * 1.15 * 1.1],
"weapon_damage_cof": 2048
},
**{
skill_id: {
"skill_class": PhysicalDamage,
"skill_name": "上将军印",
"damage_base": [100, 140, 160, 180, 200, 220, 240, 260, 280, 300],
"damage_rand": [10, 10, 10, 10, 10, 15, 15, 15, 15, 15],
"damage_gain": 1 + 0.15 * i,
"attack_power_cof": [60 * 0.9 * 1.1 * 1.05] +
[(60 + (i - 1) * 10) * 0.9 * 1.1 * 1.05 for i in range(2, 10)] +
[160 * 0.9 * 1.1 * 1.05],
"attack_power_cof_gain": 1 + 0.15 * i,
"weapon_damage_cof": 1024,
"weapon_damage_cof_gain": 1 + max(0.15 * i, 0.6)
} for i, skill_id in enumerate([16803, 16802, 16801, 16800, 17043, 19423, 19424])
},
36486: {
"skill_class": PhysicalDamage,
"skill_name": "楚歌",
"damage_base": [55, 70],
"damage_rand": 5,
"attack_power_cof": [240 * 0.8 * 1.5, 1200 * 0.8 * 1.5],
},
30645: {
"skill_class": PhysicalDamage,
"skill_name": "降麒",
"damage_base": [50, 60, 70, 80, 90, 100, 110, 120, 130, 140, 150, 160, 170, 180, 190],
"damage_rand": [5, 5, 5, 5, 5, 10, 10, 10, 10, 15, 15, 15, 15, 15, 15],
"attack_power_cof": 60 * 2,
"weapon_damage_cof": 1024
},
34585: {
"skill_class": PhysicalDamage,
"skill_name": "绝期",
"damage_base": [55, 70, 85, 100, 115, 130, 145, 160, 175, 190, 205, 220, 235, 240, 250],
"damage_rand": [5, 5, 5, 5, 5, 10, 10, 10, 10, 15, 15, 15, 20, 20, 20],
"attack_power_cof": 120,
},
32859: {
"skill_class": PhysicalDamage,
"skill_name": "上将军印·见尘",
"damage_base": [int(e * 1.45 * 0.5) for e in [100, 140, 160, 180, 200, 220, 240, 260, 280, 300]],
"damage_rand": [int(e * 1.45 * 0.5) for e in [10, 10, 10, 10, 10, 15, 15, 15, 15, 15]],
"attack_power_cof": [60 * 1.45 * 1.1 * 0.7] +
[(60 + (i - 1) * 10) * 1.45 * 1.1 * 0.7 for i in range(2, 10)] +
[160 * 1.45 * 0.9 * 1.1 * 0.7],
},
37458: {
"skill_class": PhysicalDamage,
"skill_name": "掠关",
"damage_base": [80, 88, 96, 106, 112, 118, 124, 132, 138, 142, 150, 158, 166, 172, 180],
"damage_rand": [32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 45, 48, 50],
"attack_power_cof": 230 * 1.3
},
25782: {
"skill_class": PhysicalDamage,
"skill_name": "上将军印·神兵",
"damage_base": 20,
"damage_rand": 2,
"attack_power_cof": 25
},
19555: {
"skill_class": PhysicalDotDamage,
"skill_name": "背水沉舟(DOT)",
"damage_base": 25,
"attack_power_cof": 380,
"interval": 48,
"max_stack": 3,
"tick": 6
},
26934: {
"skill_class": DotSkill,
"skill_name": "背水沉舟",
"bind_skill": 19555,
}
}
for skill_id, detail in SKILLS.items():
SKILLS[skill_id] = detail.pop('skill_class')(skill_id)
for attr, value in detail.items():
setattr(SKILLS[skill_id], attr, value)
for skill_id, skill in GENERAL_SKILLS.items():
SKILLS[skill_id] = skill
|