Bug - Fixed familiar[].experience readout capped at 400 for your active familiar

You can use the .experience record to access how much experience mafia thinks any familiar has, which has been quite helpful for managing familiars with experience costs (Grey Goose and Pocket Professor for example). I already noted this bug back then but didn't give it much thought. But now that the Chest Mimic exists, there is reason to stockpile 550, 1100 or even 1500 experience at once.

The bug is that if you ask mafia about any familiar in your terrarium, it will report however much experience it has (or at least, however much mafia thinks it has).
But if you take the familiar as your active familiar, something seems to cap the reported experience at 400. (Except for Stocking Mimic, and presumably the crimbo ghosts and maybe the homemade robot and the dodecapede or other weirdness).

And if, after doing so, you put the familiar back into your terrarium, mafia will still keep reporting 400. This lasts until you tell mafia to update the values through "refresh all" or "refresh terrarium". A manual visit to familiar.php or "refresh familiar" only seems to work if you do so while it is NOT your active familiar.

Code:
> familiar chest mimic

Taking Sturaham the Chest Mimic out of terrarium...
Requests complete.

> ash $familiar[chest mimic].experience

Returned: 400

> familiar none

Putting Sturaham the Chest Mimic back into terrarium...
Requests complete.

> ash $familiar[chest mimic].experience

Returned: 400

> refresh terrarium

Retrieving familiar data...
Familiar data retrieved.

(none)
Adorable Seal Larva (21 lbs)
Adorable Space Buddy (26 lbs)
<snip>
XO Skeleton (36 lbs)
Yule Hound (30 lbs)

> ash $familiar[chest mimic].experience

Returned: 3306

> familiar chest mimic

Taking Sturaham the Chest Mimic out of terrarium...
Requests complete.

> ash $familiar[chest mimic].experience

Returned: 400

> ashq buffer page = visit_url("familiar.php");

> ash $familiar[chest mimic].experience

Returned: 400

> familiar none

Putting Sturaham the Chest Mimic back into terrarium...
Requests complete.

> ashq buffer page = visit_url("familiar.php");

> ash $familiar[chest mimic].experience

Returned: 3306

> familiar chest mimic

Taking Sturaham the Chest Mimic out of terrarium...
Requests complete.

> ash $familiar[chest mimic].experience

Returned: 400

> refresh familiar

Retrieving familiar data...
Familiar data retrieved.

(none)
Adorable Seal Larva (21 lbs)
Adorable Space Buddy (26 lbs)
<snip again>
XO Skeleton (36 lbs)
Yule Hound (30 lbs)

> ash $familiar[chest mimic].experience

Returned: 400

> refresh terrarium

Retrieving familiar data...
Familiar data retrieved.

(none)
Adorable Seal Larva (21 lbs)
Adorable Space Buddy (26 lbs)
<snip some more>
XO Skeleton (36 lbs)
Yule Hound (30 lbs)

> ash $familiar[chest mimic].experience

Returned: 3306
 
Last edited:
api.php is at fault for this; you can check it with a quick /goto.

I filed an in-game bug report about it, because while I'm sure it was deliberate at some point, between the chest mimic and pocket prof it's a real thorn in my side now.

If you're able to personally lobby CDM to update this behavior, that would be great.
 
Top