ui/richtext/RichTextBulletDamage.cs

A RichText panel definition that matches text like "Bullet Damage" or "Bullet Dmg" and replaces it with an icon plus a short "dmg" label. It specifies the icon path, white color, prepends the icon, and provides two stat entries for bullet damage and its multiplier.

[RichTextPanel( @"\b[Bb]ullet ([Dd]amage|[Dd]mg)\b" )]
public class RichTextBulletDamage : RichTextBase
{
	public override string ImagePath => "textures/ui/bullet-icon.png";
	public override bool PrependIcon => true;
	public override string TextOverride => "dmg";

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

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