uint64_t Creature::getGainedExperience(Creature* attacker) const { return (uint64_t)std::floor(getDamageRatio(attacker) * getLostExperience() * g_config.getNumber(ConfigManager::RATE_EXPERIENCE)); }
uint64_t Creature::getGainedExperience(Creature* attacker) const { return std::floor(getDamageRatio(attacker) * getLostExperience()); }
double Creature::getGainedExperience(Creature* attacker) const { return getDamageRatio(attacker) * (double)getLostExperience(); }