public function giveReferralBonus($objUser) { $village = $this->getMainVillage(); if ($village) { $runes = Neuron_Core_Tools::getRandomRuneOptions(); shuffle($runes); $randomRune = $runes[0]; $runes = array(); $runes[$randomRune] = 1; $village->resources->giveRunes($runes); // Make it a log $objLogs = Dolumar_Players_Logs::__getInstance(); $objLogs->addReferreeBonusLog($village, $objUser, $runes); } }