dev
This commit is contained in:
@@ -368,4 +368,4 @@ class CharacterBase(CharacterProperty):
|
|||||||
if part in ['耳环', '辅助装备', '魔法石']:
|
if part in ['耳环', '辅助装备', '魔法石']:
|
||||||
reinforce_2 += num
|
reinforce_2 += num
|
||||||
reinforce = reinforce_0 + reinforce_1 + reinforce_2 + reinforce_3
|
reinforce = reinforce_0 + reinforce_1 + reinforce_2 + reinforce_3
|
||||||
return [reinforce, reinforce_0, reinforce_1, reinforce_2, reinforce_3]
|
return [reinforce, reinforce_0, reinforce_1, reinforce_2]
|
||||||
|
|||||||
@@ -160,7 +160,7 @@ class CalcEquipMixin(CharacterBase):
|
|||||||
for skill in oathSkillEffect:
|
for skill in oathSkillEffect:
|
||||||
func = equs.funs.execture(f'oath_skill_{skill.id}')
|
func = equs.funs.execture(f'oath_skill_{skill.id}')
|
||||||
if func is not None:
|
if func is not None:
|
||||||
print(f'誓约技能 {skill.name} 生效')
|
print(f'誓约技能 {skill.id} 生效')
|
||||||
func(self)
|
func(self)
|
||||||
if self.max_point >= 2550:
|
if self.max_point >= 2550:
|
||||||
skillAttack = (self.max_point - 2550) // 70 * 0.01
|
skillAttack = (self.max_point - 2550) // 70 * 0.01
|
||||||
|
|||||||
@@ -1,9 +1,15 @@
|
|||||||
|
import inspect
|
||||||
|
|
||||||
from core.abstract.character import CharacterProperty
|
from core.abstract.character import CharacterProperty
|
||||||
from core.basic.equipment import EquEffect
|
from core.basic.equipment import EquEffect
|
||||||
from .register import register
|
from .register import register
|
||||||
|
|
||||||
|
|
||||||
def check_suit(char: CharacterProperty, suitId: int) -> bool:
|
def check_suit(char: CharacterProperty) -> bool:
|
||||||
|
caller_frame = inspect.stack()[1]
|
||||||
|
fun_name = caller_frame.function
|
||||||
|
suitId = int(fun_name.split('_')[-1]) % 10000 + 16000
|
||||||
|
print(f'检查套装 {suitId}')
|
||||||
return next((x for x in char.suitInfo if x.suitId == suitId), None) is not None
|
return next((x for x in char.suitInfo if x.suitId == suitId), None) is not None
|
||||||
|
|
||||||
|
|
||||||
@@ -170,6 +176,7 @@ def oath_skill_2020503(char: CharacterProperty):
|
|||||||
# region 理想之黄金乡
|
# region 理想之黄金乡
|
||||||
@register
|
@register
|
||||||
def oath_skill_2030101(char: CharacterProperty):
|
def oath_skill_2030101(char: CharacterProperty):
|
||||||
|
oath_skill_2030501(char)
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
|
||||||
@@ -250,7 +257,7 @@ def oath_skill_2030501(char: CharacterProperty):
|
|||||||
char.SetStatus(SpeedA=0.01 * min(reinforce_2 // 3, 12))
|
char.SetStatus(SpeedA=0.01 * min(reinforce_2 // 3, 12))
|
||||||
char.SetStatus(SpeedM=0.01 * min(reinforce_2 // 3, 12))
|
char.SetStatus(SpeedM=0.01 * min(reinforce_2 // 3, 12))
|
||||||
char.SetStatus(SpeedR=0.01 * min(reinforce_2 // 3, 12))
|
char.SetStatus(SpeedR=0.01 * min(reinforce_2 // 3, 12))
|
||||||
if check_suit(char, 16203):
|
if check_suit(char):
|
||||||
print('穿戴黄金乡')
|
print('穿戴黄金乡')
|
||||||
char.SetStatus(SkillRange=0.02 * min(reinforce // 11, 12))
|
char.SetStatus(SkillRange=0.02 * min(reinforce // 11, 12))
|
||||||
# char.SetStatus(DamageReduce=0.01 * min(reinforce_0 // 5, 7))
|
# char.SetStatus(DamageReduce=0.01 * min(reinforce_0 // 5, 7))
|
||||||
|
|||||||
Binary file not shown.
Reference in New Issue
Block a user