Skip to content

Latest commit

 

History

History
119 lines (91 loc) · 3.6 KB

File metadata and controls

119 lines (91 loc) · 3.6 KB

Healing Workflow Explanation

Understanding the Game Mechanics

Your Goal

Heal ONE troop at a time to create multiple help requests for alliance members. This allows them to complete their "help alliance members" quests.

Game Screen: Infirmary

The Infirmary screen shows:

  • List of wounded troops (Vulcan, Pulverizer, Lonewolf, etc.)
  • + button next to each troop type
  • Three buttons at bottom:
    • "Select All" - Adds all wounded troops (DON'T use this)
    • "Heal Now" - Instant healing with items/gems (DON'T use this)
    • "Heal" - Regular timed healing that creates help requests (USE THIS)

Updated Workflow (per troop)

Step 1: Add ONE Troop to Queue

Click the + button once on any troop type

  • Adds exactly 1 troop to the healing queue
  • Example: Click + next to "Vulcan" → adds 1 Vulcan to queue

Step 2: Start Healing

Click the "Heal" button at the bottom (the dark red one with timer)

  • Starts the healing process
  • Creates a help request automatically
  • Alliance members can now help with this healing

Step 3: Repeat

After the current healing is queued, repeat for next troop:

  • Wait for UI to update
  • Click + on another (or same) troop type
  • Click Heal again
  • Creates another help request

Why This Works

Alliance Help Mechanics:

  • Each healing action creates a separate help request
  • Alliance members can help with each request
  • More requests = more opportunities for alliance members to complete quests
  • Instead of healing 100 troops at once (1 help request), you create 100 separate help requests

Code Changes

Before (Old Code)

# Old workflow (unclear purpose):
click_plus_button()      # Adds troops (how many?)
click_heal_button()      # Starts healing
click_help_button()      # What does this do?

After (New Code)

# New workflow (clear and documented):
for each_troop in times:
    click_plus_button()   # Adds 1 troop
    click_heal_button()   # Starts healing + creates help request
    wait()                # Wait for UI to update
    # Repeat

What Was Removed

Removed: click_help_button()

The old code had a "help button" click, but this doesn't seem necessary because:

  1. Help requests are created automatically when you start healing
  2. There's no visible "help" button on the Infirmary screen
  3. The help button might have been for a different workflow

If you need the help button back, let me know what it does and where it appears!

Testing the New Workflow

Test with 3 Troops

run_bot.bat --action heal --times 3

Expected Result:

  • Adds 1 troop → Starts healing → Help request created
  • Wait 4 seconds
  • Adds 1 troop → Starts healing → Help request created
  • Wait 4 seconds
  • Adds 1 troop → Starts healing → Help request created
  • Total: 3 separate help requests for alliance

Current Unknowns

  1. Does the + button add exactly 1 troop?

    • Need to verify in game
    • May need to adjust if it adds more
  2. Is the "Heal" button image correct?

    • Current image: heal.png
    • Found at bottom of screen (confidence 0.5)
    • Need to verify it's clicking the right button (timed Heal, not Heal Now)
  3. Do we need the help button?

    • Removed from workflow
    • Add back if needed

Next Steps

  1. Test with debug mode: debug_healing.bat → Choose option 5 → Enter 1
  2. Watch what happens in the game
  3. Verify:
    • Does it click + once?
    • Does it click the correct Heal button?
    • Does it create a help request?
  4. Adjust if needed based on observations

Questions? Issues? Let me know what happens when you test it!