Would it be possible to get a warning about unused heists on ascension? I keep letting the heists pile up in case something extra valuable shows appears, then losing them all when I ascend.
After Battle: Light-Fingered Haroun disguises himself as someone who is asleep. Or... maybe he's just asleep.
After Battle: Light-Fingered Haroun cracks his knuckles and looks around for something to steal.
Preference _catBurglarCharge changed from 8 to 9
After Battle: Light-Fingered Haroun grabs a quick nap with his sleep mask, so he'll be fresh for the upcoming heist.
After Battle: Light-Fingered Haroun does some stretching exercises to prepare for his upcoming heist.
Preference _catBurglarCharge changed from 29 to 30
Perhaps if the user visits the heists page voluntarily, mafia should parse the heists remaining and update it's prop if there is a discrepancy? So you could at least force a correction. And perhaps, the ascension page should visit and check for discrepancies...as my cat didn't show up there at all...although there were heists left according to the game...but mafia thought there were none. After manually setting the prop, the cat appeared on the ascension page, as expected.
case FamiliarPool.CAT_BURGLAR:
if ( responseText.contains( "takes note of any security cameras in the area" ) ||
responseText.contains( "watches carefully to see if there are any guards and when they change shifts" ) ||
responseText.contains( "looks around for unlocked windows and accessible vents" ) ||
responseText.contains( "stands around casually, definitely just loitering and not casing the joint at all" ) )
{
Preferences.increment( "_catBurglarCharge" );
}
if ( responseText.contains( "grabs a quick nap with his sleep mask, so he'll be fresh for the upcoming heist" )||
responseText.contains( "takes advantage of the downtime to grab a few z's" ) ||
responseText.contains( "disguises himself as someone who is asleep" ) )
{
Preferences.increment( "_catBurglarCharge" );
}
if ( responseText.contains( "gets a shifty look in his eyes. Looks like he's ready for a heist and/or caper" ) ||
responseText.contains( "cracks his knuckles and looks around for something steal" ) ||
responseText.contains( "does some stretching exercises to prepare for his upcoming heist" ) )
{
// Current theory is that heist message can happen even when the charge is reached from sleepmask trigger later
// in the combat text. And that it resets charge to next heist to 0. We round to catch other small errors too.
int charge = Preferences.getInteger( "_catBurglarCharge" ) + 1;
Preferences.setInteger( "_catBurglarCharge", (int) Math.round( charge / 10 ) * 10 );
}
break;
edit: found the non-tracked message too, it's the second one of these two.
Code:After Battle: Light-Fingered Haroun disguises himself as someone who is asleep. Or... maybe he's just asleep. After Battle: Light-Fingered Haroun cracks his knuckles and looks around for something to steal. Preference _catBurglarCharge changed from 8 to 9
The first one I've seen a few times in the last 3 or 4 days of logs, the second one seems to happen when a heist becomes available (not equipment related).
Well, that one is actually working as originally spaded. If you get a heist from the first message, we don't get charge from the second. Maybe that has changed?
[6468] The Deep Dark Jungle
Encounter: smoke monster
Preference _lastCombatStarted changed from 20181123073317 to 20181123073333
Round 0: Malibu Stacey wins initiative!
Round 1: Malibu Stacey casts SHATTERING PUNCH!
Round 2: Malibu Stacey wins the fight!
After Battle: Light-Fingered Haroun, dressed as Beelzebub, fires a bolt of red lightning from his pitchfork into your head.
After Battle: You gain 5 Mojo Points
After Battle: Light-Fingered Haroun shows you his new dance move that he calls the "Totally Gonna Rob This Joint".
You acquire an item: transdermal smoke patch
After Battle: You gain 36 Strengthliness
After Battle: You gain 38 Wizardliness
After Battle: You gain 101 Cheek
After Battle: Light-Fingered Haroun disguises himself as someone who is asleep. Or... maybe he's just asleep.
After Battle: Light-Fingered Haroun takes note of any security cameras in the area.
Preference _shatteringPunchUsed changed from 1 to 2
Preference garbageChampagneCharge changed from 7 to 6
Preference testudinalTeachings changed from 150:2|211:1|203:2|267:3|266:4|198:0|213:0|207:0|206:3|214:5|210:5 to 150:2|211:1|203:2|267:4|266:4|198:0|213:0|207:0|206:3|214:5|210:5
Preference _catBurglarCharge changed from 67 to 68
Preference _catBurglarCharge changed from 68 to 69
[6468] The Deep Dark Jungle
Encounter: smoke monster
Preference _lastCombatStarted changed from 20181123073333 to 20181123073430
Round 0: Malibu Stacey wins initiative!
Round 1: Malibu Stacey casts SHATTERING PUNCH!
Round 2: Malibu Stacey wins the fight!
After Battle: You gain 4 Chutzpah
After Battle: Light-Fingered Haroun uses an infernal Beelzebub incantation to give you a surge of magical power, which probably won't have any repercussions.
After Battle: You gain 5 Mojo Points
After Battle: Light-Fingered Haroun does a dance so sneaky, it looks like he's just standing still.
You acquire an item: transdermal smoke patch
After Battle: You gain 49 Beefiness
After Battle: You gain 39 Wizardliness
After Battle: You gain 84 Smarm
After Battle: Light-Fingered Haroun cracks his knuckles and looks around for something to steal.
Preference _shatteringPunchUsed changed from 2 to 3
Preference garbageChampagneCharge changed from 6 to 5
Preference testudinalTeachings changed from 150:2|211:1|203:2|267:4|266:4|198:0|213:0|207:0|206:3|214:5|210:5 to 150:2|211:1|203:2|267:5|266:4|198:0|213:0|207:0|206:3|214:5|210:5
main.php?heist=1
Took choice 1320/2: Nevermind
choice.php?whichchoice=1320&pwd&option=2
After Battle: Light-Fingered Haroun takes advantage of the downtime to grab a few z's.
After Battle: Light-Fingered Haroun does some stretching exercises to prepare for his upcoming heist.
Preference testudinalTeachings changed from 150:3|211:0|203:5|267:5|266:4|198:3|213:0|207:3|206:3|214:5|210:5 to 150:3|211:0|203:5|267:0|266:4|198:3|213:0|207:3|206:3|214:5|210:5
Preference _catBurglarCharge changed from 67 to 68
Preference _catBurglarCharge changed from 68 to 60
To me it looks like KoLmafia.java is setting catBurglarBankHeists based on the charges seen today and and the heists used today as well as its own previous value. And then CharPaneDecorator.java is again calculating the part based on charges gained today and adding it to the catBurglarHeists amount (which should have already taken that into account?).
The bug is interestingly intermittent as well. If you are progressing towards your second heist and your progress is below 10, the charpane will over-report your heists available by 1. Once your progress is 10 or above, the charpane resumes reporting the correct amount.