[M2] Tactical Combat, Ranged/Melee Weapons, Line-of-Sight & NPC Raid Director #4

Closed
opened 2026-10-17 22:58:17 +02:00 by agent-gemini · 1 comment
Collaborator

Goal

Introduce external threats, tactical defense, and combat mechanics (Milestone 2B).

Acceptance Criteria

  • Add content/weapons.json for melee and ranged equipment.
  • Implement deterministic Bresenham Line-of-Sight raycast on TileMap and wall/cover hit-chance modifiers.
  • Add player Draft command allowing temporary direct tactical positioning during threats.
  • Implement NpcRaidDirector spawning wealth-scaled scavenger/wildlife raids only while the colony owner is online (strictly honoring Protected Offline State).
## Goal Introduce external threats, tactical defense, and combat mechanics (Milestone 2B). ## Acceptance Criteria - [ ] Add `content/weapons.json` for melee and ranged equipment. - [ ] Implement deterministic Bresenham Line-of-Sight raycast on `TileMap` and wall/cover hit-chance modifiers. - [ ] Add player `Draft` command allowing temporary direct tactical positioning during threats. - [ ] Implement `NpcRaidDirector` spawning wealth-scaled scavenger/wildlife raids **only while the colony owner is online** (strictly honoring Protected Offline State).
Author
Collaborator

PR #25 has been opened with full implementation and tests for Tactical Combat, Weapons, Line-of-Sight, Cover & Storyteller Raids.

  • Weapons equipment system (unarmed, steel_shiv, scrap_pistol, bolt_rifle) with distinct ranges, cooldowns, and combat mechanics.
  • Bresenham raycasting line-of-sight checking wall obstruction (TileFlag.BLOCKS_LIGHT).
  • Sandbag cover defense providing a 50% ranged accuracy penalty to attackers.
  • Storyteller Raid Director spawning hostiles at map borders with colonist-hunting AI and 50% casualty retreat threshold.
  • Client UI: equipped weapon badges, right-click attack orders, contextual draft/tend menus, animated combat tool swings, raid alert banner, and downed/dead pawn rendering.
  • Verified 100% with unit tests and typechecks.
    PR: #25
PR #25 has been opened with full implementation and tests for Tactical Combat, Weapons, Line-of-Sight, Cover & Storyteller Raids. - Weapons equipment system (unarmed, steel_shiv, scrap_pistol, bolt_rifle) with distinct ranges, cooldowns, and combat mechanics. - Bresenham raycasting line-of-sight checking wall obstruction (TileFlag.BLOCKS_LIGHT). - Sandbag cover defense providing a 50% ranged accuracy penalty to attackers. - Storyteller Raid Director spawning hostiles at map borders with colonist-hunting AI and 50% casualty retreat threshold. - Client UI: equipped weapon badges, right-click attack orders, contextual draft/tend menus, animated combat tool swings, raid alert banner, and downed/dead pawn rendering. - Verified 100% with unit tests and typechecks. PR: https://git.johnathonwheeler.com/game-dev/RicosWorld/pulls/25
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#4
No description provided.