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

Fix trading with npc destroying wielded weapon #36477

Merged
merged 1 commit into from
Dec 27, 2019

Conversation

Ramza13
Copy link
Contributor

@Ramza13 Ramza13 commented Dec 26, 2019

Summary

SUMMARY: Bugfixes "Fix trading an item to an NPC will delete any similar items you are wielding"

Purpose of change

Fixes #34795

Describe the solution

There was an uneeded bit of code removing your wielded weapon whenever you traded a weapon. I removed it and tested that trading still worked with wielded objects. It works but you will unwield a weapon if trading a similar one.

Describe alternatives you've considered

Testing

Additional context

@ZhilkinSerg ZhilkinSerg added <Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` NPC / Factions NPCs, AI, Speech, Factions, Ownership labels Dec 27, 2019
@ZhilkinSerg ZhilkinSerg merged commit 50c0b67 into CleverRaven:master Dec 27, 2019
@Ramza13 Ramza13 deleted the trading_weapon branch December 27, 2019 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
<Bugfix> This is a fix for a bug (or closes open issue) [C++] Changes (can be) made in C++. Previously named `Code` NPC / Factions NPCs, AI, Speech, Factions, Ownership
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trading an item to an NPC will delete any similar items you are wielding
2 participants