ui/richtext/RichTextItemAttractRange.cs

A small RichText component that matches headings like "Item Attract Range" and provides an icon and two stat entries. It sets Icon to an empty string and exposes two stats, CoinAttractRange and CoinAttractStrength, formatted as percentage differences.

[RichTextPanel( @"\b([Ii]tem )?[Aa]ttract [Rr]ange\b" )]
public class RichTextItemAttractRange : RichTextBase
{
	//public override string Icon => "radar";
	public override string Icon => "";

	public override RichTextStatEntry[] Stats => [
		new(PlayerStat.CoinAttractRange, StatFormat.PercentageDiff),
		new(PlayerStat.CoinAttractStrength, StatFormat.PercentageDiff)
	];
}