Added the ability to give gifts to villagers. To give a gift, you need to start a dialogue with a villager — open the interaction menu and press the "Chat" button. Then open the menu again and select "Gift" — after that, the next item the player drops from their inventory will be given to the villager. The AI will then generate a few phrases showing how the villager reacts to the gift: if you give an NPC, say, a stack of diamond blocks, they’ll be EXTREMELY surprised. If you give them some useless junk, they’ll throw it back. Gifts affect reputation, shape the villager’s opinion of the player, and allow you to "invest" in the villagers’ development by supplying them with materials needed for crafting items. This is a very deep mechanic, and even I don’t fully know what reactions the gifts might trigger. What if you give a villager a dragon egg, for example? Time to experiment, because even I have no idea.
Added a wealth mechanic. It’s determined by calculating the value of a villager’s inventory. For now, it only affects the dialogues generated by the AI.
Fixed an old bug that prevented other types of quests from appearing.
Fixed a bug related to inventory serialization, which @Ubivis has been reporting for a very long time. Sorry it took so long, buddy.