Skip to content

Conversation

slarticodefast
Copy link
Member

About the PR

Stuff breaks all the time and wielding has been broken for ages without anyone fixing it.
Requires #40966 first so the test can pass.
Supercedes #40977 (sorry Verin). This test is more comprehensive.

Why / Balance

bugs bad, tests good

Technical details

Adds a bunch of helper methods and makes the wielding API use the Entity<T> pattern and a resolve.

Requirements

Breaking changes

The CanWield, TryWield and TryUnwield methods now take an Entity<WieldableComponent?> as a parameter.

Changelog
not player facing

@PJBot PJBot added S: Untriaged Status: Indicates an item has not been triaged and doesn't have appropriate labels. S: Approved Status: Reviewed and approved by at least one maintainer; a PR may require another approval. S: Needs Review Status: Requires additional reviews before being fully accepted. Not to be replaced by S: Approved. size/M Denotes a PR that changes 100-999 lines. labels Oct 21, 2025
@slarticodefast slarticodefast added A: Integration Tests Area: Integration tests, adding or fixing them A: General Interactions Area: General in-game interactions that don't relate to another area. and removed S: Untriaged Status: Indicates an item has not been triaged and doesn't have appropriate labels. labels Oct 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A: General Interactions Area: General in-game interactions that don't relate to another area. A: Integration Tests Area: Integration tests, adding or fixing them S: Approved Status: Reviewed and approved by at least one maintainer; a PR may require another approval. S: Needs Review Status: Requires additional reviews before being fully accepted. Not to be replaced by S: Approved. size/M Denotes a PR that changes 100-999 lines.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants