Пример #1
0
uint64_t Creature::getGainedExperience(Creature* attacker) const
{
	return (uint64_t)std::floor(getDamageRatio(attacker) * getLostExperience() * g_config.getNumber(ConfigManager::RATE_EXPERIENCE));
}
Пример #2
0
uint64_t Creature::getGainedExperience(Creature* attacker) const
{
	return std::floor(getDamageRatio(attacker) * getLostExperience());
}
Пример #3
0
double Creature::getGainedExperience(Creature* attacker) const
{
	return getDamageRatio(attacker) * (double)getLostExperience();
}