Winterbay's Helpful Automatic Monsterbasher (WHAM)

Bad item value: "Staff of the Staff of Life" (WHAM.ash, line 414)
Consult script 'WHAM.ash' not found.
You're on your own, partner.
Click here to continue in the relay browser.

I keep getting this when I enter combat? I updated to the latest one, and it's in my script folder.
 
Last edited:
Upgrade KoLmafia.

But now I get:

> call scripts\bumcheekascend v0.54.ash

giant's castle (basement)
giant's castle (ground floor)
giant's castle (top floor)
Multiple matches against Giant Castle.
Bad location value: "Giant Castle" (bumcheekascend v0.54.ash, line 2467)
 
I'm running the current WHAM, in AoJ with KoLMafia r11906, with Winterbay's version of Batbrain and the script is choosing to use Love Song of Smoldering Passion versus the monsters in the airship when boil would work perfectly well and not use a consumable.

I can one-shot with boil and have enough mana-regen to recover the cost of the spell at the end of combat.

There's something wrong with the damage calculation. With no change in equipment or stats I'm consistently doing 135 point of damage with boil. Is it possible that WHAM and/or Batbrain isn't properly accounting for the +spell damage % in the calculation?

Here's some debug output at 11:

Code:
[825] Fantasy Airship
Encounter: Quiet Healer
Round 0: Arbos wins initiative!
Running ZLib version: r37 (current)
1 HP costs 6.667μ. ( 65 / 106 )
1 MP costs 17μ. ( 204 / 246 )
Running BatBrain version: 1.31.1 (current)
Running SmartStasis version: 3.18 (current)
Running WHAM version: 4.7 (current)
WHAM: We currently think that the round number is: 0 and that the turn number is 824.
WHAM: Checking to see if WHAM sould adjust the unknown_ml for Quiet Healer.
WHAM: No need to do anything with Quiet Healer.
WHAM: Setting up variables via BatBrain
amulet of extreme plot significance (10.0 @ +0.0): 205μ * 10% = 20.5
scroll of drastic healing (30.0 @ +0.0): 525μ * 30% = 157.5
soft green echo eyedrop antidote (30.0 @ +0.0): 118μ * 30% = 35.4
Value of stat gain: 247.19μ
amulet of extreme plot significance (10.0 @ +0.0): 205μ * 10% = 20.5
scroll of drastic healing (30.0 @ +0.0): 525μ * 30% = 157.5
soft green echo eyedrop antidote (30.0 @ +0.0): 118μ * 30% = 35.4
Value of stat gain: 247.19μ
ATT: 107 (94% × 32.31, death in 3)
DEF: 97 (11.45% × 2.8 (10), win in 47)
HP: 99, Value: 587.09 μ, RES: 0
Parsed round number: 1
Building options...
Evaluating '1.0'...
Evaluating '0.75'...
Evaluating '-106.0'...
Evaluating '1.0'...
Evaluating '0.6'...
Evaluating '7.5'...
Evaluating '-17.5'...
Evaluating '1.5*L+5'...
Evaluating '2.5'...
Evaluating '17.5'...
Evaluating '-2.5'...
Evaluating '-2.5'...
Evaluating '0.66*20'...
Evaluating '0.33*20'...
Evaluating '0.33*40'...
Evaluating '-5.5'...
Evaluating '-5.5'...
Evaluating '0.51'...
Evaluating '73.0'...
Evaluating '137.0'...
Evaluating '79.0'...
Evaluating '73.0'...
Evaluating '-min(100,ceil(5*sqrt(max(0,min(73.0,99.0)))))'...
Evaluating '137.0'...
Evaluating 'min(50,ceil(5*sqrt(max(0,min(137.0,99.0)))))'...
Evaluating '79.0'...
Evaluating '73.0'...
Evaluating '137.0'...
Evaluating '79.0'...
Evaluating 'max(73.0,max(79.0,137.0))'...
Evaluating '99.0'...
Evaluating '99.0'...
Evaluating '260+150'...
Evaluating '288.5*zone(sea)'...
Evaluating '-106.0'...
Evaluating '2.7*15'...
Evaluating '2.7*min(12.5+0.4*137.0+20.0+0.0,5.0*10)'...
Evaluating '2.7*min(45+min(0.3*137.0,50)+20.0+0.0,20.0*10)'...
Evaluating '2.7*min(45+min(0.3*137.0,50)+20.0+0.0,20.0*10)'...
Evaluating '2.7*min(12.5+0.4*137.0+20.0+0.0,5.0*10)'...
Evaluating '2.7*5'...
Evaluating '2.7*min(45+min(0.3*137.0,50)+20.0+0.0,30.0*10)*2'...
Evaluating '2.7*min(12.5+0.4*137.0+20.0+0.0,5.0*10)'...
Options built! (45 actions)
WHAM: We currently think that the round number is: 1 and that the turn number is 824.
WHAM: Current MP = 204 out of 246.
WHAM: You have no profitable MP restoratives.
WHAM: Current HP = 65 out of 106.
WHAM: You have no profitable HP restoratives.
WHAM: You are fighting a Quiet Healer. Mafia considers that this monster has an attack of 107 or 105 when given a monster name.
WHAM: Mafia further considers that this monster has a defense value of 97 or 95 when given a monster name.
WHAM: Mafia further further considers that this monster has a HP value of 99 or 100 when given a monster name.
WHAM: Your current ML-adjustment is: 10.
WHAM: Monster HP is 99.0.
WHAM: WHAM added the following to BatRound: if pastround 27; abort "Stopping fight because it has gone on for too long (set WHAM_maxround to a higher value if you think this was in error)"; endif; 
WHAM: Currently checking love song of smoldering passion which has a reported damage of 99.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 137.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 0.0 (physical).
WHAM: Currently checking Boil which has a reported damage of 99.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 135.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 0.0 (physical).
WHAM: Currently checking Chop which has a reported damage of 99.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 135.0 (physical).
WHAM: Currently checking Freeze which has a reported damage of 99.0 and is ok.
WHAM: Raw damage is estimated at 135.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 0.0 (physical).
WHAM: Currently checking Battlie Light Saver which has a reported damage of 49.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 49.0 (physical).
WHAM: Currently checking Slice which has a reported damage of 99.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 286.47 (physical).
WHAM: Currently checking Fry which has a reported damage of 99.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 286.47 (sleazy) and 0.0 (physical).
WHAM: Currently checking shard of double-ice which has a reported damage of 99.0 and is ok.
WHAM: Raw damage is estimated at 137.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 0.0 (physical).
WHAM: Currently checking Grill which has a reported damage of 99.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 286.47 (hot), 0.0 (stench), 286.47 (spooky), 0.0 (sleazy) and 0.0 (physical).
WHAM: Currently checking Curdle which has a reported damage of 40.5 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 40.5 (stench), 0.0 (spooky), 0.0 (sleazy) and 0.0 (physical).
WHAM: Currently checking Duskwalker syringe which has a reported damage of 38.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 38.0 (physical).
WHAM: Currently checking divine can of silly string which has a reported damage of 99.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 137.0 (physical).
WHAM: Currently checking love song of disturbing obsession which has a reported damage of 99.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 137.0 (spooky), 0.0 (sleazy) and 0.0 (physical).
WHAM: Currently checking love song of vague ambiguity which has a reported damage of 73.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 73.0 (physical).
WHAM: Currently checking photoprotoneutron torpedo which has a reported damage of 40.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 40.0 (physical).
WHAM: Currently checking flaregun which has a reported damage of 19.8 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 6.6000000000000005 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 13.200000000000001 (physical).
WHAM: Currently checking divine blowout which has a reported damage of 79.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 79.0 (physical).
WHAM: Currently checking divine noisemaker which has a reported damage of 73.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 73.0 (physical).
WHAM: Currently checking love song of sugary cuteness which has a reported damage of 73.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 73.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 0.0 (physical).
WHAM: Currently checking love song of naughty innuendo which has a reported damage of 79.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 79.0 (sleazy) and 0.0 (physical).
WHAM: Currently checking Bake which has a reported damage of 13.5 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 13.5 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 0.0 (physical).
WHAM: Currently checking bag of airline peanuts which has a reported damage of 8.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 8.0 (physical).
WHAM: Currently checking love song of icy revenge which has a reported damage of 79.0 and is ok.
WHAM: Raw damage is estimated at 79.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 0.0 (physical).
WHAM: Currently checking noxious gas grenade which has a reported damage of 99.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 205.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 205.0 (physical).
WHAM: Currently checking razor-sharp can lid which has a reported damage of 2.5 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 2.5 (physical).
WHAM: Currently checking The Bomb which has a reported damage of 99.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 99.0 (physical).
WHAM: Currently checking bobcat grenade which has a reported damage of 99.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 99.0 (physical).
WHAM: Currently checking none which has a reported damage of 2.1454545454545455 and is not ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 1.1454545454545455 (stench), 0.0 (spooky), 0.0 (sleazy) and 0.9507272727272729 (physical).
WHAM: Currently checking seal tooth which has a reported damage of 1.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 1.0 (physical).
use 3755 does hurt the monster for 99.0 and is ok.
amulet of extreme plot significance (10.0 @ +0.0): 205μ * 10% = 20.5
scroll of drastic healing (30.0 @ +0.0): 525μ * 30% = 157.5
soft green echo eyedrop antidote (30.0 @ +0.0): 118μ * 30% = 35.4
Value of stat gain: 247.19μ
WHAM: Attack option chosen: use 3755 (round 1, profit: -46)
WHAM: We currently think that the round number is: 1 and that the turn number is 824.
WHAM: Starting evaluation and performing of attack
WHAM: We currently think that the round number is: 1 and that the turn number is 824.
use 3755 does hurt the monster for 99.0 and is ok.
amulet of extreme plot significance (10.0 @ +0.0): 205μ * 10% = 20.5
scroll of drastic healing (30.0 @ +0.0): 525μ * 30% = 157.5
soft green echo eyedrop antidote (30.0 @ +0.0): 118μ * 30% = 35.4
Value of stat gain: 247.19μ
WHAM: Attack option chosen: use 3755 (round 1, profit: -46)
WHAM: No need to stun this monster
Evaluating '99.0'...
Evaluating '0.0'...
Queued: use 3755
Building options...
Evaluating '1.0'...
Evaluating '0.75'...
Evaluating '-106.0'...
Evaluating '1.0'...
Evaluating '0.6'...
Evaluating '7.5'...
Evaluating '-17.5'...
Evaluating '1.5*L+5'...
Evaluating '2.5'...
Evaluating '17.5'...
Evaluating '-2.5'...
Evaluating '-2.5'...
Evaluating '0.66*20'...
Evaluating '0.33*20'...
Evaluating '0.33*40'...
Evaluating '-5.5'...
Evaluating '-5.5'...
Evaluating '0.51'...
Evaluating '73.0'...
Evaluating '137.0'...
Evaluating '79.0'...
Evaluating '73.0'...
Evaluating '-min(100,ceil(5*sqrt(max(0,min(73.0,0.0)))))'...
Evaluating '137.0'...
Evaluating 'min(50,ceil(5*sqrt(max(0,min(137.0,0.0)))))'...
Evaluating '79.0'...
Evaluating '73.0'...
Evaluating '137.0'...
Evaluating '79.0'...
Evaluating 'max(73.0,max(79.0,137.0))'...
Evaluating '0.0'...
Evaluating '0.0'...
Evaluating '260+150'...
Evaluating '288.5*zone(sea)'...
Evaluating '-106.0'...
Evaluating '2.7*15'...
Evaluating '2.7*min(12.5+0.4*137.0+20.0+0.0,5.0*10)'...
Evaluating '2.7*min(45+min(0.3*137.0,50)+20.0+0.0,20.0*10)'...
Evaluating '2.7*min(45+min(0.3*137.0,50)+20.0+0.0,20.0*10)'...
Evaluating '2.7*min(12.5+0.4*137.0+20.0+0.0,5.0*10)'...
Evaluating '2.7*5'...
Evaluating '2.7*min(45+min(0.3*137.0,50)+20.0+0.0,30.0*10)*2'...
Evaluating '2.7*min(12.5+0.4*137.0+20.0+0.0,5.0*10)'...
Options built! (45 actions)
Parsed round number: 1
Building options...
Evaluating '1.0'...
Evaluating '0.75'...
Evaluating '-106.0'...
Evaluating '1.0'...
Evaluating '0.6'...
Evaluating '7.5'...
Evaluating '-17.5'...
Evaluating '1.5*L+5'...
Evaluating '2.5'...
Evaluating '17.5'...
Evaluating '-2.5'...
Evaluating '-2.5'...
Evaluating '0.66*20'...
Evaluating '0.33*20'...
Evaluating '0.33*40'...
Evaluating '-5.5'...
Evaluating '-5.5'...
Evaluating '0.51'...
Evaluating '73.0'...
Evaluating '137.0'...
Evaluating '79.0'...
Evaluating '73.0'...
Evaluating '-min(100,ceil(5*sqrt(max(0,min(73.0,99.0)))))'...
Evaluating '137.0'...
Evaluating 'min(50,ceil(5*sqrt(max(0,min(137.0,99.0)))))'...
Evaluating '79.0'...
Evaluating '73.0'...
Evaluating '137.0'...
Evaluating '79.0'...
Evaluating 'max(73.0,max(79.0,137.0))'...
Evaluating '99.0'...
Evaluating '99.0'...
Evaluating '260+150'...
Evaluating '288.5*zone(sea)'...
Evaluating '-106.0'...
Evaluating '2.7*15'...
Evaluating '2.7*min(12.5+0.4*137.0+20.0+0.0,5.0*10)'...
Evaluating '2.7*min(45+min(0.3*137.0,50)+20.0+0.0,20.0*10)'...
Evaluating '2.7*min(45+min(0.3*137.0,50)+20.0+0.0,20.0*10)'...
Evaluating '2.7*min(12.5+0.4*137.0+20.0+0.0,5.0*10)'...
Evaluating '2.7*5'...
Evaluating '2.7*min(45+min(0.3*137.0,50)+20.0+0.0,30.0*10)*2'...
Evaluating '2.7*min(12.5+0.4*137.0+20.0+0.0,5.0*10)'...
Options built! (45 actions)
WHAM: Evaluating the attack but not performing it took 2.58 seconds.
WHAM: Debug printing the damage dealt by your options.

