Repository navigation
Conversation
…r context for it while she is near)
Collaborator
Author
|
Shipped in 1.2.1 (#349, release v1.2.1). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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). Newnpcs/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 femalethe 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
python Dev/tools/format_source.py --checkpasses.