change
bool Player::gainExperience(double& gainExp, bool fromMonster)
for
bool Player::gainExperience(double& gainExp, Creature* target)
if(!rateExperience(gainExp, fromMonster))
for
if(!rateExperience(gainExp, target))
bool Player::rateExperience(double& gainExp, bool fromMonster)
for
bool Player::rateExperience(double& gainExp, Creature* target)
if(!fromMonster)
return true;
for
if(target->getPlayer())
return true;
void Player::eek:nGainExperience(double& gainExp, bool fromMonster, bool multiplied)
{
if(party && party->isSharedExperienceEnabled() && party->isSharedExperienceActive())
{
party->shareExperience(gainExp, fromMonster, multiplied);
rateExperience(gainExp, fromMonster);
return; //we will get a share of the experience through the sharing mechanism
}
if(gainExperience(gainExp, fromMonster))
Creature::eek:nGainExperience(gainExp, fromMonster, true);
}
for
void Player::eek:nGainExperience(double& gainExp, Creature* target, bool multiplied)
{
if(party && party->isSharedExperienceEnabled() && party->isSharedExperienceActive())
{
party->shareExperience(gainExp, target, multiplied);
rateExperience(gainExp, target);
return; //we will get a share of the experience through the sharing mechanism
}
if(gainExperience(gainExp, target))
Creature::eek:nGainExperience(gainExp, target, true);
}
void Player::eek:nGainSharedExperience(double& gainExp, bool fromMonster, bool)
{
if(gainExperience(gainExp, target))
Creature::eek:nGainSharedExperience(gainExp, fromMonster, true);
}
for
void Player::eek:nGainSharedExperience(double& gainExp, Creature* target, bool)
{
if(gainExperience(gainExp, target))
Creature::eek:nGainSharedExperience(gainExp, target, true);
}