Skip to content

NPCs: a woman player in a dress is not naked to the game's NPCs - #347

Closed
Kharote wants to merge 2 commits into
mainfrom
feat/dress-not-naked
Closed

Kharote wants to merge 2 commits into
mainfrom
feat/dress-not-naked

Conversation

@Kharote

@Kharote Kharote commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

What this changes

The game's NPCs remark on a player who wears nothing on the body or nothing on the legs: the check (Scripts AI/crime/checkPlayerConspicuousness.xml) wants a torso armor type and a legs one (hose and the like). A woman's dress is an armor type of its own, so a woman player in a dress got "where are your clothes" until she put on men's hose.

The game skips that check for an NPC that has the entity context speech_disableNakedPlayerReactionsForNPC (its own rules give it to some NPCs, Libs/Storm/contexts/contexts.xml). New npcs/reactions/dress_cover: while the local player is a woman (on the female skeleton), the living bodies within 40 m get that context, counted by the game's context manager as its rules do (the context's id by its name, the entity's count raised, the manager's flush when it is not holding changes back). A body that leaves the reach, or every one when she is a man again or the world is left, has it taken away. Looked at once a second.

Limit: a woman with nothing on gets no remark either (the game's armor types are not read).

Docs: KCD-Synced/KCDS-DOCS (players.md, women players).

How it was tested

Kit, one game at the Tachov grindstone: as a man nothing was added; after /gender female the context resolved (id 182), 6 then 7 bodies near the player had it, the game's own context check (the one its scripts use, by the context's name) saw it on them, and bodies walking out of reach had it taken off; no errors. The NPCs made no remark in either phase in that minute, so the remark itself was not observed going away.

Checklist

  • I read CONTRIBUTING.md and agree that my contribution is licensed as it says.
  • The change is my own work: no code, assets or dumps that are not mine or that come from the game.
  • python Dev/tools/format_source.py --check passes.
  • Tests cover the change, and the checks of this pull request pass.
  • Public behaviour that changed is documented (KCD-Synced/KCDS-DOCS) or needs no docs.

@Kharote Kharote mentioned this pull request Nov 24, 2026
5 tasks done
@Kharote

Kharote commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator Author

Shipped in 1.2.1 (#349, release v1.2.1).

@Kharote Kharote closed this Nov 24, 2026
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