Skip to content

Commit

Permalink
工具补上许愿池生命护盾阶段加成
Browse files Browse the repository at this point in the history
  • Loading branch information
ilusrdbb committed Jun 18, 2024
1 parent 0c1f4f5 commit 573ed72
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 13 deletions.
20 changes: 10 additions & 10 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ my_kf_level: 1400
skl_def: 0
crt_def: 0
# 时间范围,如果为空则全量抓取,因为3s环境变化较快不建议设置太久远
start_date: '2024-06-01'
start_date: '2024-06-14'
end_date: ''
# 段位限制,只分析此段位的出击记录,填空字符串为不限制,注意此选项需要最新版收割机的支持
rank_limit: 'SSS'
Expand Down Expand Up @@ -42,22 +42,22 @@ default_g: 100000
# 装备默认百分比,觉得欧狗多就设置的高些,注意设置的太高胜率容易尿崩
gear_config:
STAFF: '150 150 150 150'
BLADE: '100 150 150 150'
BLADE: '100 150 150 130'
ASSBOW: '100 150 150 120'
DAGGER: '100 130 150 150'
WAND: '120 120 130 150'
SHIELD: '100 150 130 140'
CLAYMORE: '110 110 150 150'
SPEAR: '120 150 150 100'
SPEAR: '100 150 150 120'
GLOVES: '150 150 150 150'
BRACELET: '150 150 100 150'
VULTURE: '120 120 130 150'
CLOAK: '150 100 150 120'
THORN: '150 100 130 150'
WOOD: '150 130 130 120'
CLOAK: '100 120 150 150'
THORN: '150 100 120 150'
WOOD: '150 120 120 130'
CAPE: '150 150 150 100'
SCARF: '150 150 150 150'
TIARA: '120 150 150 100'
TIARA: '150 150 150 100'
RIBBON: '100 150 150 150'
RING: '100 150 150 150'
DEVOUR: '100 150 150 150'
Expand All @@ -67,9 +67,9 @@ gear_config:
LEATHER: '150 150 150 150'
CLOTH: '150 150 150 150'
COLORFUL: '120 100 150 150'
HUNT: '150 100 140 140'
LIMPIDWAND: '120 150 150 110'
REFRACT: '130 100 150 150'
HUNT: '150 100 150 150'
LIMPIDWAND: '100 150 150 120'
REFRACT: '120 100 150 150'
FIERCE: '100 150 150 150'
# 是否加入权重,会根据出现次数加入w值,目前匹配池不平均建议开启
is_add_w: true
Expand Down
2 changes: 1 addition & 1 deletion core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@


def start():
print('Version 2.8.20')
print('Version 2.8.21')
# 加载配置文件
config._init()
# 加载模板
Expand Down
6 changes: 4 additions & 2 deletions core/attribute.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ def cal_battle_int(enemy_data, battle_data, attr_data, aumlet_str):
m_damage -= battle_data.cache_p_damage
# 葡萄
atk_aumlet_ratio = 1 + aumlet_from_str(aumlet_str, 'PATK') / 100
atk_aumlet_ratio += int(int(config.read_config('wish_config').split(' ')[7]) / 100)
atk_aumlet_ratio += int(int(config.read_config('wish_config').split(' ')[6]) / 100)
if enemy_data.enemy_card == 'WU':
atk_aumlet_ratio += 0.3
m_damage /= atk_aumlet_ratio
Expand Down Expand Up @@ -138,7 +138,7 @@ def cal_battle_int(enemy_data, battle_data, attr_data, aumlet_str):
gear_add += int(gear_level_list[0]) * 10 * int(config.read_config('gear_config')['STAFF'].split(' ')[1]) / 100
base_matk -= gear_add
# 许愿池
base_matk -= int(config.read_config('wish_config').split(' ')[7]) * 5
base_matk -= int(config.read_config('wish_config').split(' ')[6]) * 5
if base_matk <= 10:
attr_data.all_point -= 1
return
Expand Down Expand Up @@ -612,6 +612,7 @@ def cal_sld(enemy_data, battle_data, attr_data, aumlet_str):
# 最后乘算因素
final_ratio = 1
final_ratio += aumlet_from_str(aumlet_str, 'SLD') / 100
final_ratio += int(int(config.read_config('wish_config').split(' ')[8]) / 100)
if gear_list[2] == 'CLOAK' and gear_mystery_list[2] == '1':
final_ratio += 0.5
if enemy_data.enemy_card == 'MO':
Expand Down Expand Up @@ -772,6 +773,7 @@ def cal_hp(enemy_data, battle_data, attr_data, aumlet_str):
# 最后乘算因素
final_ratio = 1
final_ratio += aumlet_from_str(aumlet_str, 'HP') / 100
final_ratio += int(int(config.read_config('wish_config').split(' ')[7]) / 100)
if enemy_data.enemy_card == 'LIN':
final_ratio += 0.3
if enemy_data.enemy_card == 'YI':
Expand Down

0 comments on commit 573ed72

Please sign in to comment.