WHAM: Currently checking love song of smoldering passion which has a reported damage of 99.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 137.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 0.0 (physical).
WHAM: Currently checking Boil which has a reported damage of 99.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 135.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 0.0 (physical).
WHAM: Currently checking Chop which has a reported damage of 99.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 135.0 (physical).
WHAM: Currently checking Freeze which has a reported damage of 99.0 and is ok.
WHAM: Raw damage is estimated at 135.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 0.0 (physical).
WHAM: Currently checking Battlie Light Saver which has a reported damage of 49.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 49.0 (physical).
WHAM: Currently checking Slice which has a reported damage of 99.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 286.47 (physical).
WHAM: Currently checking Fry which has a reported damage of 99.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 286.47 (sleazy) and 0.0 (physical).
WHAM: Currently checking shard of double-ice which has a reported damage of 99.0 and is ok.
WHAM: Raw damage is estimated at 137.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 0.0 (physical).
WHAM: Currently checking Grill which has a reported damage of 99.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 286.47 (hot), 0.0 (stench), 286.47 (spooky), 0.0 (sleazy) and 0.0 (physical).
WHAM: Currently checking Curdle which has a reported damage of 40.5 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 40.5 (stench), 0.0 (spooky), 0.0 (sleazy) and 0.0 (physical).
WHAM: Currently checking Duskwalker syringe which has a reported damage of 38.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 38.0 (physical).
WHAM: Currently checking divine can of silly string which has a reported damage of 99.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 137.0 (physical).
WHAM: Currently checking love song of disturbing obsession which has a reported damage of 99.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 137.0 (spooky), 0.0 (sleazy) and 0.0 (physical).
WHAM: Currently checking love song of vague ambiguity which has a reported damage of 73.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 73.0 (physical).
WHAM: Currently checking photoprotoneutron torpedo which has a reported damage of 40.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 40.0 (physical).
WHAM: Currently checking flaregun which has a reported damage of 19.8 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 6.6000000000000005 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 13.200000000000001 (physical).
WHAM: Currently checking divine blowout which has a reported damage of 79.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 79.0 (physical).
WHAM: Currently checking divine noisemaker which has a reported damage of 73.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 73.0 (physical).
WHAM: Currently checking love song of sugary cuteness which has a reported damage of 73.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 73.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 0.0 (physical).
WHAM: Currently checking love song of naughty innuendo which has a reported damage of 79.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 79.0 (sleazy) and 0.0 (physical).
WHAM: Currently checking Bake which has a reported damage of 13.5 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 13.5 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 0.0 (physical).
WHAM: Currently checking bag of airline peanuts which has a reported damage of 8.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 8.0 (physical).
WHAM: Currently checking love song of icy revenge which has a reported damage of 79.0 and is ok.
WHAM: Raw damage is estimated at 79.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 0.0 (physical).
WHAM: Currently checking noxious gas grenade which has a reported damage of 99.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 205.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 205.0 (physical).
WHAM: Currently checking razor-sharp can lid which has a reported damage of 2.5 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 2.5 (physical).
WHAM: Currently checking The Bomb which has a reported damage of 99.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 99.0 (physical).
WHAM: Currently checking bobcat grenade which has a reported damage of 99.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 99.0 (physical).
WHAM: Currently checking none which has a reported damage of 2.1454545454545455 and is not ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 1.1454545454545455 (stench), 0.0 (spooky), 0.0 (sleazy) and 0.9507272727272729 (physical).
WHAM: Currently checking seal tooth which has a reported damage of 1.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 0.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 1.0 (physical).
WHAM: love song of smoldering passion: 99.00 potential damage (raw damage: 137.00) and a hitchance of 100.00%.
WHAM: Boil: 99.00 potential damage (raw damage: 135.00) and a hitchance of 100.00%.
WHAM: Chop: 99.00 potential damage (raw damage: 135.00) and a hitchance of 100.00%.
WHAM: Freeze: 99.00 potential damage (raw damage: 135.00) and a hitchance of 100.00%.
WHAM: Slice: 99.00 potential damage (raw damage: 286.47) and a hitchance of 100.00%.
WHAM: Fry: 99.00 potential damage (raw damage: 286.47) and a hitchance of 100.00%.
WHAM: shard of double-ice: 99.00 potential damage (raw damage: 137.00) and a hitchance of 100.00%.
WHAM: Grill: 99.00 potential damage (raw damage: 572.94) and a hitchance of 100.00%.
WHAM: divine can of silly string: 99.00 potential damage (raw damage: 137.00) and a hitchance of 100.00%.
WHAM: love song of disturbing obsession: 99.00 potential damage (raw damage: 137.00) and a hitchance of 100.00%.
WHAM: noxious gas grenade: 99.00 potential damage (raw damage: 410.00) and a hitchance of 100.00%.
WHAM: The Bomb: 99.00 potential damage (raw damage: 99.00) and a hitchance of 100.00%.
WHAM: bobcat grenade: 99.00 potential damage (raw damage: 99.00) and a hitchance of 100.00%.
WHAM: divine blowout: 79.00 potential damage (raw damage: 79.00) and a hitchance of 100.00%.
WHAM: love song of naughty innuendo: 79.00 potential damage (raw damage: 79.00) and a hitchance of 100.00%.
WHAM: love song of icy revenge: 79.00 potential damage (raw damage: 79.00) and a hitchance of 100.00%.
WHAM: love song of vague ambiguity: 73.00 potential damage (raw damage: 73.00) and a hitchance of 100.00%.
WHAM: divine noisemaker: 73.00 potential damage (raw damage: 73.00) and a hitchance of 100.00%.
WHAM: love song of sugary cuteness: 73.00 potential damage (raw damage: 73.00) and a hitchance of 100.00%.
WHAM: Battlie Light Saver: 49.00 potential damage (raw damage: 49.00) and a hitchance of 100.00%.
WHAM: Curdle: 40.50 potential damage (raw damage: 40.50) and a hitchance of 100.00%.
WHAM: photoprotoneutron torpedo: 40.00 potential damage (raw damage: 40.00) and a hitchance of 100.00%.
WHAM: Duskwalker syringe: 38.00 potential damage (raw damage: 38.00) and a hitchance of 100.00%.
WHAM: flaregun: 19.80 potential damage (raw damage: 19.80) and a hitchance of 100.00%.
WHAM: Bake: 13.50 potential damage (raw damage: 13.50) and a hitchance of 100.00%.
WHAM: bag of airline peanuts: 8.00 potential damage (raw damage: 8.00) and a hitchance of 100.00%.
WHAM: razor-sharp can lid: 2.50 potential damage (raw damage: 2.50) and a hitchance of 100.00%.
WHAM: seal tooth: 1.00 potential damage (raw damage: 1.00) and a hitchance of 100.00%.
WHAM: magical mystery juice: 0.00 potential damage (raw damage: 0.00) and a hitchance of 100.00%.
WHAM: CSA obedience grenade: 0.00 potential damage (raw damage: 0.00) and a hitchance of 100.00%.
WHAM: Blend: 0.00 potential damage (raw damage: 0.00) and a hitchance of 100.00%.
WHAM: Mountain Stream soda: 0.00 potential damage (raw damage: 0.00) and a hitchance of 100.00%.
WHAM: inkwell: 0.00 potential damage (raw damage: 0.00) and a hitchance of 100.00%.
WHAM: spider web: 0.00 potential damage (raw damage: 0.00) and a hitchance of 100.00%.
WHAM: 8-ball: 0.00 potential damage (raw damage: 0.00) and a hitchance of 100.00%.
WHAM: cloudy potion: 0.00 potential damage (raw damage: 0.00) and a hitchance of 100.00%.
WHAM: cast: 0.00 potential damage (raw damage: 0.00) and a hitchance of 100.00%.
WHAM: fizzy potion: 0.00 potential damage (raw damage: 0.00) and a hitchance of 100.00%.
WHAM: dark potion: 0.00 potential damage (raw damage: 0.00) and a hitchance of 100.00%.
WHAM: soggy used band-aid: 0.00 potential damage (raw damage: 0.00) and a hitchance of 100.00%.
WHAM: effervescent potion: 0.00 potential damage (raw damage: 0.00) and a hitchance of 100.00%.
WHAM: smoky potion: 0.00 potential damage (raw damage: 0.00) and a hitchance of 100.00%.

