Bug - Fixed Jarlsberg can't eat Hot Dog Stand dogs

guyy

Member
r13157: While in Avatar of Jarlsberg, all the hot dogs from the V.I.P. lounge stand appear in the item manager as edible food, but Jarls can't eat any of them.

I'm not sure how it works now, but it looks like all the Jarlsfoods/drinks are item numbers 6185 through 6236, so that should make it pretty easy to exclude everything else. The bug may come from the hot dogs having negative item numbers.
 

Veracity

Developer
Staff member
UseItemEnqueuePanel.ConsumeFilterField.isVisible():
Code:
			if ( KoLCharacter.isJarlsberg() && ( UseItemEnqueuePanel.this.food || UseItemEnqueuePanel.this.booze ) )
			{
				AdventureResult item = creation.getItem();
				String name = item != null ? item.getName() : null;
				if ( creation.getMixingMethod() != CraftingType.JARLS && name != null &&
				     !name.equals( "steel margarita" ) &&
				     !name.equals( "mediocre lager" ) )
				{
					return false;
				}
			}
and later:

Code:
			if ( creation.fancydog &&
I suspect it would be trivial to add creation.hotdog and use that in the Jarlsberg section before looking for the AdventureResult, since we don't store that at all for hotdogs, since they are not items.

As you can see, "hot dogs have negative item numbers" and "Jarlsberg items have this item number range" don't enter into the calculations at all...
 
Top