A RichText component class used by the UI to render a "bounces" stat tag. It defines visual properties like color and a bounce animation, and maps two player stats (extra bounce amount and bounce chance) to display formats.
[RichTextPanel( @"\b[Bb]ounces?\b" )]
public class RichTextBounce : RichTextBase
{
public override Color Color => new Color(1f);
public override string AnimationName => "hop";
public override float? AnimationDuration => 0.4f;
public override string AnimationDirection => "alternate";
public override string AnimationTimingFunction => "ease-in";
public override RichTextStatEntry[] Stats => [
new(PlayerStat.BulletExtraBounceAmount, StatFormat.Int),
new(PlayerStat.BulletExtraBounceChance, StatFormat.Percentage)
];
}