That FN Ninja
Member
Can the best_fam() function get a beecore check please. I think the easiest way would be to add a be_good() check. This means be_good() function should probably have a string parameter. I propose the following changes to the be_good() function and to line 514 of the best_fam() function:
Changing the be_good parameter to a string allows you to pass other datatypes to it and mafia will do the conversion so this won't break any scripts currently using be_good(item).
All of the following work fine with this change:
Thanks.
Code:
boolean be_good( string it ) {
return my_path() != "Bees Hate You" || it.to_lower_case().index_of("b") == -1;
}
Code:
if (be_good(i) && (familiar_weight(i) > bestweight || (familiar_weight(i) == bestweight && famstrength(fams[i],ftype) > beststrength))) {
Changing the be_good parameter to a string allows you to pass other datatypes to it and mafia will do the conversion so this won't break any scripts currently using be_good(item).
All of the following work fine with this change:
Code:
be_good("depantsing bomb");
be_good("Barrrnacle");
be_good($item[depantsing bomb]);
be_good($familiar[Barrrnacle]);
Thanks.