dev
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
from functools import cache
|
from functools import cache
|
||||||
import importlib
|
import importlib
|
||||||
|
import sys
|
||||||
from typing import Any, Literal, Mapping, Union
|
from typing import Any, Literal, Mapping, Union
|
||||||
from uuid import uuid1
|
from uuid import uuid1
|
||||||
|
|
||||||
@@ -335,6 +336,8 @@ class Character(CharacterProperty):
|
|||||||
self.HitP += 命中率 + kwargs.get('HitP', 0)
|
self.HitP += 命中率 + kwargs.get('HitP', 0)
|
||||||
self.Hit += 命中 + kwargs.get('Hit', 0)
|
self.Hit += 命中 + kwargs.get('Hit', 0)
|
||||||
self.Attack += 攻击强化 + kwargs.get('Attack', 0)
|
self.Attack += 攻击强化 + kwargs.get('Attack', 0)
|
||||||
|
# if 攻击强化 + kwargs.get('Attack', 0) > 0:
|
||||||
|
# print(sys._getframe(1).f_code.co_name,sys._getframe(1).f_lineno,攻击强化 + kwargs.get('Attack', 0))
|
||||||
self.AttackP += 攻击强化P + kwargs.get('AttackP', 0.0)
|
self.AttackP += 攻击强化P + kwargs.get('AttackP', 0.0)
|
||||||
self.Buffer += 增益量 + kwargs.get('Buffer', 0)
|
self.Buffer += 增益量 + kwargs.get('Buffer', 0)
|
||||||
self.BufferP += 增益量P + kwargs.get('BufferP', 0)
|
self.BufferP += 增益量P + kwargs.get('BufferP', 0)
|
||||||
@@ -755,7 +758,7 @@ class Character(CharacterProperty):
|
|||||||
funs.execture("sundry_0")(self,
|
funs.execture("sundry_0")(self,
|
||||||
sundry.get("medal_rarity", 0),
|
sundry.get("medal_rarity", 0),
|
||||||
sundry.get("medal_reinforce", 0),
|
sundry.get("medal_reinforce", 0),
|
||||||
[sundry.get("medal_0", 0), sundry.get("medal_1", 0), sundry.get("medal_2", 0), sundry.get("medal_3", 0)],
|
[sundry.get("medal_gem_0", 0), sundry.get("medal_gem_1", 0), sundry.get("medal_gem_2", 0), sundry.get("medal_gem_3", 0)],
|
||||||
)
|
)
|
||||||
funs.execture("sundry_6")(self,
|
funs.execture("sundry_6")(self,
|
||||||
sundry.get("adventure", 1)
|
sundry.get("adventure", 1)
|
||||||
|
|||||||
@@ -150,9 +150,7 @@ class Skill:
|
|||||||
else:
|
else:
|
||||||
setattr(skill, type[1:], getattr(skill, type[1:]) * (1 + data[new] / ratio) / (1 + data[old] / ratio))
|
setattr(skill, type[1:], getattr(skill, type[1:]) * (1 + data[new] / ratio) / (1 + data[old] / ratio))
|
||||||
elif type.startswith('+'):
|
elif type.startswith('+'):
|
||||||
print(skill.name,type[1:], getattr(skill, type[1:]),data[new] / ratio - data[old] / ratio)
|
|
||||||
setattr(skill, type[1:], getattr(skill, type[1:]) + data[new] / ratio - data[old] / ratio)
|
setattr(skill, type[1:], getattr(skill, type[1:]) + data[new] / ratio - data[old] / ratio)
|
||||||
print(skill.name,type[1:], getattr(skill, type[1:]))
|
|
||||||
|
|
||||||
def skillInfo(self, mode: str | None = None):
|
def skillInfo(self, mode: str | None = None):
|
||||||
pass
|
pass
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ def sundry_0(char: CharacterProperty, *args):
|
|||||||
# 宝石 基础 三速 3% 所有属强 7
|
# 宝石 基础 三速 3% 所有属强 7
|
||||||
char.SetStatus(三速=0.03, 全属强=7)
|
char.SetStatus(三速=0.03, 全属强=7)
|
||||||
medal_gems_quality = [(224, 27, 46), (403, 49, 58), (701, 85, 72),(1140, 138, 88), (1753, 212, 106)]
|
medal_gems_quality = [(224, 27, 46), (403, 49, 58), (701, 85, 72),(1140, 138, 88), (1753, 212, 106)]
|
||||||
|
print(args)
|
||||||
for i in args[2]:
|
for i in args[2]:
|
||||||
gems_quality = medal_gems_quality[i]
|
gems_quality = medal_gems_quality[i]
|
||||||
char.SetStatus(攻击强化=gems_quality[0]*0.1, 增益量=gems_quality[1])
|
char.SetStatus(攻击强化=gems_quality[0]*0.1, 增益量=gems_quality[1])
|
||||||
|
|||||||
Reference in New Issue
Block a user