Need private packages and team management tools?Check out npm Teams »

avalon-prompts

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.

Install

npm i avalon-prompts

DownloadsWeekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

7.9 kB

Total Files

6

Last publish

Collaborators

  • avatar