Bug - Fixed Spacegate access badge items shouldn't be creatable

Cysteine

New member
v 18265

I don't own a Spacegate access badge, and I'm in a Bad Moon run anyway.
I'm seeing all the Equipment Requisition stuff in the Item Manager -> Creatable:

KoLmafia-18265.png
 

lostcalpolydude

Developer
Staff member
Code:
		if ( Preferences.getBoolean( "spacegateAlways" ) )
		{
			ConcoctionDatabase.PERMIT_METHOD.add( CraftingType.SPACEGATE );
			ConcoctionDatabase.ADVENTURE_USAGE.put( CraftingType.SPACEGATE, 0 );
			ConcoctionDatabase.CREATION_COST.put( CraftingType.SPACEGATE, 0 );
		}
		else
		{
			ConcoctionDatabase.EXCUSE.put( CraftingType.SPACEGATE, "You do not have access to Spacegate Equipment Requisition." );
		}
Bad Moon isn't checked (and neither is Standard currently), but the existing code should prevent it from showing up for you anyway. I'm seeing the same thing though. I don't understand why that's happening.
 

lostcalpolydude

Developer
Staff member
Looking some more, I see that Concoction.canMake() returns values for some crafting types before checking ConcoctionDatabase.isPermittedMethod(). That's probably a simple fix that I will get to later today.
 
Top