-
Notifications
You must be signed in to change notification settings - Fork 73
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
Fix rock garden tracking #1523
Fix rock garden tracking #1523
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1523 +/- ##
=========================================
Coverage 34.88% 34.88%
- Complexity 17543 17551 +8
=========================================
Files 1065 1065
Lines 163434 163430 -4
Branches 34936 34938 +2
=========================================
+ Hits 57010 57019 +9
+ Misses 96859 96854 -5
+ Partials 9565 9557 -8
Continue to review full report at Codecov.
|
� Conflicts: � test/net/sourceforge/kolmafia/request/CampgroundRequestTest.java
…to rock_gardening
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!
What we do
The player harvests an item from the rock garden, then uses
get_campground()
to check what their garden status is.After that, they use their packet of tall grass seeds, then call
get_campground()
again for some reason.What happens
Their first
get_campground()
will claim that there was no harvest done, because mafia does not parse campground onrgarden[123]
. So whetstone will report1
The second
get_campground()
will claim that rock garden and the harvests are still available.What we expected
The first check will properly see whetstone as
0
in get_campgroundThe second check will remove garden seeds and harvests.
Disclaimer
So I realized after I made the test that its not to my knowledge possible to have a garden, then get rid of said garden to have no garden. So the test may not be valid.
That said, it seems obvious that the crop clearing should be performed just before we update what crops are available.