WHAM: Evaluating the attack but not performing it took 3.18 seconds.
Round 1: Arbos executes a macro!
KoLmafia thinks it is round 2 but KoL thinks it is round 1
WHAM: Verbosity of 10 or more is set. Data files for debugging have been generated. Aborting.
You're on your own, partner.

And here is the output from the same combat with debug at 9:

Code:
Running ZLib version: r37 (current)
Previous value of verbosity: 11
Changed to 9.
Running ZLib version: r37 (current)
1 HP costs 6.667μ. ( 65 / 106 )
1 MP costs 17μ. ( 204 / 246 )
Running BatBrain version: 1.31.1 (current)
Running SmartStasis version: 3.18 (current)
Running WHAM version: 4.7 (current)
WHAM: We currently think that the round number is: 0 and that the turn number is 824.
WHAM: Checking to see if WHAM sould adjust the unknown_ml for Quiet Healer.
WHAM: No need to do anything with Quiet Healer.
WHAM: Setting up variables via BatBrain
amulet of extreme plot significance (10.0 @ +0.0): 205μ * 10% = 20.5
scroll of drastic healing (30.0 @ +0.0): 525μ * 30% = 157.5
soft green echo eyedrop antidote (30.0 @ +0.0): 118μ * 30% = 35.4
Value of stat gain: 247.19μ
amulet of extreme plot significance (10.0 @ +0.0): 205μ * 10% = 20.5
scroll of drastic healing (30.0 @ +0.0): 525μ * 30% = 157.5
soft green echo eyedrop antidote (30.0 @ +0.0): 118μ * 30% = 35.4
Value of stat gain: 247.19μ
ATT: 107 (94% × 32.31, death in 3)
DEF: 97 (11.45% × 2.8 (10), win in 47)
HP: 99, Value: 587.09 μ, RES: 0
Parsed round number: 1
Building options...
Options built! (45 actions)
WHAM: We currently think that the round number is: 1 and that the turn number is 824.
WHAM: Current MP = 204 out of 246.
WHAM: You have no profitable MP restoratives.
WHAM: Current HP = 65 out of 106.
WHAM: You have no profitable HP restoratives.
WHAM: You are fighting a Quiet Healer. Mafia considers that this monster has an attack of 107 or 105 when given a monster name.
WHAM: Mafia further considers that this monster has a defense value of 97 or 95 when given a monster name.
WHAM: Mafia further further considers that this monster has a HP value of 99 or 100 when given a monster name.
WHAM: Your current ML-adjustment is: 10.
WHAM: Monster HP is 99.0.
WHAM: WHAM added the following to BatRound: if pastround 27; abort "Stopping fight because it has gone on for too long (set WHAM_maxround to a higher value if you think this was in error)"; endif; 
amulet of extreme plot significance (10.0 @ +0.0): 205μ * 10% = 20.5
scroll of drastic healing (30.0 @ +0.0): 525μ * 30% = 157.5
soft green echo eyedrop antidote (30.0 @ +0.0): 118μ * 30% = 35.4
Value of stat gain: 247.19μ
WHAM: Attack option chosen: use 3755 (round 1, profit: -46)
WHAM: Running SmartStasis
Profit per round: ActionProfitDamageOtherbase (0μ)0μ--
Building custom WHAM actions...
WHAM: This monster does not drop a goal item
Custom WHAM actions built! (0 actions)
Building custom actions...
Custom actions built! (0 actions)
WHAM: Stasis option chosen: use 2 (round 1, profit: -173.3)
amulet of extreme plot significance (10.0 @ +0.0): 205μ * 10% = 20.5
scroll of drastic healing (30.0 @ +0.0): 525μ * 30% = 157.5
soft green echo eyedrop antidote (30.0 @ +0.0): 118μ * 30% = 35.4
Value of stat gain: 247.19μ
WHAM: Attack option chosen: use 3755 (round 1, profit: -46)
This monster is not your huckleberry.
Stasis loop complete.
WHAM: SmartStasis complete.
WHAM: Running SmartStasis took 0.70 seconds.
WHAM: SS did not finish the fight, continuing with script execution. 
WHAM: We currently think that the round number is: 1 and that the turn number is 824.
WHAM: Starting evaluation and performing of attack
WHAM: We currently think that the round number is: 1 and that the turn number is 824.
amulet of extreme plot significance (10.0 @ +0.0): 205μ * 10% = 20.5
scroll of drastic healing (30.0 @ +0.0): 525μ * 30% = 157.5
soft green echo eyedrop antidote (30.0 @ +0.0): 118μ * 30% = 35.4
Value of stat gain: 247.19μ
WHAM: Attack option chosen: use 3755 (round 1, profit: -46)
WHAM: No need to stun this monster
Queued: use 3755
Building options...
Options built! (45 actions)
Parsed round number: 1
Building options...
Options built! (45 actions)
WHAM: Evaluating the attack but not performing it took 1.66 seconds.
WHAM: We can't Saucesplash.
true, true, true, true, false
WHAM: Enqueueing love song of smoldering passion (macroid use 3755). Estimated damage: 99.0.
Queued: use 3755
Building options...
Options built! (45 actions)
WHAM: Successfully enqueued love song of smoldering passion.
WHAM: We are going to 1-shot with love song of smoldering passion.
Constructed macro: scrollwhendone; sub batround; if pastround 27; abort "Stopping fight because it has gone on for too long (set WHAM_maxround to a higher value if you think this was in error)"; endif; endsub; use 3755; call batround; 
Round 2: Arbos executes a macro!
Round 2: Arbos uses the love song of smoldering passion!
KoLmafia thinks it is round 3 but KoL thinks it is round 2
Round 3: quiet healer takes 137 damage.
You gain 25 Mana Points
Round 3: Arbos wins the fight!
You acquire an item: water purification pills
You gain 135 Meat
You acquire an item: amulet of extreme plot significance
You acquire an item: soft green echo eyedrop antidote
You gain 8 Fortitude
You gain 11 Wizardliness
You gain 11 Roguishness
Happened: use 3755
Parsed round number: 0
Look! You found 1 amulet of extreme plot significance (205μ)!
Look! You found 1 soft green echo eyedrop antidote (118μ)!
Look! You found 1 water purification pills (23μ)!
WHAM: Evaluating the attack and performing it took 5.09 seconds.
WHAM: We currently think that the round number is: 31 and that the turn number is 825.
WHAM: We currently think that the round number is: 31 and that the turn number is 825.
 
