Bug - Fixed getWorkshed() returns none when out of CMC consults

Issue is pretty much in the name; getWorkshed() returns $item[none] when your current workshed is the Cold Medicine Cabinet, but you're out of consults.

The game returns the text
Looks like the doctors are out for the day.
You have 0 consultations left today.
 

gausie

D̰͕̝͚̤̥̙̐̇̑͗̒e͍͔͎͈͔ͥ̉̔̅́̈l̠̪̜͓̲ͧ̍̈́͛v̻̾ͤe͗̃ͥ̐̊ͬp̔͒ͪ
Staff member
In general bug reports like this can be fixed really quickly if you can either
  1. Ideally write a failing test for this in a PR that tests CampgroundRequest correctly sets the item when given some HTML that you capture
  2. Failing that, post the HTML from the page in question so I can quickly do 1)
I'll get to this when I run my turns today, at which point I'll have also used 5 consults.
 

gausie

D̰͕̝͚̤̥̙̐̇̑͗̒e͍͔͎͈͔ͥ̉̔̅́̈l̠̪̜͓̲ͧ̍̈́͛v̻̾ͤe͗̃ͥ̐̊ͬp̔͒ͪ
Staff member
I think Neil fixed this one in 719, marking fixed
 
Top