Extensions Members
The Extensions type exposes the following members.
Methods
| Name | Description | |
|---|---|---|
|
|
ApplyGetPrefixCountMacro | |
|
|
ApplyPlurizationMacro | |
|
|
GetPrefixCount | |
|
|
GetSignedValue | |
|
|
IndexToLabel |
Converts an index (0-37) to a letter (a-z) for an inventory or equipment slot
|
|
|
IndexToLetter |
Converts an index (0-25) to a lower case letter (a-z)
|
|
|
IsVowel |
Returns whether or not a character is a vowel
|
|
|
LetterToNumber |
Converts a character from a-z into a numeric index 0-25
|
|
|
PadCenter |
Pads a string in both directions to center the original
|
|
|
Pluralize | |
|
|
PluralizeMonsterName |
Pluralizes a monster name, with various special cases for unusual names
|
|
|
StatToString |
Converts a numeric ability score (3-118) to a string (3-40+)
|
|
|
ToIntSafely |
Try to parse the string to an integer, returning 0 rather than an error if it can't be parsed
|
|
|
ToRoman |
Converts an integer to a Roman numeral
|