New Content - Implemented IoTM March 2020 - Better Shrooms and Gardens Catalog

Veracity

Developer
Staff member
Revision 19840

It was a typo: it only harvested mushrooms if you said to harvest "none", and opposed to NOT harvesting "none".
Picking your garden is after clovers. For the mushroom garden, since it leads to fights, it does pre-adventure stuff (healing, etc.) before each fight, and post-adventure stuff (your between battle script) after each fight.

Thanks for thinking of the HTML, but it's OK: the "garden pick" command looks at the available choice options and finds which one is "Pick" and uses that, rather than haing it hard-coded as "2", say.
 

Veracity

Developer
Staff member
Here is the Java code I use for finding the option:

Code:
			// We have reached The Mushy Center.
			// Look at which options are available.

			Map<Integer,String> options = ChoiceUtilities.parseChoices( request.responseText );

			int fertilizeOption = 0;	// Expect 1
			int pickOption = 0;		// Expect 2

			for ( Map.Entry<Integer,String> entry : options.entrySet() )
			{
				Integer key = entry.getKey();
				String value = entry.getValue();
				if ( value.startsWith( "Fertilize" ) )
				{
					fertilizeOption = key;
				}
				else if ( value.startsWith( "Pick" ) )
				{
					pickOption = key;
				}
			}

			// Decide which choice option to submit
			int option = pick ? pickOption : fertilizeOption;
...
			// If there is no option to fertilize, pick.
			if ( fertilizeOption == 0 )
			{
				// If can't fertilize, assume we will pick.
				option = pickOption;
			}
Note that you can do this with ASH, too.
The Java function to return a map from int => string for the available options is ChoiceUtilities.parseChoices( request.responseText ).
The ASH equivalent is available_choice_options().
 

Ogrecrusher

New member
If Breakfast is going to trigger the free fights, should probably check for "Coated in Slime" Effect. I just lost 8 turns upon logging it. Doh.
 

Veracity

Developer
Staff member
It will trigger the free fights if you 1) have a mushroom garden and 2) have breakfast configured to Harvest either Anything or one of the mushrooms.

How did you "lose 8 turns"? Losing to a free fight makes it not free, I guess, but surely you are not going into the Slime Tube as a Plumber, so you have exactly one free fight in the Garden.

Please explain exactly what happened, turn by turn, to make you lose 8 turns. Let me see your session log, please.
 

lostcalpolydude

Developer
Staff member
How did you "lose 8 turns"? Losing to a free fight makes it not free, I guess, but surely you are not going into the Slime Tube as a Plumber, so you have exactly one free fight in the Garden.

The piranha doesn't stop showing up until you win the fight.
 

Ogrecrusher

New member
Yeah exactly, I had 8 turns of coated in slime and not much health overnight, so logging on this happened:
Visiting Deluxe Mr. Klaw "Skill" Crane Game in clan VIP lounge

Visiting Deluxe Mr. Klaw "Skill" Crane Game in clan VIP lounge

Visiting Deluxe Mr. Klaw "Skill" Crane Game in clan VIP lounge

trading 4 worthless items for 4 ten-leaf clovers
You acquire ten-leaf clover (4)

Use 4 ten-leaf clover
You acquire disassembled clover (4)

[4025] Your Mushroom Garden
Encounter: piranha plant
Round 0: ogrecrusher wins initiative!
Round 1: You lose 982 hit points

[4026] Your Mushroom Garden
Encounter: piranha plant
Round 0: ogrecrusher wins initiative!
Round 1: You lose 1,846 hit points

[4027] Your Mushroom Garden
Encounter: piranha plant
Round 0: ogrecrusher wins initiative!
Round 1: You lose 3,393 hit points

[4028] Your Mushroom Garden
Encounter: piranha plant
Round 0: ogrecrusher wins initiative!
Round 1: You lose 5,578 hit points

[4029] Your Mushroom Garden
Encounter: piranha plant
Round 0: ogrecrusher wins initiative!
Round 1: You lose 8,492 hit points

[4030] Your Mushroom Garden
Encounter: piranha plant
Round 0: ogrecrusher wins initiative!
Round 1: You lose 12,222 hit points

[4031] Your Mushroom Garden
Encounter: piranha plant
Round 0: ogrecrusher wins initiative!
Round 1: You lose 16,851 hit points

[4032] Your Mushroom Garden
Encounter: piranha plant
Round 0: ogrecrusher wins initiative!
Round 1: You lose 22,459 hit points

