My garden type

From Kolmafia
Revision as of 17:49, 11 April 2020 by imported>Ryo Sangnoir (Created page with "{{ #vardefine:name|my_garden_type}}{{ #vardefine:return_type|string}}{{ FunctionPage| name={{#var:name}}| function1={{Function| name={{#var:name}}| aggregate={{#var:aggregat...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function Syntax

string my_garden_type()

Returns the garden type of the logged-in character: 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()