My garden type
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");
}