[4033] Your Mushroom Garden
Encounter: piranha plant
Round 0: ogrecrusher wins initiative!
Round 1: ogrecrusher executes a macro!
Round 1: ogrecrusher attacks!
piranha pollen is multiusable, but KoLmafia thought it was not
Round 2: piranha plant takes 1276 damage.
Round 2: Gronald slashes prices with its time sword, doing 43 damage. In related news, this foe's new name is "prices."
Round 2: piranha plant takes 43 damage.
Round 2: ogrecrusher wins the fight!
You acquire an item: piranha pollen
After Battle: You gain 186 Strengthliness
After Battle: You gain 82 Enchantedness
After Battle: You gain 66 Sarcasm
This combat did not cost a turn
 

Veracity

Developer
Staff member
Whoa! Interesting. If you lose, the piranha plant is still there for you. Not surprising, I guess.

I would have thought that the fight would abort if you hit 0 HP. I'll see if I can figure out why that didn't happen.
 

Veracity

Developer
Staff member
Perhaps I should just abort the loop if you lose the fight. I'm not going to specifically check for Coated in Slime, although that's an easy way to lose, it seems. You COULD win - and the the RecoveryManager will heal you up, per your settings, before the next fight - which should not be any harder, since the turn counter did not advance.
 

Veracity

Developer
Staff member
Huh. Well.... Perhaps I could go back to packet of mushroom spores (X) and have that just print out as the appropriate type of mushroom. I'll experiment.
It seems to work ok.

Code:
[color=green]> garden[/color]

Your mushroom garden has 1 bulky free-range mushroom in it.

[color=green]> ash get_campground()[/color]

Returned: aggregate int [item]
Certificate of Participation => 1
Frobozz Real-Estate Company Instant House (TM) => 1
Discount Telescope Warehouse gift certificate => 7
E-Z Cook™ oven => 1
My First Shaker™ => 1
potted tea tree => 1
haunted doghouse => 1
Witchess Set => 1
diabolic pizza cube => 1
packet of mushroom spores => 3
That meets your needs. Additionally, the 6 mushrooms show up as available crops in the Garden configuration for breakfast.
I have a bulky free-range mushroom in my garden. Let's see whether breakfast would pick it if my goal was a plump free-range mushroom or an immense free-range mushroom.

Code:
[color=green]> test crop plump free-range mushroom[/color]

bulky free-range mushroom is as good as plump free-range mushroom

[color=green]> test crop immense free-range mushroom[/color]

bulky free-range mushroom is worse than immense free-range mushroom
If my goal is a plump free-range mushroom, yes.
If my goal is an immense free-range mushroom, no.

Revision 19843 does that. It also aborts the fight loop when harvesting if you lose to a piranha plant. Untested.
 

Veracity

Developer
Staff member
Revision 19845 adds the Mushroom House as a dwelling and adds a SUSE concoction from mushroom slab => mushroom cap.

In two days I will harvest my second immense mushroom and will create/fold up the mushroom outfit - and get the correct descid for the mushroom badge, which will complete the new items.

I am happy with how "garden pick" and "garden fertilize" are working for the mushroom garden. Breakfast is working as desired.
I've coded up support for the mushroom garden in Garden Harvester, using those two CLI commands (and the change to how it appears in get_campground(), as requested by the dictator) and it seems to be behaving the way I want. have set my desired crop to be "immense free-range mushroom" and will test tomorrow that it fertilizes correctly and the day after that it picks correctly, and will then release it.

After that, I'm interested in the following to complete work on this IoTM:

(What is the image (not mushgrow6) when you have a colossal free-range mushroom in your mushroom garden?)
Familiar parameters for Piranha Plant
(Is the Mushroom House really dwelling 16?)
Resting in Mushroom House
=> Mushed (need effect id)

I'll eventually find a pristine piranha seed.
And, someday after I have maxed out Plumber Points, perhaps I will stay in aftercore long enough to get a colossal mushroom to answer those things.

Anything else people are missing for this IOTM?
 

Magus_Prime

Well-known member
As I just discovered it's still mushgrow5.gif. Here's the HTML of the frame with the choice:

Code:
<body onkeyup="handleCombatHotkey(event,false);" onkeydown="handleCombatHotkey(event,true);" ><div id="page"><div id="mafiabuttons"><center><table width="95%"><tr><td align=left><div id="btnwrap"><input type="button" onClick="document.location.href='choice.php?action=auto';void(0);" value="auto"> <input type="button" onClick="document.location.href='choice.php?whichchoice=1410&option=2&pwd=e346552980fd2abb9b31cac1ce6f5f06';void(0);" value="Pick the mushroom"> </div></td></tr></table></center></div><div class='content' id='content_'><div id='effdiv' style='display: none;'></div><div>
<Center><centeR><table  width=95%  cellspacing=0 cellpadding=0><tr><td style="color: white;" align=center bgcolor=blue><b>The Mushy Center</b></td></tr><tr><td style="padding: 5px; border: 1px solid blue;"><center><table><tr><td><center><img src=/images/adventureimages/mushgrow5.gif width=100 height=100></center><p>The mushroom in your garden is now large enough to walk around inside.  Also there's a door on it, which is convenient for that purpose.<center><form style='margin: 0px 0px 0px 0px;' name=choiceform2 action=choice.php method=post><input type=hidden name=pwd value='e346552980fd2abb9b31cac1ce6f5f06'><input type=hidden name=whichchoice value=1410><input type=hidden name=option value=2><input  class=button type=submit value="Pick the mushroom"></form><p></center></td></tr></table></center></td></tr><tr><td height=4></td></tr></table></center><script>top.charpane.location.href="charpane.php";</script>
</div></div></div></body><script src="/onfocus.1.js"></script></html>
 

