status/SpecialistStatus.cs
using System;
using System.Collections.Generic;
using System.Linq;
using Sandbox;

[Status( 5, 0, 0.3f, 0, false )]
public class SpecialistStatus : Status
{
	public SpecialistStatus()
	{
		Title = "Specialist";
		IconPath = "textures/icons/specialist.png";
	}

	public override void Init( Player player )
	{
		base.Init( player );
	}

	public override void Refresh()
	{
		Description = GetDescription( Level );

		Player.Modify( this, PlayerStat.SpecialistStatusAmount, GetAddForLevel( Level ), ModifierType.Add );
	}

	public override string GetDescription( int newLevel )
	{
		return string.Format( "Perks that you already have are offered {0}% more often", GetPercentForLevel( Level ) );
	}

	public override string GetUpgradeDescription( int newLevel )
	{
		return newLevel > 1 ? string.Format( "Perks that you already have are offered {0}%→{1}% more often", GetPercentForLevel( newLevel - 1 ), GetPercentForLevel( newLevel ) ) : GetDescription( newLevel );
	}

	public float GetAddForLevel( int level )
	{
		return 0.15f + level * 0.2f + (level == 5 ? 0.2f : 0f);
	}

	public float GetPercentForLevel( int level )
	{
		return 15 + level * 20 + (level == 5 ? 20 : 0);
	}
}