New Content - Implemented Patch to detect Knob Dispensary!

Bale

Minion
This adds the preference lastDispensaryOpen and the function dispensary_available( ). It also adds knowlege of this to NPCStoreDatabase.java

This will pick up the password when it is learned or if you visit the dispensary after learning it.



It would be nice to recognize - and store in a per-ascension setting - that the Dispensary is available. Either getting the password adventure or going to the Dispensary and using the password should suffice to mark it as true. And the Dispensary should only be usable as an NPC store if you've unlocked it...

I'm going to leave all of the above to others to look into. :)

Accomplished!
 

Attachments

Last edited:
Oh, your patch is more elegant than the one I just posted. GenericRequest.parseResults() was the way to go!
 
Glad you like it. I just hope Veracity agrees with you. I might have gone for overkill by adding a dispensary_available() function which is honestly not really necessary, even though it's nice... ;)

I'm pretty eager to see if she accepts this so that I can add it to Universal Recovery.
 
Last edited:
I don't see any reason not to have it. ASH scripts could always u se get_property(), but I like having built-in shortcuts like this.
 
Last edited:
With the exception that the Dispensary is store "k" (a change from the old Lab, which was store "g"), this looks good.
Revision 9054
 
Back
Top