-
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
Treat Holidays and their associated modifiers as Events and include in modifiers.txt #1958
Conversation
gausie
commented
Sep 13, 2023
•
edited
edited
- Express holiday and event modifiers in modifiers.txt
- Allow calculation of multiple holidays on one day
- Add Labor Day Eve (not exposed to the user)
- Expose joint events as a list so we can check for the presence of one holiday if necessary
- Refactor some functions to do less string comparison
- Add tests
I'm going to let the CI show me where I should add test coverage. |
… refactor some functions to do less string comparison, add tests
987b583
to
4a09c9e
Compare
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1958 +/- ##
============================================
+ Coverage 36.57% 36.60% +0.03%
- Complexity 18978 18996 +18
============================================
Files 1087 1087
Lines 166925 166889 -36
Branches 35458 35439 -19
============================================
+ Hits 61061 61098 +37
+ Misses 95922 95854 -68
+ Partials 9942 9937 -5
... and 6 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
test/net/sourceforge/kolmafia/request/MoonPhaseRequestTest.java
Outdated
Show resolved
Hide resolved
test/net/sourceforge/kolmafia/textui/command/SetHolidayCommandTest.java
Outdated
Show resolved
Hide resolved
…ppen during testing
…Also update modifier writer to include new events? Weird one
Event Muscle Day Experience Percent (Muscle): [25*interact()] | ||
Event Mysticality Day Experience Percent (Mysticality): [25*interact()] | ||
Event Festival of Jarlsberg Mana Cost: -3 | ||
Event Labór Day Eve Adventures: +10 |
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.
Does Labor day work in run? I can't recall.
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 wiki suggests it does, so I did this. But I'll ask on Discord.
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.
Yeah people think that it does work in run