@evilmonkeyinc/srd-api
Version:
Tools and helpers to query SRD content
63 lines (34 loc) • 1.43 kB
Markdown
You can access the RaceAPI functions using the default client `srdClient.races` or by creating a new instance of the RaceAPI `const raceAPI = new RaceAPI();`
Gets the named race. This is case insensitive.
Gets all the available races in the collection.
Query the available races in the collection.
You can state one or more of the following filters:
- name: a string to compare to part or the whole of a name of a race. This is case insensitive.
The name of the race.
The spell description text.
This field is an array of description blocks, or paragraphs which include
- a string
- an object detailing a list
- an object detailing a table
The creature size for the race.
The base movement speed for the race.
An array of languages that the race knows.
Additionally, a race could include a `choice` of any available language.
An array of racial traits for the race.
A racial trait consists of a `name` and a `description`, which has the same definition as the race description.
An array of subraces for the race.
A subrace definition can include anything from the race definition, except more sub races.
The defined fields in the subrace are in addition to the race traits, even if they have the same name, unless specifically mentioned that it is a replacement.