Skip to content

Commit 2dd75ec

Browse files
authored
Merge pull request #238 from cc004/dev
fix
2 parents 949935a + 3cc1871 commit 2dd75ec

2 files changed

Lines changed: 12 additions & 3 deletions

File tree

autopcr/model/handlers.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,16 @@ async def update(self, mgr: datamgr, request):
762762
for reward in self.reward_info:
763763
mgr.update_inventory(reward)
764764

765+
@handles
766+
class SubStoryAisConfirmResponse(responses.SubStoryAisConfirmResponse):
767+
async def update(self, mgr: datamgr, request):
768+
for sub_story in mgr.event_sub_story[10136].sub_story_info_list:
769+
if sub_story.status == eEventSubStoryStatus.ADDED:
770+
sub_story.status = eEventSubStoryStatus.UNREAD
771+
for sub_story in mgr.event_sub_story[10137].sub_story_info_list:
772+
if sub_story.status == eEventSubStoryStatus.ADDED:
773+
sub_story.status = eEventSubStoryStatus.UNREAD
774+
765775
@handles
766776
class SubStorySkeConfirmResponse(responses.SubStorySkeConfirmResponse):
767777
async def update(self, mgr: datamgr, request):

autopcr/module/modules/unit.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -748,8 +748,7 @@ class unit_set_unique_equip_growth(UnitController):
748748

749749
async def do_task(self, client: pcrclient):
750750
self.client = client
751-
unit_id, unit_name = self.get_config('unit_set_unique_equip_growth_id').split(':')
752-
self.unit_id = int(unit_id)
751+
self.unit_id = self.get_config('unit_set_unique_equip_growth_id')
753752
await self.set_unique_growth_unit()
754753

755754
@description('支持全部角色,装备星级-1表示不穿装备,自动拉等级指当前等级不足以穿装备或提升技能等级,将会提升角色等级,自动拉品级指当前品级不足以装备专武时,会提升角色品级,自动专武1指开专武2未开专武1时自动开专武1,使用原矿指装备不足时用原矿补充'
@@ -1128,4 +1127,4 @@ async def do_task(self, client: pcrclient):
11281127
current_gold_num=self.client.data.get_mana(),
11291128
current_memory_piece_num=memory_inventory,
11301129
)
1131-
self._log(f"{self.unit_name}升星至{to_rarity}星")
1130+
self._log(f"{self.unit_name}升星至{to_rarity}星")

0 commit comments

Comments
 (0)