Cornwallis
Member
- Joined
- Jan 3, 2010
- Messages
- 480
- Reaction score
- 16
Hello, I'm trying to add 5 soul regen to every character when they eat food similar to the health and mana regeneration. I also couldn't find the original soul regeneration system in the sources, could someone direct me? Here's what I've done:
players.cpp
I added that with the original health and mana regeneration, and similarly in the player.lua file in the libs.
players.cpp
HTML:
condition->setParam(CONDITION_PARAM_SOULGAIN, 5);
condition->setParam(CONDITION_PARAM_SOULTICKS, vocation->getSoulGainTicks() * 1000);
Last edited: