1.1.0 • Published 2 years ago

npc-mind v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

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.