Skip to content

epic: World Director -- random events system #129

Description

@abix-

Type

  • epic (initiative tracker)

Spec Doc

docs/specs/world-director.md

Goal

An invisible World Director AI that periodically triggers random events -- natural disasters, plagues, blessings, raids. All tuning is player-configurable with Easy/Normal/Hard presets. Events target all towns fairly (player, AI builder, AI raider).

MVP Events (5)

Event Category Effect
Fire Natural Damage buildings in radius, spread to adjacent
Earthquake Natural Damage all buildings in radius
Blight Plague Kill farms in radius
Bounty Blessing Bonus food+gold to town
Raid surge Political Spawn extra hostiles

Slice Issues

  • Slice 1: EventDef registry + WorldDirectorSettings + settings UI presets
  • Slice 2: World director system + ActiveEvent + warning + notifications
  • Slice 3: Fire + Earthquake effects
  • Slice 4: Blight + Bounty effects
  • Slice 5: Raid surge effect

Current Focus

Spec written. Waiting for human review before slicing.

Acceptance Criteria

  • Spec doc written and merged (docs/specs/world-director.md)
  • EventDef registry follows k8s pattern (CRD + etcd + CR + Controller)
  • Settings UI with Easy/Normal/Hard presets + Custom sliders
  • All 5 MVP events implemented and functional
  • Events target all towns fairly
  • Save/load preserves settings and active events
  • Grace period (no events in first 5 game-days)
  • Max 1 active disaster at a time
  • Softlock protection (don't destroy last farm/spawner)

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew functionality, behavior changes, or larger feature workneeds-humanagent work done, waiting for human action (merge/close/decision)

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions