long ExperienceRecord::getExpValueg() const { int pExp = getExpValuep(); int myLevel = m_level; return int(((float)pExp)*m_groupBonus*((float)myLevel/m_totalLevels)); }
long ExperienceRecord::getExpValueg() const { int pExp = getExpValuep(); int gbonus; int myLevel = m_player->getPlayerLevel(); int group_ag; gbonus = m_group->groupPercentBonus(); /* calculate group aggregate level */ printf("GROUPSIZE: %d\n", m_group->groupSize()); group_ag = m_group->totalLevels(); printf("MY Level: %d\n GroupTot: %d\n BONUS :%d\n", myLevel, group_ag, gbonus); return (int) (((float)pExp)*((float)gbonus/(float)100)*((float)myLevel/(float)group_ag)); }