A UI rich text panel definition that matches text containing the word 'Regen'. It provides an icon, a color, and a single stat mapping for displaying HP regeneration per second.
[RichTextPanel( @"\b[Rr]egen\b" )]
public class RichTextHpRegen : RichTextBase
{
public override string Icon => "medication";
public override Color Color => new Color( 0.75f, 1f, 0.75f );
// todo: remove all this
public override RichTextStatEntry[] Stats => [
new(PlayerStat.HpRegenDisplay, StatFormat.PerSecond2)
];
}