can_drink() and inebriety_limit() after Teet Path Drop

cjswimmer

Member
In one of my scripts I submit a URL using cli_execute to drop the Teetotaler path after getting Stomach of Steel:

Code:
cli_execute("account.php?action=unpath&pwd&confirm=on");	
cli_execute("status refresh");

but I cannot find a way to get Mafia to update the can_drink() and inebriety_limit() responses now that the path has been dropped other than logging in again (the status refresh command on line 2 doesn't do it).  Is there a specific Mafia command I should use to drop the path or refresh the player characteristics?
 

holatuwol

Developer
I actually disabled full refresh of the character sheet in order to prevent inefficient scripts gathering data you should already have using a simpler request -- all the refresh does is parse out the sidepane, just as KoLmafia does whenever you hit the refresh button on the main interface.

But, I didn't think about the changes that occur when you drop a path, or drop hardcore. KoLmafia will detect this and update all applicable flags in the next release.
 
Top