PHP Code:
$enhAwardId = 69; // use db, this a mockerino
if (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
}
would probably look smth like dis.
but this feature request should be toward v4