Get florist plants: Difference between revisions

From Kolmafia
Jump to navigation Jump to search
imported>Bale
r12244
 
imported>Bale
No edit summary
 
Line 1: Line 1:
{{
{{
#vardefine:name|my_effects}}{{
#vardefine:name|get_florist_plants}}{{
#vardefine:return_type|string [location] [int]}}{{
#vardefine:return_type|string [location] [int]}}{{
#vardefine:aggregate|yes}}{{
#vardefine:aggregate|yes}}{{

Latest revision as of 21:10, 11 May 2015

Function Syntax

string [location] [int] get_florist_plants()

Returns the a map of all plants currently planted at each location.

Code Sample

Print all current plants.

foreach loc, counter, plant in get_florist_plants() {
   if( plant != "" ) {
      print( "Location '" + loc + "'" );
      print( "Plant " + counter + ": '" + plant + "'" );
   }
}

See Also

florist_available()