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

[Status( 5, 0, 1f, 0, false )]
public class BulletLifetimeDamageStatus : Status
{
	public BulletLifetimeDamageStatus()
	{
		Title = "Growing Bullets";
		IconPath = "textures/icons/bullet_lifetime_damage.png";
	}

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

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

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

	public override string GetDescription( int newLevel )
	{
		return string.Format( "Bullets grow their damage by {0} per second", GetPrintAmountForLevel( Level ) );
	}

	public override string GetUpgradeDescription( int newLevel )
	{
		return newLevel > 1 ? string.Format( "Bullets grow their damage by {0}→{1} per second", GetPrintAmountForLevel( newLevel - 1 ), GetPrintAmountForLevel( newLevel ) ) : GetDescription( newLevel );
	}

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

	public string GetPrintAmountForLevel( int level )
	{
		return string.Format( "{0:0.0}", GetAddForLevel( level ) );
	}
}