Exedion
Active Member
- Joined
- Jun 11, 2007
- Messages
- 629
- Reaction score
- 30
well how i can declare "getPlayer" in monster.cpp?
i try to compile this custom function
i try to compile this custom function
Code:
uint16_t Monsters::getLootRandom()
{
return (uint16_t)std::ceil((double)random_range(0, MAX_LOOTCHANCE) / g_config.getDouble(ConfigManager::RATE_LOOT) * getPlayer()->getExtraLootRate());
}