mirror of
https://github.com/baiqwerdvd/StarRailUID.git
synced 2025-05-06 19:53:44 +08:00
🐛 fix bug
This commit is contained in:
parent
b5da1705a8
commit
67ed9c9803
@ -1,14 +1,14 @@
|
|||||||
import json
|
import json
|
||||||
from pathlib import Path
|
|
||||||
from abc import abstractmethod
|
from abc import abstractmethod
|
||||||
|
from pathlib import Path
|
||||||
from typing import List, Union
|
from typing import List, Union
|
||||||
|
|
||||||
import msgspec
|
import msgspec
|
||||||
from msgspec import Struct
|
from msgspec import Struct
|
||||||
|
|
||||||
from .SkillBase import BaseSkills
|
|
||||||
from ....utils.excel.model import AvatarPromotionConfig
|
from ....utils.excel.model import AvatarPromotionConfig
|
||||||
from .model import DamageInstanceSkill, DamageInstanceAvatar
|
from .model import DamageInstanceAvatar, DamageInstanceSkill
|
||||||
|
from .SkillBase import BaseSkills
|
||||||
|
|
||||||
path = Path(__file__).parent.parent
|
path = Path(__file__).parent.parent
|
||||||
with Path.open(path / 'Excel' / 'SkillData.json', encoding='utf-8') as f:
|
with Path.open(path / 'Excel' / 'SkillData.json', encoding='utf-8') as f:
|
||||||
@ -110,7 +110,8 @@ class BaseAvatar:
|
|||||||
skill_info = skill_dict[str(self.avatar_id)]['skillList'][skill_type]
|
skill_info = skill_dict[str(self.avatar_id)]['skillList'][skill_type]
|
||||||
return msgspec.convert(skill_info, type=List[Union[str, int]])
|
return msgspec.convert(skill_info, type=List[Union[str, int]])
|
||||||
|
|
||||||
def Skill_num(self, skill: str, skill_type: str):
|
def Skill_num(self, skill: Union[str, int], skill_type: str):
|
||||||
|
skill_level = 0
|
||||||
if skill == 'Normal':
|
if skill == 'Normal':
|
||||||
skill_level = self.Skill.Normal_.level - 1
|
skill_level = self.Skill.Normal_.level - 1
|
||||||
if skill == 'BPSkill':
|
if skill == 'BPSkill':
|
||||||
|
@ -31,9 +31,6 @@
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"23012": {
|
|
||||||
"enable": false
|
|
||||||
},
|
|
||||||
"24001": {
|
"24001": {
|
||||||
"Param": {
|
"Param": {
|
||||||
"CriticalChance": [
|
"CriticalChance": [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user