$enhAwardId = 69; // use db, this a mockerinoif (in_array($enhAwardId, explode(",", $userAwards))) { $highestUpgradeableRole = (array_reverse(getUpgradeableRoles()))[0]; $maxUnlocksAddition = $highestUpgradeableRole->name == 'prime' ? 3 : $highestUpgradeableRole->name == 'supreme' ? 4 : $highestUpgradeableRole->name == 'divine' ? 5 : 1; $user->maximumUnlocksPerDay += $maxUnlocksAddition; // dont save temporary use}
Loading Info...