-
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
L13_powerLevel() reworked #353
Conversation
7a52a5d
to
7b47351
Compare
Hit it with ed on 0 IOTMs. it works. That said, can really feel the need for a function to unlock Thinknerd nerdhouse. As it would be much more efficient. Additionally it would mask the fact that if the only thing remaining to do is island war, and you do not have enough moxie, then it goes to powerlevel your mainstat instead of your moxie stat. I confirmed that releasing the softblock on quests works. I can confirm that using clovers for mainstat works. I can confirm that haunted louvre works. |
added boolean unlockThinknerdWarehouse() this needs more testing so don't merge yet. |
updated TODO
|
RELEASE/scripts/autoscend.ash
Outdated
} | ||
void tryShirtPull(item it) | ||
{ | ||
if(!hasShirt() && can_equip(it) && canPull(it)) |
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.
I think canPull(it)
is redundant here
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.
Can pull checks:
- is it in standard
- are we in hardcore
- do we have pulls left today
- do we have the item in hangk / is it cheap enough to mallbuy with hangk meat
- are there specific path restrictions forbidding it (ex: bees hate you)
can equip checks if we have enough mus, mox, or mys to equip it.
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.
Oh... actually can_equip also checks if you have torso awaregness. So it needs to be removed.
equip() also checks if you have it too so i need to handle this via visit_url too...
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.
- half of LX_attemptPowerLevel() is "The Source" path specific code. Maybe move it to that path file in LX_theSourcePowerLevel(), calling on it from LX_attemptPowerLevel() if appropriate?
This should be in this PR. It's quick enough to do as it's a simple copy & paste and this PR is massively touching the LX_attemptPowerLevel()
function already.
change made Incidentally. I looked a little at that bit of code. It seems to:
Anyone knows why it is doing those things? In particular is there a reason to exclude scaling combats? And if there is then we accidentally at some point added some before it via free fights in scaling IOTM zones like NEP. |
First off, git blame is a thing which exists. |
blame just points me towards #211 |
Thus see the second line of my reply above. That's literally what that commit message is telling you. |
updated TODO (likely in future PR)
|
Oh... there was actually already code for unlocking thinknerd in auto_zone.ash. In addition to being unreachable, it also does not work for various reasons. Moved my own unlock function to auto_zone.ash |
8df6a10
to
3652541
Compare
Alright. Finished merging duplicate code. and things at least nominally work. |
507920b
to
c43d777
Compare
0868701
to
f19dcc7
Compare
Tested in ed and aftercore on an account with 1 ascension. The cap on the scaling stats for monsters in Thinknerd warehouse at 0ML are: As a result they give piddling amounts of XP. Less than some normal non scaling zones. This makes them actually unsuitable for grinding XP. So all this effort I spent fixing up that zone has pretty much been a waste. |
@jeparo actually neither does I mean, maybe it will come in handy one day? and it does feel like a shame to delete it... but on the other hand i find it unlikely it will come in handy after all. So I am leaning towards deleting those functions. |
3521eb2
to
a0d8d41
Compare
*Power leveling code was split between L13_powerLevel() and LX_attemptPowerLevel() in a messy fashion. Consolidated it into LX_attemptPowerLevel() *moved The Source path specific code to boolean LX_attemptPowerLevelTheSource() *releasing the softblock on quests awaiting optimal conditions was done far too late in L13_powerLevel(). Actually moved it to be done right before the function itself is called. *renamed L13_powerLevel() to L13_startQuest() *boolean LX_unlockThinknerdWarehouse(boolean spend_resources) added and used. either for the purpose of doing melvign quest or for powerleveling in thinknerd warehouse
it is scaling but very low caps on scaling. resulting in <30 substats per adv
L13_powerLevel() reworked:
*Power leveling code was split between L13_powerLevel() and LX_attemptPowerLevel() in a messy fashion. Consolidated it into LX_attemptPowerLevel()
*moved The Source path specific powerleveling code to boolean LX_attemptPowerLevelTheSource()
*releasing the softblock on quests awaiting optimal conditions was done far too late in L13_powerLevel(). moved it to be done right before L13_powerLevel() is called, and inserted a mcall to getDigitalKey and getStarKey between those two.
*removed L13_powerLevel() entirely as the only thing it still does is serve as a wrapper for LX_attemptPowerLevel(). replaced it with calling on LX_attemptPowerLevel() if under level 13.
*boolean LX_unlockThinknerdWarehouse(boolean spend_resources) added and used in melvin quest and in zone_unlock(location loc)
*adventuring in thinknerd warehouse, either as part of melvign quest or by itself, removed from powerleveling function. While it is a scaling zone, it has a very low cap on max stats of enemies which means much lower XP than the haunted gallery. As such the side quest code is not called anywhere. But will likely be added later as a UI toggle to instruct us to do it despite being not optimal.
How it has been tested
Been running it on multiple accounts for several days. but only some of them needed to level.
Seems to work as expected though.
Checklist: