PVP
About 215 wordsLess than 1 minute
| Item | Value |
|---|---|
| Task | tasks/pvp.json |
| Pipeline | resource/base/pipeline/pvp.json |
Flow
Home → entry → battle UI → select opponent (custom: OCR 3 levels, pick lowest) → init count → challenge limit → start → begin combat (retry until in battle) → speed → loop → skip OCR → read result → exit → next fight or main.
SelectOpponent uses SelectPVPOpponent custom recognition to OCR 3 opponent slots and click the one with the lowest level. BeginCombat should retry if one click does nothing. Challenge limit ends the task. Automation does not guarantee wins.
Precondition
The task entry is PVP.CheckHomePage. The game should normally start on the main screen. If home recognition fails, the pipeline uses PVP.ReturnToHome to find and click the back button, then checks the home screen again; the task fails only if home still cannot be confirmed.
Acceptance checklist
After changing this task, verify in order:
- Opponent pick: three levels OCR correctly, lowest one is clicked
- One full battle end-to-end: home → battle UI → start → settle → back to battle UI
- Restart at any progress (in battle / settling / result screen) resumes or exits correctly
- Daily challenge limit reached: notifies and returns home
- Abnormal settlement (loss / disconnect) has a fallback path
- Full regression: runs together with other tasks (startup, claim, farm) without conflict
