Bug - Fixed `acquire` decided to buy dense meat stacks from the mall instead of creating them.

Jabor

New member
v15.1 r10844 (sorry I wasn't using a more recent build - but I don't think I'm in a position to repro this for a few days. I don't see a fix for this listed in recent changenotes though.)

I'd just broken the prism (in Boris, chose TT), pulled stuff from hagnks, was creating dense meat stacks for a clan donation. Then this happened:

> acquire 200 dense meat stack

Searching for "dense meat stack"...
Search complete.
Creating 27 dense meat stack...
You acquire dense meat stack (27)
You lose 27,000 Meat
Successfully created dense meat stack (27)
Using cached search results for dense meat stack...
Purchasing dense meat stack (17 @ 2,000)...
You acquire dense meat stack (17)
Purchasing dense meat stack (3 @ 2,000)...
You acquire dense meat stack (3)
Purchasing dense meat stack (3 @ 2,000)...
You acquire dense meat stack (3)
Purchasing dense meat stack (3 @ 2,000)...
You acquire dense meat stack (3)
Purchasing dense meat stack (3 @ 2,000)...
You acquire dense meat stack (3)
Purchasing dense meat stack (3 @ 2,000)...
You acquire dense meat stack (3)
Purchasing dense meat stack (4 @ 2,000)...
You acquire dense meat stack (4)
Purchasing dense meat stack (18 @ 2,000)...
You acquire dense meat stack (18)
KoLmafia declares world peace.

The "declares world peace" bit is where I hammered the stop button after I noticed what was going on.

Observant readers will notice that it creates 27 dense meat stacks properly before it starts being dumb - I had a bit over 27,000 meat before grabbing everything from Hagnks.
 

slyz

Developer
If you had a bit over 27k meat, what meat did Mafia use to buy the dense meat stacks in the mall?

Could you type
Code:
set debugBuy = true
in the gCLI, and try to reproduce this?
 

Jabor

New member
I pulled all my stuff from hagnks (including a million or so meat), yet Mafia only made meat stacks out of the meat I had before pulling, and started buying the rest.

I'm not in a position to repro this as it's a once-at-end-of-ascension thing.
 

Fluxxdog

Active member
I just happened to finish my ascension and went to see if I could replicate.
Code:
> set debugBuy=true

debugBuy => true

> ash my_meat()

Returned: 24684
Refreshing closet...[COLOR="#0000FF"]<==Emptying Hagnk's[/COLOR]
Examining consumables in closet...
Examining equipment in closet...
Examining miscellaneous items in closet...
Updating inventory...
Requests complete.

> acquire 30 dense meat stack

Refreshing stash contents...
Stash list retrieved.
Creating 24 dense meat stack...
You acquire dense meat stack (24)
You lose 24,000 Meat
Successfully created dense meat stack (24)
[COLOR="#FF0000"]You need 6 more dense meat stack to continue.[/COLOR]

> ash my_meat()

Returned: 5271612
In my case, I had mall buying turned off. It seems it's only considering meat you have before Hangk's when make dense meat stacks. The sidebar on mafia showed the correct amount of meat I had and even deducted the 24K meat when it made the stacks.
 

slyz

Developer
It looks like we don't refresh concoctions then. The best way to be sure would be to call
Code:
ashq my_meat().print(); creatable_amount( $item[ dense meat stack ] ).print();
before and after emptying Hangk's.
 

roippi

Developer
StorageRequest does the following things when you pull all:

Code:
				KoLConstants.storage.clear();
				KoLConstants.freepulls.clear();
				KoLCharacter.setStorageMeat( 0 );

				InventoryManager.refresh();
				CoinmastersFrame.externalUpdate();

And as far as I can tell InventoryManager.refresh does not update your meat.
 

slyz

Developer
I probably misread Fluxxdog's report, and Mafia only updated the meat count after he tried to acquire the stacks..
 
Top