Last edited:
Curiously that was discussed in the last few pages of the BCCAscend thread here.

One way is to go to http://bumcheekascend.svn.sourceforge.net/viewvc/bumcheekascend/ click on the revision number next to bumcheekascend and then use the download link on the next page. I'd link to that for you except that SourceForge is being terribly unresponsive at the moment and about half my requests are timing out.

Attempting to download opens up a page with the script, how do I say it as a .ash script? Or am I doing this wrong?

I also try to save the page and then run the script, but I get: Script parsing error (bumcheekascend.ash, line 2) There doesn't seem to be anything wrong with line 2..
 
Last edited:
There's something wrong with the damage calculation. With no change in equipment or stats I'm consistently doing 135 point of damage with boil. Is it possible that WHAM and/or Batbrain isn't properly accounting for the +spell damage % in the calculation?
Code:
WHAM: Currently checking Boil which has a reported damage of 99.0 and is ok.
WHAM: Raw damage is estimated at 0.0 (cold), 135.0 (hot), 0.0 (stench), 0.0 (spooky), 0.0 (sleazy) and 0.0 (physical).
Thanks for the full debug logs. As you can see from the line I kept, BatBrain is properly computing damage from boil as 135 hot. The reason it says 99 damage is because that's the monster's HP. WHAM/BatBrain try to choose the least expensive option for the kill. The problem is comparing items to MP is like comparing apples and oranges. I understand to you, the MP cost was effectively zero. You can ask WHAM not to use items. That's what I ended up doing, because I couldn't figure out any way to make it better.
 
