Bug Casting Sweat out some booze via use_skill isn't decrementing the sweat property

Malibu Stacey

Active member
Screenshot 2022-07-06 142540.png
Screenshot 2022-07-06 142611.png

Actually this isn't the bug. 41 is the correct amount of sweat (I checked the pants description as it's listed there now). Why it had 141 when it should've been 91 before I used the skill I don't know but I'll look through my session log to see if there's anything obvious.

OK found the actual bug
Code:
[850357] [glitch season reward name]
Preference lastEncounter changed from jock to %monster%
Encounter: %monster%
Preference _lastCombatStarted changed from 20220706210900 to 20220706210910
Preference _glitchMonsterFights changed from 0 to 1
Round 0: Malibu Stacey wins initiative!
<snipped>
Round 25: Malibu Stacey wins the fight!
You gain 4,635 Meat.
After Battle: You gain 4,635 Mojo Points
After Battle: You gain 4,635 hit points
After Battle: Looking at the snowglobe reminds you of that time at KoL Con VII, when you and Rum Ralph totally stole the show at karaoke. They made you give it back, but it was still pretty Moxious.
After Battle: You gain 19 Sarcasm
After Battle: CNV surveys the scene from your back and sighs.
You gain 85 Meat
You acquire an item: leather bookmark
After Battle: Gobert gorges himself on candy from his bag.
After Battle: Gobert blinks his eyes intelligently, like Oliver Cromwell would. Some of that intelligence rubs off on you. (+4 Mysticality Stats)
After Battle: You gain 424 Beefiness
After Battle: You gain 380 Enchantedness
After Battle: You gain 712 Chutzpah
Preference _juneCleaverFightsLeft changed from 11 to 10
Preference _juneCleaverSleaze changed from 14 to 15
Preference sweat changed from 97 to 99
Preference _stinkyCheeseCount changed from 83 to 84
This combat did not cost a turn
Preference lastAdventure changed from None to The Neverending Party

familiar Machine Elf (55 lbs)

cast 1 Sweat Out Some Booze
You lose 1 Drunkenness
Preference _sweatOutSomeBoozeUsed changed from 1 to 2
Preference lastAdventure changed from The Neverending Party to The Deep Machine Tunnels

[850357] The Deep Machine Tunnels
Preference lastEncounter changed from %monster% to Assumer of Facts and Mechanisms
Encounter: Assumer of Facts and Mechanisms
Preference _lastCombatStarted changed from 20220706210910 to 20220706211338
Round 0: Malibu Stacey wins initiative!
<snipped>
Round 9: Malibu Stacey wins the fight!
After Battle: You gain 21 Strongness
After Battle: You gain 5 Magicalness
After Battle: Freely Gamboling clucks his tongue and time starts passing again. This makes you realize that no time had passed while you were fighting that weird monster.
You acquire an item: abstraction: thought
After Battle: You notice some extra Meat hidden behind a hole in time.
You gain 16 Meat
After Battle: You gain 27 Fortitude
You gain a Muscle point!
You gain a Moxie point!
Preference _juneCleaverFightsLeft changed from 10 to 9
Preference _juneCleaverSleaze changed from 15 to 16
Preference sweat changed from 99 to 101
Preference _stinkyCheeseCount changed from 84 to 85
Preference encountersUntilDMTChoice changed from 8 to 7
Preference lastCopyableMonster changed from jock to Thinker of Thoughts
Preference _machineTunnelsAdv changed from 0 to 1
This combat did not cost a turn

cast 1 Sweat Out Some Booze
You lose 1 Drunkenness
Preference _sweatOutSomeBoozeUsed changed from 2 to 3

[850357] The Deep Machine Tunnels

Those casts were caused by this code in my preAdventureScript

Code:
    if (get_property("sweat").to_int() > 97 && get_property("_sweatOutSomeBoozeUsed").to_int() < 3) {
      item currentPants = equipped_item($slot[pants]);
      equip($item[designer sweatpants]);
      use_skill(1, $skill[Sweat Out Some Booze]);
      equip(currentPants);
    }

this is running r26536.
 
Last edited:
This should be resolved for noncombat skills. Someone else can work on combat skills, I am technically recovering from surgery right now, so will likely not work on it for in-combat. But who knows! Maybe I'll get bored!
 
Top