My garden type

From Kolmafia
Jump to navigation Jump to search

Function Syntax

string my_garden_type()

Returns the garden type of the logged-in character: none, pumpkin, peppermint, skeleton, beer, winter, thanksgarden, grass or mushroom.

Code Sample

To fight a piranha plant, if you can:

if (my_garden_type() == "mushroom" && !get_property("_mushroomGardenVisited").to_boolean()) {
  cli_execute("garden fertilize");
}

See Also

get_campground()