-
Notifications
You must be signed in to change notification settings - Fork 72
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 limitmode to enum #1084
Move limitmode to enum #1084
Conversation
Why has this seemingly changed the HTTP method that api.php requests are made with? Shouldn't they be GET anyway?? What is going on! EDIT: Ahha, it would be good for request assertions to show the full issue with the request - the URL was also wrong! |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #1084 +/- ##
============================================
+ Coverage 29.63% 29.65% +0.02%
- Complexity 14308 14350 +42
============================================
Files 1036 1036
Lines 160993 160939 -54
Branches 35165 35122 -43
============================================
+ Hits 47703 47726 +23
+ Misses 104728 104651 -77
Partials 8562 8562
Continue to review full report at Codecov.
|
I love this. I will be adding a few more Limitmodes - ASTRAL and MOLE, both of which limit which zones you can adventure in. Maybe BIRD, since that replaces your combat skills with bird skills. MOLE and BIRD are mutually exclusive. The question is whether ASTRAL and BIRD are. In any case, this is really good work. |
That sounds good! Though from this code it seems that limit modes are defined kol-side and indicated via the API. We'll need to keep that in mind |
Well, poo. I may need to rethink that, then. I need the equivalent, for limiting where you can adventure when you are Half-Astral or Shape of Mole. |
I think there's a way we can do it, by looking at certain prefs/effects when we get a "0" back from that API key... |
…use null anymore. Add tests
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.
in the area, might be worth a comment that limit mode "edunder" is Ed in the Underworld, because it's fairly confusing if you don't know that.
Spelunky and Batfellow are self-explanatory.
This PR: