Feature Populate familiar names from Manage Familiar Names page

zarqon

Well-known member
For whatever reason -- Bad Moon, Pokefam -- you may own a familiar which is not currently accessible from your Terrarium, and therefore have_familiar() returns false. The easiest way to figure out whether you own a given familiar is whether or not you've already named it, which is visible on the Manage Familiar Names page. Mafia does not visit this page by default as part of its initialization, so some of the familiar name proxy records are left unpopulated, despite the familiars having been previously named. This is fine, but I would like to request that those fields be populated when we visit the familiar names page.

This would enable scripts to simply visit the Manage Familiar Names page once per session to be able to determine which familiars you own. It would also mean more of mafia's data is correct, which is always nice.
 

Darzil

Developer
It isn't quite that simple, I think.

The names are in a Familiar Data record, which only exists for Familiars in your terrarium. So we haven't got an entry we can add them too.

So it's either add all the familiars to the familiar lists, whether accessible or not, and add an accessible record, and change every familiar check to use that.

Or add an inaccessible familiar list, and update it when changing path, unprisming king or dropping path etc.
 

zarqon

Well-known member
Hmmm. The "inaccessible familiar list" seems too fiddly, but adding all familiars to the lists seems like it introduces other problems. Perhaps storing the names elsewhere (like in a preference or text file) would be better? The names are after all semi-permanent -- once they exist, they never go away and can only be edited, presumably only in places where we also would parse those edits. And in that case, scripts might not have to visit the Manage Names page at all.
 
Last edited:

Veracity

Developer
Staff member
You could name ALL of your familiars "Silence", in case the mimes invade again. That would make things Real Simple. :)
 
Top