Difference between revisions of "Appearance rates"

From Kolmafia
Jump to navigation Jump to search
imported>Heeheehee
imported>StDoodle
Line 19: Line 19:
  
 
needscode=yes|
 
needscode=yes|
 
+
special=When not logged in, this function still returns the same data, as it is pulled from KoLmafia's data files.|
 
}}
 
}}
{{RFI|Not logged in value?|}}
 
Same as if you were logged in -- it pulls these from Mafia's data files. --[[User:Heeheehee|Heeheehee]] 17:26, 6 March 2010 (UTC)
 

Revision as of 18:34, 6 March 2010



needs(code_samples);

Function Syntax

float [monster] appearance_rates(location place )

  • place is the adventuring location to parse

Returns a map, keyed by monster, with the appearance rate percentages as decimal values (ie a 30% rate monster has a value of 30.0). Bosses, semirare encounters, and other one-time-only monsters have a value of 0.0; ultra-rare monsters have a negative value (the actual value varies; test by looking for value < 0, not value == -1). Does not account for combat rate modifiers, olfaction, etc.

Special

When not logged in, this function still returns the same data, as it is pulled from KoLmafia's data files.