To class

From Kolmafia
Revision as of 10:40, 26 January 2015 by imported>Eliteofdelete (Updated)
Jump to navigation Jump to search
needs(code_samples);

Function Syntax

class to_class(int convert )

class to_class(string name )

  • name is the class int or name to convert

Returns the specified class name as a class.

Special

Unlike direct casting with $class[ ], this function is case-insensitive. Full name is still required (partial names, or names with extra characters, return $class[ none ]).