bcsfe-wrapper-python 0.1.9__py3-none-any.whl → 0.1.11__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 +30 -2
- {bcsfe_wrapper_python-0.1.9.dist-info → bcsfe_wrapper_python-0.1.11.dist-info}/METADATA +1 -1
- {bcsfe_wrapper_python-0.1.9.dist-info → bcsfe_wrapper_python-0.1.11.dist-info}/RECORD +5 -5
- {bcsfe_wrapper_python-0.1.9.dist-info → bcsfe_wrapper_python-0.1.11.dist-info}/WHEEL +0 -0
- {bcsfe_wrapper_python-0.1.9.dist-info → bcsfe_wrapper_python-0.1.11.dist-info}/top_level.txt +0 -0
bcsfe_wrapper/wrapper.py
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import os
|
|
2
2
|
import sys
|
|
3
|
+
import random
|
|
3
4
|
from typing import Any, List, Optional, Tuple, Dict, Union
|
|
4
5
|
|
|
5
6
|
from bcsfe import core
|
|
@@ -56,6 +57,7 @@ class BCSFEWrapper:
|
|
|
56
57
|
def edit_legend_tickets(self, amount: int): self._set_val("legend_tickets", amount)
|
|
57
58
|
def edit_np(self, amount: int): self._set_val("np", amount)
|
|
58
59
|
def edit_leadership(self, amount: int): self._set_val("leadership", amount)
|
|
60
|
+
|
|
59
61
|
def edit_battle_items(self, amount: int):
|
|
60
62
|
for item in self.save_file.battle_items.items: item.amount = amount
|
|
61
63
|
def edit_catseyes(self, amount: int):
|
|
@@ -90,7 +92,6 @@ class BCSFEWrapper:
|
|
|
90
92
|
|
|
91
93
|
def clear_tutorial(self): edits.clear_tutorial.clear_tutorial(self.save_file, False)
|
|
92
94
|
|
|
93
|
-
# 章別クリア機能
|
|
94
95
|
def _clear_chapter_group(self, chapters_obj, chapters_to_clear: List[int]):
|
|
95
96
|
for c_id in chapters_to_clear:
|
|
96
97
|
if c_id < len(chapters_obj.chapters):
|
|
@@ -101,7 +102,6 @@ class BCSFEWrapper:
|
|
|
101
102
|
def clear_empire_of_cats(self, chapters: List[int] = [0, 1, 2]):
|
|
102
103
|
self._clear_chapter_group(self.save_file.story.chapters, chapters)
|
|
103
104
|
def clear_into_the_future(self, chapters: List[int] = [0, 1, 2]):
|
|
104
|
-
# 未来編のインデックス調整が必要な場合はここで
|
|
105
105
|
self._clear_chapter_group(self.save_file.story.chapters, [c + 3 for c in chapters])
|
|
106
106
|
def clear_cats_of_the_cosmos(self, chapters: List[int] = [0, 1, 2]):
|
|
107
107
|
self._clear_chapter_group(self.save_file.story.chapters, [c + 6 for c in chapters])
|
|
@@ -116,7 +116,35 @@ class BCSFEWrapper:
|
|
|
116
116
|
def clear_true_legends(self, max_star: int = 1): self._clear_legend_group(self.save_file.uncanny_legends, max_star)
|
|
117
117
|
def clear_zero_legends(self, max_star: int = 1): self._clear_legend_group(self.save_file.zero_legends, max_star)
|
|
118
118
|
|
|
119
|
+
def clear_zombie_outbreaks(self, chapters: List[int] = [0, 1, 2, 3, 4, 5, 6, 7, 8]):
|
|
120
|
+
for chapter_id in chapters:
|
|
121
|
+
for stage_id in range(48):
|
|
122
|
+
self.save_file.outbreaks.clear_outbreak(chapter_id, stage_id, True)
|
|
123
|
+
|
|
119
124
|
def unlock_aku_realm(self): edits.aku_realm.unlock_aku_realm(self.save_file)
|
|
125
|
+
|
|
126
|
+
# 新機能: メダル全解放
|
|
127
|
+
def unlock_all_medals(self):
|
|
128
|
+
for i in range(len(self.save_file.medals.medals)):
|
|
129
|
+
self.save_file.medals.medals[i] = True
|
|
130
|
+
|
|
131
|
+
# 新機能: ログインボーナス・スタンプ全取得
|
|
132
|
+
def claim_all_stamps(self):
|
|
133
|
+
for stamp in self.save_file.stamps.stamps:
|
|
134
|
+
stamp.received = True
|
|
135
|
+
stamp.current_stamp = stamp.total_stamps
|
|
136
|
+
|
|
137
|
+
# 新機能: ガマトト全隊員レジェンド化
|
|
138
|
+
def legend_all_gamatoto_members(self):
|
|
139
|
+
members_name = core.core_data.get_gamatoto_members_name(self.save_file)
|
|
140
|
+
# レジェンド(カリスマ)隊員のIDリストを取得 (rarity 2がレジェンド)
|
|
141
|
+
legend_ids = [m.member_id for m in members_name.members if m.rarity == 2]
|
|
142
|
+
if not legend_ids: return
|
|
143
|
+
|
|
144
|
+
# 現在の隊員枠をすべてレジェンド隊員で埋める
|
|
145
|
+
for helper in self.save_file.gamatoto.helpers.helpers:
|
|
146
|
+
helper.id = random.choice(legend_ids)
|
|
147
|
+
|
|
120
148
|
def unban(self): self.save_file.show_ban_message = self.save_file.banned = False
|
|
121
149
|
def get_inquiry_code(self) -> str: return self.save_file.inquiry_code
|
|
122
150
|
def edit_inquiry_code(self, new_code: str): self.save_file.inquiry_code = new_code
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
bcsfe_wrapper/__init__.py,sha256=o2LbyVJjuRV1gap8wDbsv39kEUJM1rt8Lq49u1RYYXA,268
|
|
2
|
-
bcsfe_wrapper/wrapper.py,sha256=
|
|
2
|
+
bcsfe_wrapper/wrapper.py,sha256=w-RPCSP7tOXgIK94afLYkIOWP2XI0CE1LvE7ejGgkNs,8021
|
|
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.
|
|
202
|
-
bcsfe_wrapper_python-0.1.
|
|
203
|
-
bcsfe_wrapper_python-0.1.
|
|
204
|
-
bcsfe_wrapper_python-0.1.
|
|
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,,
|
|
File without changes
|
{bcsfe_wrapper_python-0.1.9.dist-info → bcsfe_wrapper_python-0.1.11.dist-info}/top_level.txt
RENAMED
|
File without changes
|