1.0.2 • Published 5 years ago

avalon-prompts v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
5 years ago

avalon-prompts

Generate prompts for the narration at the start of a "The Resistance: Avalon" game.

Written in TypeScript.

Installation

npm install avalon-prompts

Usage

getPrompts(characters) => string[]

Get an array of strings for the narration. characters is an object with the following structure:

interface Characters {
    percival?: boolean;
    mordred?: boolean;
    oberon?: boolean;
    morgana?: boolean;
}

Set the value to true to include that character in the game.

getPrompts({ percival: true, oberon: true })
    // returns the narration for a game containing Percival and Oberon

License

Licensed under the MIT License.