mirror of
https://github.com/LmeSzinc/StarRailCopilot.git
synced 2024-11-16 06:25:24 +00:00
Fix: Item wasn't added as walk result if item drops blessing, the curio effect
This commit is contained in:
parent
272f803d8c
commit
687e06b639
@ -177,6 +177,12 @@ class MapControl(Combat, AimDetectorMixin):
|
|||||||
if waypoint.early_stop:
|
if waypoint.early_stop:
|
||||||
return result
|
return result
|
||||||
if self.walk_additional():
|
if self.walk_additional():
|
||||||
|
# Clearing items may trigger additional popups
|
||||||
|
if attacked_item.started() and attacked_item.reached():
|
||||||
|
logger.info('Walk result add: item')
|
||||||
|
result.append('item')
|
||||||
|
if 'item' in waypoint.expected_end and waypoint.early_stop:
|
||||||
|
return result
|
||||||
attacked_enemy.clear()
|
attacked_enemy.clear()
|
||||||
attacked_item.clear()
|
attacked_item.clear()
|
||||||
continue
|
continue
|
||||||
@ -228,7 +234,7 @@ class MapControl(Combat, AimDetectorMixin):
|
|||||||
if attacked_item.started() and attacked_item.reached():
|
if attacked_item.started() and attacked_item.reached():
|
||||||
logger.info('Walk result add: item')
|
logger.info('Walk result add: item')
|
||||||
result.append('item')
|
result.append('item')
|
||||||
if waypoint.early_stop:
|
if 'item' in waypoint.expected_end and waypoint.early_stop:
|
||||||
return result
|
return result
|
||||||
if waypoint.interact_radius > 0:
|
if waypoint.interact_radius > 0:
|
||||||
if diff < waypoint.interact_radius:
|
if diff < waypoint.interact_radius:
|
||||||
|
Loading…
Reference in New Issue
Block a user