Also, the create command fails if you don't have a VYKEA hex key in inventory. Mafia won't automatically acquire one.
Well.... yes and no.
Code:
r16449 | veracity0 | 2015-11-10 13:39:53 -0500 (Tue, 10 Nov 2015) | 7 lines
Adjust VYKEA companion recipes so that they explicitly include the VKEA
instructions. Other prerequisites - hex key, and the mandatory 5 each of
planks, rails, and brackets - no longer make VYKEA creation method invalid if
they are not in inventory; they have to be "accessible". The VYKEA companion
creation request will now "retrieve" hex key, mandatory parts and all the
actually consumed ingredients before constructing the companion.
Unlike the planks, etc., it won't buy one from the mall, because:
Code:
else if ( !InventoryManager.hasItem( ItemPool.VYKEA_HEX_KEY ) )
{
ConcoctionDatabase.EXCUSE.put( CraftingType.VYKEA, "You do not have a VYKEA hex key." );
}
InventoryManager.hasItem() checks if it is "accessible". Considering that actual creation does this:
Code:
// Make sure your VYKEA hex key is in inventory
if ( !InventoryManager.retrieveItem( ItemPool.VYKEA_HEX_KEY, 1 ) )
{
KoLmafia.updateDisplay( MafiaState.ERROR, "You need a VYKEA hex key in order to build a VYKEA companion." );
return;
}
It will use any method that "acquire" is authorized to use - the mall, the clan stash, etc. - except the other check requires the key to be "accessible". That could easily be characterized as a bug, since we will simply "acquire" planks, etc. without that requirement.
I think the point of that was to not have Creatables all cluttered up with VYKEA companions if you don't have an easy way to get a hex key. I could remove that restriction, at the expense of clutter.
Your script could get that key if it is missing and then act as a user friendly front end for the create command.
Friendly front ends are good.