bcsfe-wrapper-python 0.1.12__py3-none-any.whl → 0.1.14__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
bcsfe_wrapper/wrapper.py CHANGED
@@ -26,7 +26,14 @@ class BCSFEWrapper:
26
26
  core.set_log_path(data_folder.add("log.txt"))
27
27
  core.core_data.init_data()
28
28
  core.core_data.config.set(core.ConfigKey.STRICT_UPGRADE, False)
29
- core.core_data.config.set(core.ConfigKey.UPDATE_TO_BETAS, False)
29
+ try:
30
+ core.core_data.config.set(core.ConfigKey.UPDATE_TO_BETAS, False)
31
+ except AttributeError:
32
+ # 最新バージョンではUPDATE_TO_BETAに変更されている可能性がある
33
+ try:
34
+ core.core_data.config.set(core.ConfigKey.UPDATE_TO_BETA, False)
35
+ except (AttributeError, ValueError):
36
+ pass
30
37
  core.print_config_err = False
31
38
 
32
39
  @classmethod
@@ -71,6 +78,13 @@ class BCSFEWrapper:
71
78
  if cat: cat.unlock(self.save_file)
72
79
  def unlock_all_cats(self):
73
80
  for cat in self.save_file.cats.cats: cat.unlock(self.save_file)
81
+
82
+ # 新機能: 指定キャラ削除(未解放に戻す)
83
+ def remove_cats(self, cat_ids: List[int]):
84
+ for cid in cat_ids:
85
+ cat = self.save_file.cats.get_cat_by_id(cid)
86
+ if cat: cat.set_unlocked(False)
87
+
74
88
  def upgrade_cats(self, cat_ids: List[int], base: int = 19, plus: int = 0):
75
89
  for cid in cat_ids:
76
90
  cat = self.save_file.cats.get_cat_by_id(cid)
@@ -139,11 +153,7 @@ class BCSFEWrapper:
139
153
  for helper in self.save_file.gamatoto.helpers.helpers:
140
154
  helper.id = random.choice(legend_ids)
141
155
 
142
- # 新機能: お宝コンプリート
143
156
  def complete_all_treasures(self, groups: List[int] = [0, 1, 2]):
144
- """
145
- 0: 日本編, 1: 未来編, 2: 宇宙編
146
- """
147
157
  for group_id in groups:
148
158
  start, end = group_id * 3, (group_id + 1) * 3
149
159
  for c_id in range(start, end):
@@ -151,21 +161,25 @@ class BCSFEWrapper:
151
161
  chapter = self.save_file.story.chapters[c_id]
152
162
  for stage in chapter.stages: stage.treasure = 3
153
163
 
154
- # 新機能: 施設レベル最大化
155
164
  def max_all_upgrades(self):
156
- """
157
- にゃんこ砲、お城、研究、会計などの施設レベルをすべて最大にします。
158
- """
159
165
  for upgrade in self.save_file.upgrades.upgrades:
160
166
  upgrade.base = upgrade.max_base
161
167
  upgrade.plus = upgrade.max_plus
162
168
 
163
- # 新機能: ガマトト・お城開発の即時完了
169
+ # 新機能: 施設レベルの個別指定
170
+ def edit_upgrade_level(self, upgrade_id: int, base: Optional[int] = None, plus: Optional[int] = None):
171
+ """
172
+ 0:にゃんこ砲攻撃力, 1:射程, 2:チャージ, 3:働きネコ効率, 4:お財布, 5:お城体力, 6:研究, 7:会計, 8:勉強, 9:統率力
173
+ """
174
+ if upgrade_id < len(self.save_file.upgrades.upgrades):
175
+ upgrade = self.save_file.upgrades.upgrades[upgrade_id]
176
+ if base is not None: upgrade.base = base
177
+ if plus is not None: upgrade.plus = plus
178
+
164
179
  def instant_complete_activities(self):
165
180
  self.save_file.gamatoto.expedition.remaining_time = 0
166
181
  self.save_file.ototo.developing_remaining_time = 0
167
182
 
168
- # 新機能: 本能全解放
169
183
  def max_all_talents(self):
170
184
  for cat in self.save_file.cats.get_unlocked_cats():
171
185
  for talent in cat.talents:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bcsfe-wrapper-python
3
- Version: 0.1.12
3
+ Version: 0.1.14
4
4
  Summary: A Python wrapper for BCSFE-Python to easily interact with Battle Cats save files.
5
5
  Home-page: https://github.com/fieryhenry/BCSFE-Python
6
6
  Author: Manus AI
@@ -1,5 +1,5 @@
1
1
  bcsfe_wrapper/__init__.py,sha256=o2LbyVJjuRV1gap8wDbsv39kEUJM1rt8Lq49u1RYYXA,268
2
- bcsfe_wrapper/wrapper.py,sha256=-zUiyEK48y82lmcagU7ccy2EyHSQ424BuTuD_vRM8Ec,8980
2
+ bcsfe_wrapper/wrapper.py,sha256=1h0xNylAdNTdwVHjtTxHrz7gDT10BcpVQAhm0e8axcQ,9727
3
3
  bcsfe_wrapper/bcsfe/__init__.py,sha256=vCHjSoJq5u684HLQXahhtA64MZWffNHFdhweP7RM0f4,144
4
4
  bcsfe_wrapper/bcsfe/__main__.py,sha256=Dam14Fv6L-tRRufIkIRpr69dM0b2ybU1eALJxIw_eFI,2091
5
5
  bcsfe_wrapper/bcsfe/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -198,7 +198,7 @@ bcsfe_wrapper/bcsfe/files/locales/vi/edits/treasures.properties,sha256=U9uKsF4y0
198
198
  bcsfe_wrapper/bcsfe/files/locales/vi/edits/user_rank.properties,sha256=FcldhzKM0UmuhmGzI3dGzxstuKcw-t-gkbmKLZT4VKg,603
199
199
  bcsfe_wrapper/bcsfe/files/themes/default.json,sha256=w8eqqd9ATIFwUcvOWTdJjyd1T3LGgUm3iVkJhT5wfEo,392
200
200
  bcsfe_wrapper/bcsfe/files/themes/discord.json,sha256=W1dtEev6tap_waHOxvSqENDcMRA9jfBvjW7t-ssdGs4,370
201
- bcsfe_wrapper_python-0.1.12.dist-info/METADATA,sha256=fj7xUjbulMREYK4VgMoFtNnK5ORhoZ-Kvnf0oT-C3fs,4327
202
- bcsfe_wrapper_python-0.1.12.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
203
- bcsfe_wrapper_python-0.1.12.dist-info/top_level.txt,sha256=kqyMKpAdNg39_kGGtqsxOSLPIb-qx7R1mQj1hReUsYM,14
204
- bcsfe_wrapper_python-0.1.12.dist-info/RECORD,,
201
+ bcsfe_wrapper_python-0.1.14.dist-info/METADATA,sha256=MAzwxSA81C5kpS_hgEjlB84Jf_Q1XsHdF_QEytwr5IA,4327
202
+ bcsfe_wrapper_python-0.1.14.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
203
+ bcsfe_wrapper_python-0.1.14.dist-info/top_level.txt,sha256=kqyMKpAdNg39_kGGtqsxOSLPIb-qx7R1mQj1hReUsYM,14
204
+ bcsfe_wrapper_python-0.1.14.dist-info/RECORD,,