1.0.0 • Published 1 year ago

deity-generator v1.0.0

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

Deity Generator

Generates a random Dwarf Fortress Deity.

Installation

npm install --save deity-generator

Usage

import { Deity } from 'deity-generator'

const deity = new Deity({ seed: 'seed' })

console.log(deity.name) // => ak Upuh
console.log(deity.gender) // => male
console.log(deity.spheres) // => [ 'rulership', 'jealousy' ]
console.log(deity.creature) // => cave swallow
console.log(deity.toString()) // => ak Upuh most often takes the form of a male cave swallow and is associated with rulership and jealousy.

Deity API

new Deity(props) => Deity

Used to create a new Deity.

FieldTypeDescription
props.seedstringSeed used to generate the deity.
props.namestringDeity's name.
props.genderstringDeity's gender.
props.creaturestringDeity's creature.
props.spheresstring[]Deity's spheres.

.name => string

Used to get the Deity's name.

.gender => string

Used to get the Deity's gender.

.spheres => string

Used to get the Deity's spheres.

.creature => string

Used to get the Deity's name.

.toString() => string

Used to descripe the Deity.

References

1.0.0

1 year ago

0.9.0

2 years ago

0.8.0

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.3.0

2 years ago

0.2.0

2 years ago

0.1.0

2 years ago