-
Notifications
You must be signed in to change notification settings - Fork 6
Fractional and negative antes
(mechanic from Entropy)
Spectrallib introduces support for fractional and negative ante values.
The blind value of a fractional ante is a linear interpolation of the blind values of the integer antes that are directly above and below the fractional ante. For example, on white or red stake, ante 2.5 has a blind value of 1400, which is halfway between 800 (ante 2) and 2000 (ante 3). The interpolation method is defined by Spectrallib.blind_amount_interpolate(lower, upper, percent), where:
-
loweris the blind amount of the integer ante before the fractional ante, -
upperis the blind amount of the integer ante after the fractional ante, and -
percentis the fractional component of the fractional ante, or "progress" betweenlowerandupper.
This function can be overridden to use a different interpolation method, as needed.
The blind value of a negative integer ante is calculated with the formula 100*0.95^(-ante). For negative antes in general, the aforementioned linear interpolation is applied using the blind values of negative integer antes. This formula is defined by Spectrallib.negative_ante_value(ante), which can be overridden to use a different formula.
When defeating a showdown boss on an ante, no other showdown bosses will appear on other antes with the same integer component, until a boss is defeated on an ante of a different integer component. For example, if a showdown boss was defeated on ante 8.25, no showdown bosses will appear from ante 8 before ante 9; but if a boss was defeated on ante 9, showdown bosses can appear again from ante 8 before ante 9.