1
0
mirror of https://gitee.com/sui-feng-cb/AzurLaneAutoScript1 synced 2026-03-12 16:47:03 +08:00

Merge pull request #1562 from SaiCateDoan/act

Fix: Wrong action point value of action point box
This commit is contained in:
LmeSzinc
2022-08-25 00:04:07 +08:00
committed by GitHub

View File

@@ -95,7 +95,7 @@ class ActionPointHandler(UI):
current = OCR_ACTION_POINT_REMAIN.ocr(self.device.image)
total = current
if self.config.OS_ACTION_POINT_BOX_USE:
total += np.sum(np.array(box) * (0, 20, 50, 200))
total += np.sum(np.array(box) * (0, 20, 50, 100))
oil = box[0]
logger.info(f'Action points: {current}({total}), oil: {oil}')