Bug - Fixed Wormride link fails with 0 turns remaining

lostcalpolydude

Developer
Staff member
I used the wormride links for worm-riding hooks with 0 turns left and got "Insufficient adventures left." in the CLI. UseItemRequest still thinks you have to be wearing worm-riding hooks for it to not take a turn to use a drum machine.

Code:
		case ItemPool.DRUM_MACHINE:
			// Drum machine doesn't take a turn if you have worm-riding hooks equipped.
			AdventureResult hooks = ItemPool.get( ItemPool.WORM_RIDING_HOOKS, 1 );
			turns = KoLCharacter.hasEquipped( hooks ) ? 0 : 1;
			break;
Looks like that should be changed to InventoryManager.hasItem().
 

lostcalpolydude

Developer
Staff member
I was about to ask if there was a reason to prefer adding inventory.contains() over switching to hasItem(), but I guess it should be slightly faster since it means not checking closet, storage, and such for an item that can't be in those places.
 
Top