I'm running the current WHAM, in AoJ with KoLMafia r11906, with Winterbay's version of Batbrain and the script is choosing to use Love Song of Smoldering Passion versus the monsters in the airship when boil would work perfectly well and not use a consumable.

I can one-shot with boil and have enough mana-regen to recover the cost of the spell at the end of combat.

There's something wrong with the damage calculation. With no change in equipment or stats I'm consistently doing 135 point of damage with boil. Is it possible that WHAM and/or Batbrain isn't properly accounting for the +spell damage % in the calculation?

Here's some debug output at 11:

Interesting. Could you try commenting out the code on line 480
Code:
sort opts by -dmg_dealt(value.dmg);
and see if that helps? It appears that the love song is put ahead of boil due to doing 2 more raw damage (137 versus 135) and that is definitely used in that sort call...
 
Here's an new odd bug I've been seeing recently. This monster has 1 HP left, but WHAM seems to think it has zero, so can't find any thing that will do any damage. I've got a Monster Manuel, which shows 1 HP left.
Code:
[1017] Giant's Castle (Top Floor)
Encounter: Raver Giant
Strategy: /home/scottk/.kolmafia/ccs/Destroy.ccs [default]
Round 0: Crowther wins initiative!
Round 1: Crowther uses the Rain-Doh indigo cup!
You gain 75 hit points
WHAM: Running SmartStasis
WHAM: Starting evaluation and performing of attack
WHAM: Enqueuing a stun to help with the battle
Round 2: Crowther executes a macro!
Round 2: Crowther casts OPEN THE BAG O' TRICKS!
Round 3: Crowther casts CANDYBLAST!
Round 4: Crowther casts CANDYBLAST!
You acquire an item: Daffy Taffy
Round 5: Crowther casts CANDYBLAST!
WHAM: Starting evaluation and performing of attack
WHAM: Unable to delevel until you can kill the monster without it killing you. Try it yourself.
WHAM: Unable to determine a valid combat strategy. For your benefit here are the numbers for you combat skills.
WHAM: Candyblast: 0.00 potential damage (raw damage: 43.43) and a hitchance of 100.00%.
ETC, ETC
 
