Bug - Fixed login command not properly clearing information from previous character's storage

chown

Member
If I log in to my unascended character, awk, via "login awk", I get some incorrect behavior from, e.g., my_storage_meat(). Note that Hagnk's is not available to awk:

Code:
Installing default certificate validation...
Validating login server (www.kingdomofloathing.com)...
Using data override: data/mallprices.txt
477 players online.
Sending login request...
Initializing session for chown...
Refreshing session data...
Synchronizing moon data...
Loading character status...
Retrieving character data...
Updating inventory...
Examining Meat in closet...
Updating closet...
Retrieving quest data...
Retrieving familiar data...
Familiar data retrieved.
Retrieving campground data...
Examining Meat and pulls in storage...
Updating storage...
You are currently a member of Sin Co. Headquarters
Visiting Hot Dog Stand in clan VIP lounge
Visiting Speakeasy in clan VIP lounge
Session data refreshed.
3 days until Arrrbor Day, Muscle bonus today and tomorrow.
08/05/15 12:25:11 AM - ikusat (#2283438) just attacked you!
08/05/15 12:25:36 AM - ikusat (#2283438) just attacked you!
184 prices updated from http://kolmafia.us/scripts/updateprices.php?action=getmap

> ash my_storage_meat()

Returned: 23366516

> login awk

Preparing for logout...
Sharing mall price data with other users...
Using data override: data/mallprices.txt
Success: Update successful -- no new prices.
Sending logout request...
Logout request submitted.
Logout completed.
Installing default certificate validation...
Validating login server (www.kingdomofloathing.com)...
475 players online.
Sending login request...
Initializing session for awk...
Refreshing session data...
Synchronizing moon data...
Loading character status...
Retrieving character data...
Updating inventory...
Examining Meat in closet...
Updating closet...
Retrieving quest data...
Retrieving familiar data...
Familiar data retrieved.
Retrieving campground data...
You are currently a member of Smitemaster's Guild
Visiting Hot Dog Stand in clan VIP lounge
Visiting Speakeasy in clan VIP lounge
Session data refreshed.
3 days until Arrrbor Day, Muscle bonus today and tomorrow.
Already updated from http://kolmafia.us/scripts/updateprices.php?action=getmap in this session.

> ash my_storage_meat()

Returned: 23366516

> refresh storage

Examining Meat and pulls in storage...
Updating storage...
Requests complete.

> ash my_storage_meat()

Returned: 0
 

Veracity

Developer
Staff member
When reseting character state for a new character, we cleared KoLConstants.storage but left KoLCharacter.storageMeat untouched.
Revision 17423. Untested.
 
Top