A RichText panel class that matches text like "Item Attract Strength" and supplies an icon and two player stat entries for display. It sets Icon to "toll" and Stats to entries for CoinAttractRange and CoinAttractStrength using percentage-diff formatting.
[RichTextPanel( @"\b([Ii]tem )?[Aa]ttract [Ss]trength\b" )]
public class RichTextItemAttractStrength : RichTextBase
{
public override string Icon => "toll";
public override RichTextStatEntry[] Stats => [
new(PlayerStat.CoinAttractRange, StatFormat.PercentageDiff),
new(PlayerStat.CoinAttractStrength, StatFormat.PercentageDiff)
];
}