I suppose I could do that. I think the value of the zlib variable should be the maximum price to pay for the munchie pill. A price of 0 would refuse to use one. (Though honestly if there was a pill for 100 meat it would be stupid not to use one.) Does that sound good?
Whether they are in your inventory or not shouldn't be relevant. When you use a pill from your inventory, it costs you since you could have sold it in the mall.So as long as it understands that it wants to use munchines pills already in your inventory (no matter the price), then that is ok with me.
Visit to Island: Frat House (Stone Age) in progress...
Bad location value: "Friar's Gate" (CounterChecker.ash, line 511)
Fortune Cookie counter expired. Last semirare found 337 turns ago (on turn 71175) in Outskirts of The Knob
Easiest thing to do is to remove the semirare items you don't want, and turn on SRinHC setting...
location expensive_semi(string last)
{
item [location] semi_rare;
if(can_interact())
{
semi_rare[$location[The Purple Light District]] = $item[lewd playing card];
semi_rare[$location[Haunted Billiards Room]] = $item[cube of billiard chalk];
semi_rare[$location[Menagerie 2]] = $item[irradiated pet snacks];
semi_rare[$location[Outskirts of The Knob]] = $item[Knob Goblin lunchbox];
semi_rare[$location[Limerick Dungeon]] = $item[cyclops eyedrops];
semi_rare[$location[Sleazy Back Alley]] = $item[distilled fortified wine];
semi_rare[$location[Haunted Pantry]] = $item[tasty tart];
semi_rare[$location[Harem]] = $item[scented massage oil];
semi_rare[$location[Haunted Kitchen]] = $item[freezerburned ice cube];
semi_rare[$location[Haunted Library]] = $item[black eyedrops];
semi_rare[$location[Goatlet]] = $item[can of spinach];
semi_rare[$location[Ninja Snowmen]] = $item[bottle of antifreeze];
semi_rare[$location[Orc Chasm]] = $item[ASCII shirt];
semi_rare[$location[Battlefield (No Uniform)]] = $item[six-pack of New Cloaca-Cola];
semi_rare[$location[Batrat and Ratbat Burrow]] = $item[Dogsgotnonoz pills];
semi_rare[$location[Giant's Castle]] = $item[Mick's IcyVapoHotness Inhaler];
semi_rare[$location[Guano Junction]] = $item[Eau de Guaneau];
semi_rare[$location[Laboratory]] = $item[bottle of Mystic Shell];
semi_rare[$location[Pre-Cyrpt Cemetary]] = $item[poltergeist-in-the-jar-o];
semi_rare[$location[Post-Cyrpt Cemetary]] = $item[poltergeist-in-the-jar-o];
semi_rare[$location[South of The Border]] = $item[donkey flipbook];
semi_rare[$location[Pandamonium Slums]] = $item[SPF 451 lip balm];
semi_rare[$location[Hidden City]] = $item[shrinking powder];
semi_rare[$location[8-Bit Realm]] = $item[fire flower];
semi_rare[$location[Spooky Forest]] = $item[fake blood];
semi_rare[$location[Whitey's Grove]] = $item[bag of lard];
semi_rare[$location[Hippy Camp]] = $item[teeny-tiny magic scroll];
semi_rare[$location[Frat House]] = $item[bottle of rhinoceros hormones];
semi_rare[$location[Pirate Cove]] = $item[bottle of pirate juice];
semi_rare[$location[Burnbarrel Blvd]] = $item[jar of squeeze];
semi_rare[$location[Exposure Esplanade]] = $item[bowl of fishysoisse];
semi_rare[$location[The Heap]] = $item[concentrated garbage juice];
semi_rare[$location[The Ancient Hobo Burial Ground]] = $item[deadly lampshade];
semi_rare[$location[Chapel]] = $item[pixel stopwatch];
}
else
{
semi_rare[$location[Outskirts of The Knob]] = $item[Knob Goblin lunchbox];
semi_rare[$location[Sleazy Back Alley]] = $item[distilled fortified wine];
semi_rare[$location[Haunted Pantry]] = $item[tasty tart];
semi_rare[$location[Harem]] = $item[scented massage oil];
semi_rare[$location[Giant's Castle]] = $item[Mick's IcyVapoHotness Inhaler];
semi_rare[$location[Hidden City]] = $item[shrinking powder];
}
remove semi_rare[last.to_location()];
int[item] semi_rare_multiplier;
semi_rare_multiplier[$item[distilled fortified wine]] = 3;
semi_rare_multiplier[$item[tasty tart]] = 3;
semi_rare_multiplier[$item[scented massage oil]] = 3;
if((!can_interact() && item_amount($item[Mick's IcyVapoHotness Inhaler]) == 0) || (!can_interact() && item_amount($item[shrinking powder]) == 0))
{
semi_rare_multiplier[$item[Mick's IcyVapoHotness Inhaler]] = 10;
semi_rare_multiplier[$item[shrinking powder]] = 10;
}
Interesting fact: If the random square that counterchecker.ash chooses in the Hidden City is a former protector spirit it will think that it was the incorrect adventure to find a semirare, even though it may not have been.