My garden type: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
Created page with "{{ #vardefine:name|my_garden_type}}{{ #vardefine:return_type|string}}{{ FunctionPage| name={{#var:name}}| function1={{Function| name={{#var:name}}| aggregate={{#var:aggregat..."
 
No edit summary
 
Line 13: Line 13:
}}|
}}|


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


code1={{CodeSample|
code1={{CodeSample|

Latest revision as of 23:09, 11 April 2020

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()