Florist available

From Kolmafia
Revision as of 07:56, 18 November 2014 by imported>Bale (r12238)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function Syntax

boolean florist_available()

Returns the availability of The Florist Friar's Cottage.

Code Samples

This will plant for a +25% item drop bonus, if possible.

if(florist_available()) {
   string plant;
   switch( my_location().environment ) {
   case "indoor":
      plant = "Stealing Magnolia";
      break;
   case "outdoor":
      plant = "Rutabeggar";
      break;
   case "underground":
      plant = "Horn of Plenty";
      break;
   case "underwater":
      plant = "Kelptomaniac";
      break;
   if( !get_property( "_floristPlantsUsed" ).contains_text( plant ) )
      cli_execute( "florist plant " + plant );
}

See Also

get_florist_plants() | canadia_available()

Special

When not logged in, this function returns false.