Calculating how many bander/boots runs are available

lostcalpolydude

Developer
Staff member
That will work as long as it hasn't run out. That effect isn't used up by free runaways, so it's probably good enough for this purpose.
 
Alrighty, my plan of attack is add a function that simply adds two or zero as appropriate to remainingRuns().

Code:
int fam_weight()
	{
    return familiar_weight( my_familiar() ) + numeric_modifier("familiar weight") ;
	}

int remainingRuns()
	{
    return fam_weight() / 5 [B]+ bootsFeasted()[/B] - get_property( "_banderRunaways" ).to_int();
	}

Look good? My problem is figuring out how to evaluate whether _feastedFamiliars contains stomping boots. Here's my shot in the dark below:

Code:
int bootsFeasted()
	string_check()
	{
	if(contains_text("_feastedFamiliars" , "Stomping Boots"))
		{
		2
		}
	0
	}

As a failsafe against the boots and feast having been used previously in the day, I'm including this:
Code:
if (fam_weight() =/= familiar_weight( my_familiar() ))
Abort("Check whether you've used a moveable feast")
Would that successfully abort if the functions weight didn't match the familiars actual listed weight?
 
Top