Interesting. Could you try commenting out the code on line 480
Code:
sort opts by -dmg_dealt(value.dmg);
and see if that helps? It appears that the love song is put ahead of boil due to doing 2 more raw damage (137 versus 135) and that is definitely used in that sort call...

That did the trick. I went back to the airship with the same gear and buffs active and it chose Boil every time. In other locations, with other gear, WHAM sensibly chose other combat options when it made sense to do so.
 
Last edited:
Hey FYI, it seems like WHAM & BatBrain go a little crazy when Mafia thinks the monster should have 0 HP and is yet still alive. I thought I'd let you know some things I did on my copy. I changed the first line of attack_option() to:

Code:
if ( (item_amount($item[gnomitronic hyperspatial demodulizer])>0) && !happened($item[gnomitronic hyperspatial demodulizer]) && monster_stat("hp") <= dmg_dealt(get_action("use 2848").dmg))

This is because without the item check it would choose the advevent for this item even if I didn't have it if the monster's HP stat was 0 or lower; thus returning a blank attack option which would make Calculate_Options think it couldn't kill the monster and delevel indefinitely.

After fixing this still I ran into a problem where BatBrain/WHAM wouldn't choose any attacks if Mafia thinks the monster should have 0 HP left but is still alive. After a careful statistical and analytical process I like to refer to as "pulling a number out my ass", I set BatBrain to pretend the mob has 10 HP left when it thinks it should be 0 or less, by changing this line in BatBrain's "float dmg_dealt(spread action)":

