bcsfe-wrapper-python 0.1.11__py3-none-any.whl → 0.1.13__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
@@ -71,6 +71,13 @@ class BCSFEWrapper:
71
71
  if cat: cat.unlock(self.save_file)
72
72
  def unlock_all_cats(self):
73
73
  for cat in self.save_file.cats.cats: cat.unlock(self.save_file)
74
+
75
+ # 新機能: 指定キャラ削除(未解放に戻す)
76
+ def remove_cats(self, cat_ids: List[int]):
77
+ for cid in cat_ids:
78
+ cat = self.save_file.cats.get_cat_by_id(cid)
79
+ if cat: cat.set_unlocked(False)
80
+
74
81
  def upgrade_cats(self, cat_ids: List[int], base: int = 19, plus: int = 0):
75
82
  for cid in cat_ids:
76
83
  cat = self.save_file.cats.get_cat_by_id(cid)
@@ -123,28 +130,54 @@ class BCSFEWrapper:
123
130
 
124
131
  def unlock_aku_realm(self): edits.aku_realm.unlock_aku_realm(self.save_file)
125
132
 
126
- # 新機能: メダル全解放
127
133
  def unlock_all_medals(self):
128
134
  for i in range(len(self.save_file.medals.medals)):
129
135
  self.save_file.medals.medals[i] = True
130
136
 
131
- # 新機能: ログインボーナス・スタンプ全取得
132
137
  def claim_all_stamps(self):
133
138
  for stamp in self.save_file.stamps.stamps:
134
139
  stamp.received = True
135
140
  stamp.current_stamp = stamp.total_stamps
136
141
 
137
- # 新機能: ガマトト全隊員レジェンド化
138
142
  def legend_all_gamatoto_members(self):
139
143
  members_name = core.core_data.get_gamatoto_members_name(self.save_file)
140
- # レジェンド(カリスマ)隊員のIDリストを取得 (rarity 2がレジェンド)
141
144
  legend_ids = [m.member_id for m in members_name.members if m.rarity == 2]
142
145
  if not legend_ids: return
143
-
144
- # 現在の隊員枠をすべてレジェンド隊員で埋める
145
146
  for helper in self.save_file.gamatoto.helpers.helpers:
146
147
  helper.id = random.choice(legend_ids)
147
148
 
149
+ def complete_all_treasures(self, groups: List[int] = [0, 1, 2]):
150
+ for group_id in groups:
151
+ start, end = group_id * 3, (group_id + 1) * 3
152
+ for c_id in range(start, end):
153
+ if c_id < len(self.save_file.story.chapters):
154
+ chapter = self.save_file.story.chapters[c_id]
155
+ for stage in chapter.stages: stage.treasure = 3
156
+
157
+ def max_all_upgrades(self):
158
+ for upgrade in self.save_file.upgrades.upgrades:
159
+ upgrade.base = upgrade.max_base
160
+ upgrade.plus = upgrade.max_plus
161
+
162
+ # 新機能: 施設レベルの個別指定
163
+ def edit_upgrade_level(self, upgrade_id: int, base: Optional[int] = None, plus: Optional[int] = None):
164
+ """
165
+ 0:にゃんこ砲攻撃力, 1:射程, 2:チャージ, 3:働きネコ効率, 4:お財布, 5:お城体力, 6:研究, 7:会計, 8:勉強, 9:統率力
166
+ """
167
+ if upgrade_id < len(self.save_file.upgrades.upgrades):
168
+ upgrade = self.save_file.upgrades.upgrades[upgrade_id]
169
+ if base is not None: upgrade.base = base
170
+ if plus is not None: upgrade.plus = plus
171
+
172
+ def instant_complete_activities(self):
173
+ self.save_file.gamatoto.expedition.remaining_time = 0
174
+ self.save_file.ototo.developing_remaining_time = 0
175
+
176
+ def max_all_talents(self):
177
+ for cat in self.save_file.cats.get_unlocked_cats():
178
+ for talent in cat.talents:
179
+ talent.level = talent.max_level
180
+
148
181
  def unban(self): self.save_file.show_ban_message = self.save_file.banned = False
149
182
  def get_inquiry_code(self) -> str: return self.save_file.inquiry_code
150
183
  def edit_inquiry_code(self, new_code: str): self.save_file.inquiry_code = new_code
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: bcsfe-wrapper-python
3
- Version: 0.1.11
3
+ Version: 0.1.13
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=w-RPCSP7tOXgIK94afLYkIOWP2XI0CE1LvE7ejGgkNs,8021
2
+ bcsfe_wrapper/wrapper.py,sha256=1drmazIk7EoFs6jY7Bwim3YMJr3LlPWZdcBxv-LqZdU,9414
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.11.dist-info/METADATA,sha256=HYfZHivxKdoxTKyeNlWeNEUcxCr1CGxr_Yz0rfjgrv4,4327
202
- bcsfe_wrapper_python-0.1.11.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
203
- bcsfe_wrapper_python-0.1.11.dist-info/top_level.txt,sha256=kqyMKpAdNg39_kGGtqsxOSLPIb-qx7R1mQj1hReUsYM,14
204
- bcsfe_wrapper_python-0.1.11.dist-info/RECORD,,
201
+ bcsfe_wrapper_python-0.1.13.dist-info/METADATA,sha256=8yJxJbtfS66VABuyJwqBUSOMofW34oAycq623rMI_rw,4327
202
+ bcsfe_wrapper_python-0.1.13.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
203
+ bcsfe_wrapper_python-0.1.13.dist-info/top_level.txt,sha256=kqyMKpAdNg39_kGGtqsxOSLPIb-qx7R1mQj1hReUsYM,14
204
+ bcsfe_wrapper_python-0.1.13.dist-info/RECORD,,