avalon-prompts
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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.

Dependencies (0)

    Dev Dependencies (4)

    Package Sidebar

    Install

    npm i avalon-prompts

    Weekly Downloads

    0

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    7.9 kB

    Total Files

    6

    Last publish

    Collaborators

    • jameskmonger