Code:
if (eform == $element[none]) return min(res,monster_stat("hp"));
to
if (eform == $element[none]) return min(res,(monster_stat("hp")<=0?10:monster_stat("hp")) );

Incidentally, thanks for this awesome script; every time a new path is released or there are other significant changes it always reminds me how much easier WHAM, SS & BatBrain make things when I have to turn them off for a while. Thanks for keeping up on it.
 
Last edited:
I'm really liking the new stunning WHAM. I turned items back on too, so it no uses my blue balls and indigo cup well. Those stupid oil barons are a real problem. They're immune to multi round stunning and hit very hard. If I figure out how they work, where does that information go? Mafia, BatBrain, WHAM?

Incidentally, thanks for this awesome script; every time a new path is released or there are other significant changes it always reminds me how much easier WHAM, SS & BatBrain make things when I have to turn them off for a while. Thanks for keeping up on it.
Agreed!
 
Last edited:
The stunning has a small, almost insignificant, bug though in that it will not count damage made by physical means (error that comes from me assuming that $element[none] was included in $elements[]).

That said: In BatBrain in the addopt()-function there is the following code:
Code:
   if (a.stun > 1 && $monsters[cyrus the virus, queen bee, beebee king, bee thoven,
      buzzerker, oil tycoon, oil baron, oil cartel] contains m) a.stun = 0;

