status/CurseSpreadStatus.cs
using System;
using System.Collections.Generic;
using System.Linq;
using Sandbox;
[Status(1, 0, 0.5f, 0, true, typeof(NumProjectileStatus))]
public class CurseSpreadStatus : Status
{
public CurseSpreadStatus()
{
Title = "Max Spread";
IconPath = "textures/icons/curse_spread.png";
}
public override void Init(Player player)
{
base.Init(player);
}
public override void Refresh()
{
Description = GetDescription(Level);
Player.Modify(this, PlayerStat.MaxBulletSpread, 1f, ModifierType.Add);
}
public override string GetDescription(int newLevel)
{
return string.Format( "Your shots have max bullet spread" );
}
public override string GetUpgradeDescription(int newLevel)
{
return newLevel > 1 ? string.Format( "Your shots have max bullet spread" ) : GetDescription(newLevel);
}
}