boolean equipped_in_terrarium( item itm )
{
if ( itm.available_amount() == 0 )
{
// no need to check the Terrarium
return false;
}
foreach fam in $familiars[]
{
if ( fam == my_familiar() )
{
continue;
}
if ( fam.familiar_equipped_equipment() == itm )
{
return true;
}
}
return false;
}
// This is the amount equipped on unequipped familiars in the terrarium
int terrarium_amount(item it) {
return available_amount(it) - equipped_amount(it) - item_amount(it)
- (get_property("autoSatisfyWithCloset") == "true"? closet_amount(it): 0) // Don't include Closet
- (get_property("autoSatisfyWithStorage") == "true"? storage_amount(it): 0) // Don't include Hangk's Storage
- (get_property("autoSatisfyWithStash") == "true"? stash_amount(it): 0); // Don't include Clan Stash
}