ki77bot
Member
Hi folks,
I guess it is obvious what I am trying to do here, but it doesn't work. It seems to always return 8. Is have_skill() not a valid boolean expression?
	
	
	
		
Cheers,
ki77bot
				
			I guess it is obvious what I am trying to do here, but it doesn't work. It seems to always return 8. Is have_skill() not a valid boolean expression?

		Code:
	
	switch {
	case ( have_skill($skill["Advanced Saucecrafting"]) ) :	
		adv_sauce = 3;
	case ( have_skill($skill["The Way of Sauce"]) ) :	
		adv_sauce = 5;
	case ( have_skill($skill["Advanced Saucecrafting"]) && item_amount($item[Gravyskin Belt of the Sauceblob]) > 0 ) :	
		adv_sauce = 6;
	case ( have_skill($skill["The Way of Sauce"]) && item_amount($item[Gravyskin Belt of the Sauceblob]) > 0 ) :	
		adv_sauce = 8;
		break;
	default:
		adv_sauce = 0;
}Cheers,
ki77bot
 
	 
 
		
