ui/richtext/RichTextBulletCritChance.cs

A RichText panel component that matches text like "Bullet Crit Chance" and replaces it with an icon and a stat display. It specifies an icon path, color, text override, and a single stat entry for player critical chance formatted as a percentage.

File Access
[RichTextPanel( @"\b([Bb]ullet )?[Cc]rit [Cc]hance\b" )]
public class RichTextBulletCritChance : RichTextBase
{
	public override string ImagePath => "textures/ui/bullet-icon.png";
	public override bool PrependIcon => true;
	public override string TextOverride => "crit chance";

	public override Color Color => new Color( 0.5f, 1f, 0.9f );

	public override RichTextStatEntry[] Stats => [
		new(PlayerStat.CritChance, StatFormat.Percentage)
	];
}