A Gem subclass that grants the player extra reroll items. It defines an item id, descriptions for the gem at a given level, and adds the gem level to the player's available rerolls when a run starts.
public class GemRerolls : Gem
{
public const string ItemId = "gem_rerolls";
public static string Description( int level ) => $"Start with +{level} reroll-item";
public static string UpgradeDescription( int level ) => $"Start with +{level - 1}→+{level} reroll-item";
public override void OnRunStart()
{
Player.NumRerollAvailable += Level;
}
}