-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Make weapon
private
#50286
Make weapon
private
#50286
Conversation
203907c
to
54bbf15
Compare
|
Yes that'd make sens. I think once I have this in a proper shape I'll do a mass rename to |
86c7bcf
to
aee141b
Compare
e9d0e3c
to
4a8fb44
Compare
4a8fb44
to
4a197b8
Compare
f6863f5
to
cf6447b
Compare
cf6447b
to
7034c86
Compare
2736af5
to
6511a19
Compare
There are merge conflicts. |
@Fris0uman: Android builds seem to be having a problem with this. First noticed in https://github.com/CleverRaven/Cataclysm-DDA/runs/3581520161, but also present right after this PR was merged. |
This PR overlooked the code in |
I also don't understand why get_wielded_item() returns a const reference in the const version and a pointer in the non-const version (instead of a mutable reference). This is confusing API. |
* Make `weapon` private * Update tests * Rebase * Appley suggestions * Fix weapon dorping * fix weapon saving * Rename to get_wielded_item * rename to set_wielded_item * fixes * Post rebase fixes * fixes * fix weapon saving * fixes * more rebase and fixes * Apply suggestions * post rebase fixes
Summary
Infrastructure "Make
weapon
private"Purpose of change
Make
weapon
member ofCharacter
privateDescribe the solution
Describe alternatives you've considered
Testing
Compile without error
Can wield stuff, drop stuff, throw stuff, stab zombies without issues
Additional context