Skip to content

Expand WORKER_NAMES or add unique name generation #227

Description

@itsmiso-ai

Problem

scripts/constants.gd defines only two worker names:

const WORKER_NAMES := ["Jun", "Mara"]

recruit_worker() in scripts/main.gd (line 1080) cycles through them by index:

var next_index: int = current % len(WORKER_NAMES)
var new_worker := {
    "name": WORKER_NAMES[next_index],
    ...
}

With BASE_WORKER_CAP = 2 and each hut adding +2, even one hut raises the cap to 4. Workers cycle: Jun, Mara, Jun, Mara. Two workers named "Jun" are indistinguishable in the UI, the event log, and WORKER_BADGE_COLORS (which keys on name).

Fix

Options (pick one):

  1. Expand the list — add 8-10 more names to WORKER_NAMES and the corresponding badge colors to WORKER_BADGE_COLORS
  2. Unique suffix — append a number or roman numeral when cycling: "Jun II", "Mara II"
  3. Random from expanded pool — pick randomly from a larger list, with collision avoidance

Option 1 is simplest and keeps the deterministic cycling. The pool needs to cover at least the max realistic worker count (~8-10 with multiple huts).

Acceptance criteria

  • No two active workers share the same name
  • WORKER_BADGE_COLORS has an entry for every name in WORKER_NAMES
  • Names fit the game's tone (short, casual, cozy)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions