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

No longer able to wear already worn items #76879

Merged
merged 1 commit into from
Oct 12, 2024

Conversation

Night-Pryanik
Copy link
Contributor

Summary

Bugfixes "No longer able to wear already worn items"

Purpose of change

If you open examine menu of already worn item and select Wear (or press W), you will try to wear it again, spending time and seeing You put on your <item> despite nothing actually happens.

I think that #45290 made this stuff work wrong.

Describe the solution

Made declaration of to_wear reference in Character::wear.

Describe alternatives you've considered

None.

Testing

Opened examination menu of already worn T-shirt, tried to wear it again. Got You are already wearing that. message, and no time was spent.
Also just in case tried to wear someone else's items (with stealing check), tried to wear items not already worn, tried to wear wielded items, tried to wear items on the ground, tried to wear items with open Pickup menu. No errors, items were worn as they should.

Additional context

My understanding of all this reference and pointer stuff is very superficial, so I may be very wrong on proposed solution.

@Night-Pryanik Night-Pryanik added Items / Item Actions / Item Qualities Items and how they work and interact <Bugfix> This is a fix for a bug (or closes open issue) labels Oct 7, 2024
@github-actions github-actions bot added [C++] Changes (can be) made in C++. Previously named `Code` astyled astyled PR, label is assigned by github actions json-styled JSON lint passed, label assigned by github actions BasicBuildPassed This PR builds correctly, label assigned by github actions labels Oct 7, 2024
@Maleclypse Maleclypse merged commit e177a96 into CleverRaven:master Oct 12, 2024
28 checks passed
@Night-Pryanik Night-Pryanik deleted the unlimited-wear branch October 12, 2024 02:51
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 <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` Items / Item Actions / Item Qualities Items and how they work and interact json-styled JSON lint passed, label assigned by github actions
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants