Skip to content

Commit

Permalink
#179 零号空洞 - 增加简的空洞配置;默认配置中加入诡术徽章
Browse files Browse the repository at this point in the history
  • Loading branch information
DoctorReid committed Sep 15, 2024
1 parent 5a5f939 commit 2314363
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 6 deletions.
4 changes: 4 additions & 0 deletions assets/game_data/hollow_zero/resonium.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@
name: "左轮布"
level: "S"

- category: "邦布"
name: "阿崔巡查"
level: "S"

- category: "邦布"
name: "企鹅布"
level: "A"
Expand Down
22 changes: 22 additions & 0 deletions assets/game_data/screen_info/hollow_zero_battle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,25 @@ area_list:
template_sub_dir: ''
template_id: ''
template_match_threshold: 0.7
- area_name: 关键进展-丁尼奖励
pc_rect:
- 670
- 708
- 1276
- 966
text: ''
lcs_percent: 0.5
template_sub_dir: hollow
template_id: critical_reward_money
template_match_threshold: 0.7
- area_name: 通关-丁尼奖励
pc_rect:
- 1314
- 534
- 1826
- 864
text: ''
lcs_percent: 0.5
template_sub_dir: hollow
template_id: critical_reward_money
template_match_threshold: 0.7
14 changes: 14 additions & 0 deletions config/hollow_zero_challenge/默认-专属空洞-简.sample.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
resonium_priority:
- 闪避
- 强袭
- 能量
- 决斗
- 诡术 燃烧玫瑰
- 诡术 华丽手杖
- 邦布 阿崔巡查
- 邦布 左轮布
auto_battle: 专属配队-简
event_priority:
- ''
path_finding: 默认
buy_only_priority: true
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@ resonium_priority:
- 决斗
- 闪避
- 能量
- 通用
- 诡术 华丽手杖
- 邦布 鲨牙布
- 邦布 企鹅布
auto_battle: 专属配队-艾莲
event_priority:
- ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ resonium_priority:
- 闪避
- 决斗
- 能量
- 通用
- 诡术 催眠怀表
- 诡术 魔术手套
- 诡术 华丽手杖
- 邦布 共鸣布
- 邦布 恶魔布
auto_battle: 击破站场-强攻速切
event_priority:
- ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,8 +333,7 @@ def _on_name_changed(self, value: str) -> None:
if self.chosen_config is None:
return

self.chosen_config.module_name = value
self.chosen_config.save()
self.chosen_config.update_module_name(value)

def _on_buy_only_priority_changed(self, value: bool):
if self.chosen_config is None:
Expand Down
13 changes: 11 additions & 2 deletions src/zzz_od/hollow_zero/hollow_zero_challenge_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,7 @@ def copy_new(self) -> None:
:return:
"""
self.module_name = self.module_name + '_copy'
if self.is_sample:
self.old_module_name = self.module_name
self.old_module_name = self.module_name
self.remove_sample()

def remove_sample(self) -> None:
Expand All @@ -46,6 +45,16 @@ def remove_sample(self) -> None:
self._sample = False
self.file_path = self._get_yaml_file_path()

def update_module_name(self, value: str) -> None:
"""
更新模块名称
:param value: 新名字
"""
self.module_name = value
self._sample = False

self.save()

def save(self) -> None:
if self.old_module_name != self.module_name:
# 删除旧文件
Expand Down

0 comments on commit 2314363

Please sign in to comment.