-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Move activate_mutation and deactivate_mutation to Character #35227
Conversation
src/character.cpp
Outdated
return invoke_item( used, use_methods.begin()->first, pt ); | ||
} | ||
|
||
uilist umenu; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
anything with a uilist really should be in avatar
. that means this function(the other three should stay) should get something basic in Character and the real function in avatar
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The function is used by npc, and since the overload with the uilist calls the other overload I don't think I can only move that one.
maybe add another commit that goes through all of the |
src/character.cpp
Outdated
return invoke_item( used, pos() ); | ||
} | ||
|
||
bool Character::invoke_item( item *used, const tripoint &pt ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
bool Character::invoke_item( item *used, const tripoint &pt ) | |
bool Character::invoke_item( item *, const tripoint &pt ) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't forget removing pt
too
…leverRaven#35227)" This reverts commit e72fde2.
Summary
SUMMARY: Infrastructure "Move activate_mutation and deactivate_mutation to Character"
Purpose of change
Part of #34721
has_enough_charges
consume_charges
invoke_item
print_health
activate_mutation
deactivate_mutation
Describe the solution
Describe alternatives you've considered
Testing
Compile without error
Additional context