Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement inattentive trait: inability to see if creatures surrounding player sees player #53597

Merged
merged 15 commits into from
Apr 18, 2022

Conversation

mkrutov
Copy link
Contributor

@mkrutov mkrutov commented Dec 19, 2021

Summary

Interface "add trait to hamper player's ability to judge creature's vision and intentions"

Purpose of change

I think that players being able to see if monsters sees them or not is quite powerful and after a brief discussion with players on discord awhile ago it was said that this would make a good challenge trait.

Describe the solution

If player chooses "Inattentive" trait during character creation, they loose the ability to see if monsters see them or not, as well as ability to judge critter's attitude/intent towards them.

Describe alternatives you've considered

n/a

Testing

Started a game, teleported to town, seen that monsters see me, debug-mutated the trait, seen that I don't know if monsters see me.

Additional context

There are two problems I don't really know from which side to tackle:
1) Tilesets - tilesets which support sees_you flag are a dead giveaway.
2) Hostility status. It seems that there is no easy way of changing only the UI, so I'd like to hear suggestions on this.

There are also two one minor problems I don't really know how to solve:
1) Trait name. Unattentive is OKish for non-english-native, but probably somebody would come up with a better name.
2) Trait cost. I don't really know if 2 points is a good spot, as on one hand it isn't all that limiting, on the other - many players, me included, rely on this information during raiding quite heavily.

src/character.cpp Outdated Show resolved Hide resolved
src/game.cpp Outdated Show resolved Hide resolved
src/monster.cpp Outdated Show resolved Hide resolved
src/monster.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@bombasticSlacks bombasticSlacks left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm pretty sure these need cleaned up too

src/monster.cpp Outdated Show resolved Hide resolved
src/monster.cpp Outdated Show resolved Hide resolved
src/monster.cpp Outdated Show resolved Hide resolved
@GoLoT
Copy link
Contributor

GoLoT commented Dec 19, 2021

if( sees_player ) {

This needs to check for the trait too, to prevent drawing the visibility (!) marker on monsters.

@Terrorforge
Copy link
Contributor

"Unattentive" isn't really a term that anyone uses. The word you are looking for is "Inattentive"

@mkrutov
Copy link
Contributor Author

mkrutov commented Dec 19, 2021

I've renamed it to inattentive, updated tiles bits and implemented Unknown status for shift+v menu(creature list). There is one problem with creature list and I'm unsure what exactly is causing this problem: see screenshot
Screenshot_20211219_230438
.

@mkrutov
Copy link
Contributor Author

mkrutov commented Dec 19, 2021

Nevermind, I see what is causing it.. sigh.

@mkrutov mkrutov changed the title Implement unattentive trait: inability to see if creatures surrounding player sees player Implement inattentive trait: inability to see if creatures surrounding player sees player Dec 19, 2021
@Maleclypse Maleclypse added the Mutations / Traits / Professions/ Hobbies Mutations / Traits / Professions/ Hobbies label Dec 20, 2021
@mkrutov
Copy link
Contributor Author

mkrutov commented Dec 20, 2021

LGTM analysis: C/C++ Failing after 72m — Analysis failed (could not build the base commit (579f907)) - unsure what do, this indicates some timeout in one of the tests.

@GoLoT
Copy link
Contributor

GoLoT commented Dec 21, 2021

LGTM analysis: C/C++ Failing after 72m — Analysis failed (could not build the base commit (579f907)) - unsure what do, this indicates some timeout in one of the tests.

It always times out, you can ignore that one.

@Zireael07
Copy link
Contributor

I think you messed something up in the PR - unrelated commits showing up!

@mkrutov
Copy link
Contributor Author

mkrutov commented Dec 23, 2021

I think you messed something up in the PR - unrelated commits showing up!

I've rebased it to target latest master, indeed its weird that this commits show up.

@mqrause
Copy link
Contributor

mqrause commented Jan 9, 2022

Not sure why this is missing the automated labels. You should probably rebase this to have it run the tests again. The labels would give it better visibility to get it merged.

@stale
Copy link

stale bot commented Mar 2, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. Please do not 'bump' or comment on this issue unless you are actively working on it. Stale issues, and stale issues that are closed are still considered.

@stale stale bot added the stale Closed for lack of activity, but still valid. label Mar 2, 2022
@stale stale bot removed the stale Closed for lack of activity, but still valid. label Mar 12, 2022
@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` [JSON] Changes (can be) made in JSON json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Mar 12, 2022
src/game.cpp Outdated Show resolved Hide resolved
Co-authored-by: Anton Burmistrov <[email protected]>
@github-actions github-actions bot added the Info / User Interface Game - player communication, menus, etc. label Apr 18, 2022
@I-am-Erk I-am-Erk merged commit 4743f58 into CleverRaven:master Apr 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
astyled astyled PR, label is assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions [C++] Changes (can be) made in C++. Previously named `Code` Info / User Interface Game - player communication, menus, etc. [JSON] Changes (can be) made in JSON json-styled JSON lint passed, label assigned by github actions Mutations / Traits / Professions/ Hobbies Mutations / Traits / Professions/ Hobbies
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants