gems/GemIron.cs

A small gem item class for the game that grants the owning player starting armor. It defines the item id, computes armor by level, provides description strings, and gives the player armor when a run starts.

Embedded Secret
public class GemIron : Gem
{
	public const string ItemId = "gem_iron";

	private static int GetArmor( int level ) => 10 + level * 10;

	public static string Description( int level ) => $"Start with +{GetArmor( level )} armor-item";
	public static string UpgradeDescription( int level ) => $"Start with +{GetArmor( level - 1 )}→+{GetArmor( level )} armor-item";

	public override void OnRunStart()
	{
		Player.GainArmor( GetArmor( Level ) );
	}
}