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

NPC should not wield integrated armor #78810

Merged

Conversation

osuphobia
Copy link
Contributor

@osuphobia osuphobia commented Dec 28, 2024

Summary

Bugfixes "NPC should not wield integrated armor"

Purpose of change

Fix #78780

Describe the solution

Add a flag_INTEGRATED check to can_wield, add can_wield check for NPC behavior.

Describe alternatives you've considered

Only add flag_INTEGRATED for NPC behavior.

Testing

NPC no longer wield integrated armor.
Also PC will see a failure msg about integrated armor in wield item menu.

Additional context

While testing this PR, I found that NPC never tries to attack with his bare hand, with or without this patch. Trying to tweak relevant functions resulting in infinite loop, so I'd leave it to somebody else to figure out.

@github-actions github-actions bot added NPC / Factions NPCs, AI, Speech, Factions, Ownership [C++] Changes (can be) made in C++. Previously named `Code` <Bugfix> This is a fix for a bug (or closes open issue) json-styled JSON lint passed, label assigned by github actions astyled astyled PR, label is assigned by github actions labels Dec 28, 2024
@osuphobia osuphobia changed the title Npc should not wield integrated armor NPC should not wield integrated armor Dec 28, 2024
@github-actions github-actions bot added the BasicBuildPassed This PR builds correctly, label assigned by github actions label Dec 29, 2024
@Maleclypse Maleclypse merged commit bfa9a04 into CleverRaven:master Dec 29, 2024
25 checks passed
@osuphobia osuphobia deleted the not-to-wield-integrated-armor branch December 30, 2024 10:40
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` json-styled JSON lint passed, label assigned by github actions NPC / Factions NPCs, AI, Speech, Factions, Ownership
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Follower NPC's will wield integrated armour
2 participants