1.0.1 • Published 1 year ago

culture-generator v1.0.1

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

Culture Generator

Generates a random Dwarf Fortress Culture.

Installation

npm install --save culture-generator

Usage

Global API

new Culture({ seed: seed:string }) => Culture

Used to create a new Culture

.name() => string

Used to get the Culture's name.

.ethics() => Object

Used to get the Culture's configured ethics.

.beliefs() => Object

Used to get the Culture's configured beliefs.

.getEthicDescription(ethic:string) => string

Used to get a user friendly description of how an ethic is viewed.

.getEthicsDescription() => string

Used to get a user friendly description of how all the ethics are viewed.

.getBeliefDescription(ethic:string) => string

Used to get a user friendly description of how a belief is viewed.

.getBeliefsDescription() => string

Used to get a user friendly description of how all the beliefs are viewed.

.createBranchCulture(difference:number) => Culture

Used to create a similar culture.

.getOpinion(otherCulture:Culture)

Used to get the opinion of another culture.

References

1.0.1

1 year ago

1.0.0

1 year ago

0.21.0

1 year ago

0.20.0

1 year ago

0.19.0

1 year ago

0.11.0

2 years ago

0.12.0

2 years ago

0.13.0

2 years ago

0.14.0

2 years ago

0.15.0

1 year ago

0.16.0

1 year ago

0.17.0

1 year ago

0.18.0

1 year ago

0.10.0

2 years ago

0.27.0

1 year ago

0.3.0

2 years ago

0.26.0

1 year ago

0.2.0

2 years ago

0.25.0

1 year ago

0.24.0

1 year ago

0.23.0

1 year ago

0.22.0

1 year ago

0.9.0

2 years ago

0.8.0

2 years ago

0.5.0

2 years ago

0.4.0

2 years ago

0.7.0

2 years ago

0.6.0

2 years ago

0.1.0

2 years ago