@evilmonkeyinc/srd-api
Version:
Tools and helpers to query SRD content
47 lines (46 loc) • 1.3 kB
TypeScript
import { Description } from '../shared/Description';
import { Size } from '../shared/Size';
import { Alignment } from '../shared/Alignment';
import { Ability } from '../shared/Abilities';
import { Skill } from '../shared/Skills';
import { Proficiency } from '../shared/Proficiency';
import Senses from '../shared/Sense';
export declare enum MonsterType {
Aberration = "aberration",
Beast = "beast",
Celestials = "celestials",
Construct = "construct",
Dragon = "dragon",
Elemental = "elemental",
Fey = "fey",
Fiend = "fiend",
Giant = "giant",
Humanoid = "humanoid",
Monstrosity = "monstrosity",
Ooze = "ooze",
Plant = "plant",
Undead = "undead"
}
export interface MonsterTypeDefinition {
name: MonsterType;
description: Description[];
}
export default interface Monster {
name: string;
type: MonsterType[];
size: Size;
alignment: Alignment;
armourClass: number;
hitPoints: number[];
movement: string[];
abilities: Map<Ability, number>;
savingThrows: Map<Ability, Proficiency>;
skills: Map<Skill, Proficiency>;
senses: Senses[];
languages: string[];
challengeRating: number;
specialTraits: string[];
actions: string[];
reactions: string[];
legendaryActions: string[];
}