culture-generator v1.0.1
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 year ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
2 years ago
1 year ago
1 year ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago