Implemented basic AI and slowly begin to prescribe the logic of the villages.
1) Artificial intelligence (AI):
- Added basic AI.
- Added base States:
- Patrolling - patrolling points.
- Follow - follows the player or another character (to NPC followed need to come up and press E). Goes into running mode if he's far from the player.
- Attacks - as long as the AI simply goes into attack mode, in the future it will attack the attacker.
2) Interface:
- Added interface progress skills.
- Added description of skills.
- Optimized updating of some UI elements.
3) Bugs, glitches and errors:
- Fixed bug with permissions support.
- Fixed a bug with the index (when removing the first item from the inventory).
- Fixed bug when highlighting (index was out of bounds).