Veracity

Developer
Staff member
Thank you!

The mushroom in your garden is now large enough to walk around inside. Also there's a door on it, which is convenient for that purpose.

That's the message for a colossal mushroom.
The only option is "Pick the mushroom" - which is still option 2

If you happen to use the house-sized mushroom to get a Mushroom House, could you check a few things, please?

- Visiting the Campground will not give a message, if it is really house #16, as I expect. Otherwise, it will say (in red)
Unrecognized housing type (XX)
Please tell me XX, if so.
- When you rest, you'll get HP and MP. How many?
- When you rest, you'll get an effect - Mushed - which shoould log as an unknown effect. I need that info - or at least the effectid.
 

Aenimus

Member
How do I stop mafia visiting my mushroom garden during breakfast? To my knowledge, it never did this until a patch 1-3 days ago? It also doesn't appear to be in my daily deeds, and I couldn't find any relevant properties.

EDIT: It looks like it probably wasn't intended?

Code:
Getting out of clan VIP swimming pool
Preference nextAdventure changed from None to Your Mushroom Garden

[6553] Your Mushroom Garden
Preference lastEncounter changed from Starship Exercise :: In the Bridge to piranha plant
Encounter: piranha plant
Preference _lastCombatStarted changed from 20200314161914 to 20200314162323
Preference _mushroomGardenFights changed from 0 to 1
Round 0: Aenimus wins initiative!
You're on your own, partner.
Click here to continue in the relay browser.

You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
Collecting sea jelly...
You are currently in a fight.

Visiting the Swimmy Little Fishes and Such
place.php: redirected to a fight page.
You are currently in a choice.
You are currently in a choice.
You are currently in a choice.
You are currently in a choice.
You are currently in a choice.
You are currently in a choice.
You are currently in a choice.
You are currently in a choice.
You are currently in a choice.
Preference breakfastCompleted changed from false to true
Encounter: piranha plant
Preference _lastCombatStarted changed from 20200314162323 to 20200314163324
Preference _mushroomGardenFights changed from 1 to 2
Round 0: Aenimus loses initiative!
Preference _seaJellyHarvested changed from false to true
Round 1: Aenimus uses the tattered scrap of paper and uses the tattered scrap of paper!
Round 2: Type: Null claws 14 damage worth of Meat off of your opponent, and hands it to you. This is kind of gross but, well, you've got bills to pay, after all.
Round 2: piranha plant takes 14 damage.
You gain 5 Meat.
This combat did not cost a turn

EDIT2: Just saw Fredg1's post and looks like this was fixed in the newest patch?
 
Last edited:

Aenimus

Member
OK, freshly updated and:

Code:
Visiting Hermit...

[6553] Your Mushroom Garden
Encounter: piranha plant
Preference _lastCombatStarted changed from 20200314163324 to 20200314171036
Preference _mushroomGardenFights changed from 0 to 1
Round 0: Aenimus wins initiative!
Multiple matches for "fire flower"; using "[10462]fire flower". (AsdonMartinGUI.ash, line 2697) Clarify by using one of:
"[2426]fire flower"
"[10462]fire flower"
Multiple matches for "fire flower"; using "[10462]fire flower". (AsdonMartinGUI.ash, line 2896) Clarify by using one of:
"[2426]fire flower"
"[10462]fire flower"
You're on your own, partner.
Click here to continue in the relay browser.

You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
You are currently in a fight.
 

Veracity

Developer
Staff member
If you don’t want breakfast to visit your garden, then don’t tell it to do so.

On Preferences/Automation, there are two panels where you configure Hardcore/Ronin and Out of Ronin.

At the bottom, you can configure the crop you want.
If you have “Harvest Anything” it will go pick every day, no matter what kind if garden you have.
If you have “Harvest Nothing”, it will not visit the garden.

A few days ago, I made “garden pick” work for the mushroom garden and breakfast started going there for Harvest Anything - which you must have had.

That is completely intentional.

There is a setting to control it, which I cannot get since I am away from my computer. Or you can configure it in Preferences, as I described.
 

Aenimus

Member
I have it set to "cornucopia (15)". I'd like to keep it as that if possible (for when I actually do run Thanksgarden), and I'm not sure why that affects the mushroom garden?
 
Top