Bug - Fixed _saberForceUses is being set to exactly incorrect values

[61] Madness Bakery
Preference lastEncounter changed from Witchess Witch to the ghost of Monsieur Baguelle
Encounter: the ghost of Monsieur Baguelle
Round 0: Butts McGruff wins initiative!
Preference cosmicBowlingBallReturnCombats changed from 3 to 2
Preference _saberForceUses changed from 0 to 5

That's a snippet from a recent session log. At first I assumed the issue was Monsieur Baguelle being uncopyable, but upon review of the most recent merged PR, it looks like the issue is here:
Code:
COMBAT_SKILL    Use the Force    Use the Force, [\w ]+! \((\d+) uses? left\)    _saberForceUses=$1

kol is giving us the remaining uses; we're turning that into the number of times we've used it.


I thought this would be more complicated when I started writing this, so expect a PR a minute or two after I press "post thread."
EDIT: here you go
 
Last edited:

gausie

D̰͕̝͚̤̥̙̐̇̑͗̒e͍͔͎͈͔ͥ̉̔̅́̈l̠̪̜͓̲ͧ̍̈́͛v̻̾ͤe͗̃ͥ̐̊ͬp̔͒ͪ
Staff member
And thank you for your PR!
 
Top