dev
This commit is contained in:
@@ -40,7 +40,7 @@ def get_data(prefix: str, key: int | str, func = lambda x: x):
|
||||
data = next((item.get('custom', 1.0) for item in custom_cn
|
||||
if item['job'] == job and item['jobGrow'] == jobGrow and item['skillId'] == skill), 1.0)
|
||||
except Exception as e:
|
||||
print(f"get skill {prefix}/{key} data error",e)
|
||||
# print(f"get skill {prefix}/{key} data error",e)
|
||||
data = None
|
||||
return data
|
||||
|
||||
@@ -215,7 +215,7 @@ class Skill:
|
||||
if skill is not None:
|
||||
self.update_skill_attribute(skill, type, old, new, data, ratio, weapon)
|
||||
except Exception as e:
|
||||
print(f"Error applying association {type} for skill {self.name}: {e}")
|
||||
# print(f"Error applying association {type} for skill {self.name}: {e}")
|
||||
raise e
|
||||
|
||||
def update_skill_attribute(self, skill, type, old, new, data, ratio=100, weapon=[]):
|
||||
|
||||
Reference in New Issue
Block a user