Which is where any other multi-round ignoring stunners should be added I think.

Also, yes the problem with WHAM not being able to attack due to the monster having 0 (or less) HP left is definitely with BatBrain and dmg_dealt which caps it at 0. Ran into a problem myself today where the script couldn't kill anything in the treasury due to every skill reportedly doing 0 damage. With a level 52 character...
 
just as an FYI, i had to comment out lines 366/367 because it's a dupe use case. not sure which is the intended one to keep:

Code:
case "use 2848":	//Gnomitronic thingamabob
return (!happened($item[gnomitronic hyperspatial demodulizer]));
or
Code:
//case "use 2848":	//Gnomitronic Thingamabob
//	return (item_amount($item[gnomitronic hyperspatial demodulizer]) > 0);

since i dont have one i just decided to comment the second.
 
If you redownload the script it should not do that any more since I combined them. You managed to download it in the 3 minutes it took from me uploading the first one to uploading the second one :)
 
After a careful statistical and analytical process I like to refer to as "pulling a number out my ass", I set BatBrain to pretend the mob has 10 HP left when it thinks it should be 0 or less

Monster HP can vary by up to 5 from the expected value, so that's probably what you want to use instead of 10.
 
I have just installed WHAM to try to use it in my Jarlsberg run but I keep getting this error

Code:
Cannot apply operator * to m_regular() (spread) and ( 1 - m_hit_chance() ) (float) (SmartStasis.ash, line 143)
Consult script 'WHAM.ash' not found.
You're on your own, partner.
Click here to continue in the relay browser.

(I have all the required scripts for it to run it installed)
 
Back
Top