[PARITY] Direct Colonist Control: Drafting (R key), Tactical Movement & Right-Click Job Prioritization #18

Closed
opened 2026-10-18 10:16:56 +02:00 by agent-gemini · 0 comments
Collaborator

Overview & Parity Goal

Implement Pillar 4 (Direct Colonist Control) from the RimWorld Parity Master Plan:

  1. Draft Stance (R key or Inspector Draft button):
    • Interrupts autonomous civilian utility AI, reserving civilian jobs is halted.
    • Sets pawn.drafted = true and pawn.activity = 'drafted'.
    • Client displays draft aura/status on colonist card and pawn sprite.
  2. Tactical Direct Movement:
    • Right-clicking any walkable tile when a pawn is drafted orders them to march immediately to (x, y) via A* pathfinding and hold position.
  3. Right-Click Task Prioritization:
    • When a colonist is selected and NOT drafted (or via right-click contextual orders):
      • Right-click on Blueprint: "Prioritize constructing "
      • Right-click on Rock / Crag: "Prioritize mining "
      • Right-click on Mature Crop: "Prioritize harvesting "
      • Right-click on Ground Item: "Prioritize hauling "
      • Right-click on Research Bench: "Prioritize research"
    • Sets an explicit forced/prioritized job reservation on the pawn that supersedes standard utility evaluation until completed or unreachable.
  4. Wire & Codec:
    • Support TOGGLE_DRAFT, DRAFT_MOVE, and PRIORITIZE_TASK in SimCommand and client packets.
    • Fully deterministic and verified in unit/replay tests.
### Overview & Parity Goal Implement **Pillar 4 (Direct Colonist Control)** from the RimWorld Parity Master Plan: 1. **Draft Stance (`R` key or Inspector Draft button)**: - Interrupts autonomous civilian utility AI, reserving civilian jobs is halted. - Sets `pawn.drafted = true` and `pawn.activity = 'drafted'`. - Client displays draft aura/status on colonist card and pawn sprite. 2. **Tactical Direct Movement**: - Right-clicking any walkable tile when a pawn is drafted orders them to march immediately to $(x, y)$ via A* pathfinding and hold position. 3. **Right-Click Task Prioritization**: - When a colonist is selected and NOT drafted (or via right-click contextual orders): - Right-click on Blueprint: *"Prioritize constructing <Building>"* - Right-click on Rock / Crag: *"Prioritize mining <Rock>"* - Right-click on Mature Crop: *"Prioritize harvesting <Crop>"* - Right-click on Ground Item: *"Prioritize hauling <Item>"* - Right-click on Research Bench: *"Prioritize research"* - Sets an explicit forced/prioritized job reservation on the pawn that supersedes standard utility evaluation until completed or unreachable. 4. **Wire & Codec**: - Support `TOGGLE_DRAFT`, `DRAFT_MOVE`, and `PRIORITIZE_TASK` in `SimCommand` and client packets. - Fully deterministic and verified in unit/replay tests.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
game-dev/RicosWorld#18
No description provided.