Skip to content

feat: add randomized combat and frontier defenses - #27

Merged
prayujt merged 2 commits into
mainfrom
feat/randomized-battle-casualties
Aug 26, 2026
Merged

prayujt merged 2 commits into
mainfrom
feat/randomized-battle-casualties

Conversation

@prayujt

@prayujt prayujt commented Aug 26, 2026 •

Copy link
Copy Markdown
Collaborator

Outcome

  • replaces deterministic casualty carry with battle-seeded per-unit casualty rolls, preserving expected losses while allowing upset outcomes
  • adds upgradeable standalone watchtowers and forts on neutral land within a configurable settlement placement radius
  • requires one of the builders live armies to occupy the target tile when frontier construction begins
  • adds configurable, level-scaled watchtower vision and fort, town-center, and city-center defense bonuses
  • extends persistence, streaming, visibility, RPC contracts, generated clients, and game config for standalone structures

Initial balance

  • placement radius: 10 tiles from an owned settlement footprint
  • watchtower vision: 3 to 12 tiles across levels 1 to 10
  • fort defense: 5% to 50%
  • town-center defense: 10% to 55%
  • city-center defense: 15% to 60%

Eligible center and fort bonuses stack and use completed building levels. All values live in backend balance tables and are exposed through GetGameConfig.

Verification

  • go test ./...
  • go vet ./...
  • git diff --check

@prayujt
prayujt merged commit b757731 into main Aug 26, 2026
2 checks passed
@prayujt
prayujt deleted the feat/randomized-battle-casualties branch August 26, 2026 04:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant