Module arena

Source
Expand description

Arena rating-change behaviors (code-dispatched by the matchmaking / fight-result paths).

Structs§

RatingChangeCtx
Inputs for a rating-change fn. The shipped behaviors are constants and read nothing, so this carries nothing; a future rating formula threads the matchup data in here.

Functions§

lose_rating_increase_const
Rating change on an arena loss: a flat -5.
win_rating_increase_const
Rating gained on an arena win: a flat 10.

Type Aliases§

RatingChangeFn
Signature of a rating-change fn (i64 rating delta).