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
Check coat of paint's modifiers after exiting avatar path #1494
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1494 +/- ##
============================================
+ Coverage 34.73% 34.76% +0.03%
- Complexity 17378 17384 +6
============================================
Files 1062 1062
Lines 163275 163274 -1
Branches 34927 34926 -1
============================================
+ Hits 56712 56766 +54
+ Misses 97030 96975 -55
Partials 9533 9533
Continue to review full report at Codecov.
|
Oh dear, just realized that the test that should've been failing, was succeeding. |
if (!KoLCharacter.hasEquipped(COAT_OF_PAINT, EquipmentManager.SHIRT) | ||
&& !KoLConstants.inventory.contains(COAT_OF_PAINT)) { | ||
&& COAT_OF_PAINT.getCount(KoLConstants.inventory) == 0 | ||
&& COAT_OF_PAINT.getCount(KoLConstants.closet) == 0) { |
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.
InventoryManager.getAccessibleCount
instead (or one of the related methods)? Or do we really want exactly equipped, inventory + closet?
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.
Thanks!
Steps to reproduce
With coat of paint in inventory or equipped, break the prism to exit an avatar path.
As the player's class has changed, coat of paint has its modifiers changed as well.
What happens
Mafia does not recognize coat of paint has changed and the equipment modifiers are now different.
The description was not visited as it should have been by mafia.
Manually checking the description will correct the modifiers.
What we expected instead
Mafia to check coat of paint and update the equipment modifiers without player intervention required.