gems/GemIron.cs

A game gem item class that grants armor. It defines the item id, computes armor based on gem level, returns description strings, and gives the player armor when a run starts.

Networking
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 ) );
	}
}