Spaces:
Runtime error
Runtime error
ango commited on
Commit ·
6d09f00
1
Parent(s): 36e359a
04.25 commit
Browse files- base/buff.py +0 -1
- general/gains/formation.py +1 -1
- schools/shan_hai_xin_jue/buffs.py +8 -1
- schools/shan_hai_xin_jue/talents.py +2 -1
- utils/analyzer.py +7 -6
base/buff.py
CHANGED
|
@@ -20,7 +20,6 @@ class Buff:
|
|
| 20 |
gain_attributes: ATTR_DICT = None
|
| 21 |
|
| 22 |
SNAPSHOT_ATTRS = ["attack_power", "critical_strike", "critical_power", "strain", "damage_addition"]
|
| 23 |
-
PET_ATTRS = ["attack_power", "critical_power", "overcome", "strain"]
|
| 24 |
|
| 25 |
def __post_init__(self):
|
| 26 |
if self.gain_skills is None:
|
|
|
|
| 20 |
gain_attributes: ATTR_DICT = None
|
| 21 |
|
| 22 |
SNAPSHOT_ATTRS = ["attack_power", "critical_strike", "critical_power", "strain", "damage_addition"]
|
|
|
|
| 23 |
|
| 24 |
def __post_init__(self):
|
| 25 |
if self.gain_skills is None:
|
general/gains/formation.py
CHANGED
|
@@ -167,7 +167,7 @@ class 霜岚洗锋阵(FormationGain):
|
|
| 167 |
class 墟海引归阵(FormationGain):
|
| 168 |
gain_attributes = {
|
| 169 |
"physical_critical_strike_gain": 300,
|
| 170 |
-
"physical_attack_power_gain":
|
| 171 |
"physical_overcome_gain": 102
|
| 172 |
}
|
| 173 |
core_gain_attributes = {"physical_attack_power_gain": 51}
|
|
|
|
| 167 |
class 墟海引归阵(FormationGain):
|
| 168 |
gain_attributes = {
|
| 169 |
"physical_critical_strike_gain": 300,
|
| 170 |
+
"physical_attack_power_gain": 133,
|
| 171 |
"physical_overcome_gain": 102
|
| 172 |
}
|
| 173 |
core_gain_attributes = {"physical_attack_power_gain": 51}
|
schools/shan_hai_xin_jue/buffs.py
CHANGED
|
@@ -16,7 +16,14 @@ BUFFS: Dict[int, Buff | dict] = {
|
|
| 16 |
"gain_attributes": {
|
| 17 |
"all_damage_addition": 62
|
| 18 |
}
|
| 19 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 20 |
}
|
| 21 |
|
| 22 |
for buff_id, detail in BUFFS.items():
|
|
|
|
| 16 |
"gain_attributes": {
|
| 17 |
"all_damage_addition": 62
|
| 18 |
}
|
| 19 |
+
},
|
| 20 |
+
27099: {
|
| 21 |
+
"buff_name": "诸怀",
|
| 22 |
+
"gain_attributes": {
|
| 23 |
+
"all_shield_ignore": 205,
|
| 24 |
+
"physical_attack_power_gain": 102
|
| 25 |
+
}
|
| 26 |
+
},
|
| 27 |
}
|
| 28 |
|
| 29 |
for buff_id, detail in BUFFS.items():
|
schools/shan_hai_xin_jue/talents.py
CHANGED
|
@@ -66,6 +66,7 @@ TALENT_GAINS: Dict[int, Gain] = {
|
|
| 66 |
35725: Gain("长右"),
|
| 67 |
35729: Gain("鹿蜀"),
|
| 68 |
35736: 桑柘("桑柘"),
|
|
|
|
| 69 |
35737: Gain("于狩"),
|
| 70 |
35745: 卢令("卢令"),
|
| 71 |
35749: Gain("托月"),
|
|
@@ -81,7 +82,7 @@ TALENTS = [
|
|
| 81 |
[35721],
|
| 82 |
[35725],
|
| 83 |
[35729],
|
| 84 |
-
[35736],
|
| 85 |
[35737],
|
| 86 |
[35745],
|
| 87 |
[35749],
|
|
|
|
| 66 |
35725: Gain("长右"),
|
| 67 |
35729: Gain("鹿蜀"),
|
| 68 |
35736: 桑柘("桑柘"),
|
| 69 |
+
35733: Gain("诸怀"),
|
| 70 |
35737: Gain("于狩"),
|
| 71 |
35745: 卢令("卢令"),
|
| 72 |
35749: Gain("托月"),
|
|
|
|
| 82 |
[35721],
|
| 83 |
[35725],
|
| 84 |
[35729],
|
| 85 |
+
[35736, 35733],
|
| 86 |
[35737],
|
| 87 |
[35745],
|
| 88 |
[35749],
|
utils/analyzer.py
CHANGED
|
@@ -119,18 +119,19 @@ def analyze_details(record, duration: int, attribute: Attribute, school: School)
|
|
| 119 |
|
| 120 |
if skill_total.count:
|
| 121 |
total.expected_damage += skill_total.expected_damage
|
| 122 |
-
skill_summary.expected_damage += skill_total.expected_damage
|
| 123 |
-
skill_summary.critical_count += skill_total.critical_strike
|
| 124 |
-
skill_summary.count += skill_total.count
|
| 125 |
skill_total.damage /= skill_total.count
|
| 126 |
skill_total.critical_damage /= skill_total.count
|
| 127 |
skill_total.expected_damage /= skill_total.count
|
| 128 |
skill_total.critical_strike /= skill_total.count
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 129 |
else:
|
|
|
|
| 130 |
summary.pop(skill_name)
|
| 131 |
-
for attr, residual_damage in skill_total.gradients.items():
|
| 132 |
-
total.gradients[attr] += residual_damage
|
| 133 |
-
skill_total.gradients[attr] /= skill_total.count
|
| 134 |
|
| 135 |
return total, summary, details
|
| 136 |
|
|
|
|
| 119 |
|
| 120 |
if skill_total.count:
|
| 121 |
total.expected_damage += skill_total.expected_damage
|
|
|
|
|
|
|
|
|
|
| 122 |
skill_total.damage /= skill_total.count
|
| 123 |
skill_total.critical_damage /= skill_total.count
|
| 124 |
skill_total.expected_damage /= skill_total.count
|
| 125 |
skill_total.critical_strike /= skill_total.count
|
| 126 |
+
skill_summary.expected_damage += skill_total.expected_damage
|
| 127 |
+
skill_summary.critical_count += skill_total.critical_strike
|
| 128 |
+
skill_summary.count += skill_total.count
|
| 129 |
+
for attr, residual_damage in skill_total.gradients.items():
|
| 130 |
+
total.gradients[attr] += residual_damage
|
| 131 |
+
skill_total.gradients[attr] /= skill_total.count
|
| 132 |
else:
|
| 133 |
+
details.pop(skill.display_name)
|
| 134 |
summary.pop(skill_name)
|
|
|
|
|
|
|
|
|
|
| 135 |
|
| 136 |
return total, summary, details
|
| 137 |
|