Activity
Member
- Joined
- Apr 7, 2016
- Messages
- 182
- Reaction score
- 22
I need to remove gaining soul and i removed it from VOCATIONS.xml but i still gaining soul from it so i found that at sources and i don't know which part i should remove
TFS 0.4
Code:
{
if(!rateExperience(gainExp, fromMonster))
return false;
//soul regeneration
if(gainExp >= level)
{
if(Condition* condition = Condition::createCondition(
CONDITIONID_DEFAULT, CONDITION_SOUL, 4 * 60 * 1000))
{
condition->setParam(CONDITIONPARAM_SOULGAIN,
vocation->getGainAmount(GAIN_SOUL));
condition->setParam(CONDITIONPARAM_SOULTICKS,
(vocation->getGainTicks(GAIN_SOUL) * 1000));
addCondition(condition);
}
}
addExperience((uint64_t)gainExp);
return true;
}