New Content New IOTM: unwrapped knock-off retro superhero cape

Revision 20518

This doesn't look like it's working.

Code:
[197] The Defiled Niche
Preference lastEncounter changed from giant skeelton to dirty old lihc
Encounter: dirty old lihc
Preference _lastCombatStarted changed from 20201124004705 to 20201124004723
Round 0: Player Two wins initiative!
Round 1: Player Two casts TRANSCENDENT OLFACTION!
You acquire an effect: On the Trail (40)
Preference olfactedMonster changed from dairy goat to dirty old lihc
Round 2: Player Two casts GALLAPAGOSIAN MATING CALL!
Preference _gallapagosMonster changed from dairy goat to dirty old lihc
Round 3: Player Two casts SLAY THE DEAD!
Round 4: Player Two wins the fight!
After Battle: Either way, your Evilometer beeps three times.
Preference cyrptNicheEvilness changed from 50 to 47
Preference cyrptTotalEvilness changed from 100 to 97
After Battle: Wancent kicks you in the ankle, in just the right place to be very effective chiropracty. If that's a word.
After Battle: You gain 43 hit points
After Battle: You gain 39 Mana Points
After Battle: Vague Granada peeks out of the shadows, checks for danger, and sidles up to you with some meat.
You gain 13 Meat.
Preference camelSpit changed from 47 to 50
After Battle: You hear a loud schlurrrrrk! noise, and turn to see Wancent sucking the liquid out of a nalgene bottle he found somewhere. (50% full)
You acquire an item: salacious crumbs
After Battle: You gain 9 Fortitude
After Battle: You gain 22 Wizardliness
After Battle: You gain 6 Smarm
You gain 3 Soulsauce
Preference testudinalTeachings changed from 266:3|279:4|274:0|171:0|59:2|278:1|214:5|267:5|173:4|275:3|89:2|168:0 to 266:3|279:5|274:0|171:0|59:2|278:1|214:5|267:5|173:4|275:3|89:2|168:0
Preference _boomBoxFights changed from 9 to 10


use 1 Evilometer
Preference cyrptTotalEvilness changed from 97 to 96
Preference cyrptNicheEvilness changed from 47 to 46


Code:
> version

KoLmafia v20.7 r20521
 
This doesn't look like it's working.

I was having the same issue. I'm not in-run, and probably won't be ascending until after Crimbo at this point, with all the holidays coming up at this point, but I did look at the code, and I think maybe this patch will fix the issue. Didn't post it since I couldn't test it, but since someone else is noticing the same problem I was, I figured I'd put it out there. I'll repeat that this is totally untested; it might fix the issue, it might make something in the Cyrpt explode.

Edited to add: I think it would be fine to just cut out this whole if ... return, which would prevent this sort of issue from happening in the future, but I didn't want to propose a patch that cuts out that whole bit of code without the ability to test it first. Real Devs can decide on the wisdom of that approach.

Code:
--- FightRequest.java    2020-11-24 03:03:41.058238752 -0600
+++ myFightRequest.java    2020-11-24 12:59:46.557372851 -0600
@@ -8232,7 +8232,8 @@
     private static boolean handleEvilometer( String text, TagStatus status )
     {
         if ( !text.contains( "Evilometer" ) && !text.contains( "ghost vacuum" ) &&
-             !text.contains( "gravy sloshes" ) && !text.contains( "the nightmare fuel" ) )
+             !text.contains( "gravy sloshes" ) && !text.contains( "the nightmare fuel" ) &&
+             !text.contains( "evil draft" ) )
         {
             return false;
         }
 
Last edited:
Confirming Slay the Undead is updating evilness in Cyrpt zones correctly as of 20551 (thanks @gausie)


Code:
[181] The Defiled Alcove
Preference lastEncounter changed from Setup your knock-off retro superhero cape to modern zmobie
Encounter: modern zmobie
Preference _lastCombatStarted changed from 20201208014202 to 20201208014317
Round 0: Player Two wins initiative!
Round 1: Player Two casts SLAY THE DEAD!
Round 2: Player Two wins the fight!
After Battle: Your Evilometer emits five quick beeps.
Preference cyrptAlcoveEvilness changed from 50 to 45
Preference cyrptTotalEvilness changed from 200 to 195
After Battle: You trench cape ripples as an evil draft blows and then quiets, it feels less evil in here!
Preference cyrptAlcoveEvilness changed from 45 to 44
Preference cyrptTotalEvilness changed from 195 to 194
After Battle: Your Iunion stones glitter in the dim torchlight of this accursed tomb.
The crown gains +3 Spooky Damage

You gain 166 Meat
After Battle: Cryptic Poetry stealths up to you, crawling on her elbows. She gives you some meat that she found down there.
You gain 14 Meat.
After Battle: You gain 7 Strongness
After Battle: You gain 13 Magicalness
After Battle: You gain 9 Sarcasm
After Battle: "Aroma of Juniper," was the label in this region. You look under a pile of dusty bones and find the source.
You acquire an item: bottle of gin
You gain 2 Soulsauce
Preference testudinalTeachings changed from 266:4|279:1|274:1|171:0|59:3|214:5|267:0|173:2|275:0|89:4 to 266:4|279:1|274:1|171:0|59:3|214:5|267:0|173:2|275:0|89:4|168:1
Preference _boomBoxFights changed from 3 to 4

use 1 Evilometer

Only things left to implement as far as I can see is resetting the tracking properties after ascending and the maximizer suggesting folding the cape when appropriate.
 
the maximizer suggesting folding the cape when appropriate.
This has made me realise that the way I implemented the item's modifiers wasn't right and I should have done it with a new category of Modifier (like the ed piece). Except this one is weird because it needs to track two prefs. Or I suppose I could just concatenate them,
 
Only things left to implement as far as I can see is resetting the tracking properties after ascending and the maximizer suggesting folding the cape when appropriate.
Both addressed in r20555. I'll note here as I did in the commit message - the retrocape command now equips the cape as well as reconfiguring it.
 
This looks done as of r20555.

Minor nitpick with the logging:
Code:
Took choice 1437/5: Change instructions to "Kill Me"
choice.php?whichchoice=1437&option=5&pwd
Preference retroCapeWashingInstructions changed from thrill to kill
Took choice 1437/1: Change Superhero
choice.php?whichchoice=1437&option=1&pwd
Preference lastEncounter changed from modern zmobie to Setup your knock-off retro superhero cape
Encounter: Setup your knock-off retro superhero cape
Took choice 1438/1: Set to Vampire Slicer
choice.php?whichchoice=1438&option=1&pwd
Preference retroCapeSuperhero changed from heck to vampire
Took choice 1438/4: Change instructions to "Kiss Me"
choice.php?whichchoice=1438&option=4&pwd
Took choice 1437/6: I'm Done
choice.php?whichchoice=1437&option=6&pwd
choice 1438/4 is "I'm Good" not "Change instructions to "Kiss Me"" (looks like a copy & paste error as 1437/4 is that).
Mentioning it as it misled me when trying to figure out an issue with scripting use of it just now.

Thanks.
 
Optimal setups should include the "always critical with guns" from the robot policeman, kill me skill. This is especially useful if one is using something like a spear gun, as it auto-triggers the gun's critical effect (in this case, bonus damage on top of combat damage).
 
Back
Top