npc-mind
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Description

The library provides a couple of classes that model NPC mind.

Provided classes

Happiness

Models NPC happiness that goes from 0 (lowest) to 100 (maximum). It allows to increase or decrease it with absolute values or by percentage.

Personality

Models NPC personality traits which are opposite, like pesimistic-optimistic. It models each pair as an integer from 0 to 100, being 0 totally one of the traits and 100 totally the opposite.

Dependencies (1)

Dev Dependencies (13)

Package Sidebar

Install

npm i npc-mind

Weekly Downloads

6

Version

1.1.0

License

MIT

Unpacked Size

48.1 kB

Total Files

17

Last publish

Collaborators

  • ivsaez