Modifiers
The song list has a Modifiers switch next to Mirror: it opens them, and the song then plays with the picked ones, like osu!'s mods. The picks stay until the game closes, and show over Play.
| Bit | Score | What it does | |
|---|---|---|---|
| EZ Easy | 2 | ×0.50 | perfect, good and bad windows of 112, 252 and 308 ms |
| HR Hard Rock | 16 | ×1.06 | windows of 57, 129 and 157 ms |
| HT Half Time | 256 | ×0.30 | the song at 0.75×, its pitch following |
| NC Nightcore | 512 | ×1.12 | the song at 1.25×, its pitch following, with drums |
| HD Hidden | 8 | ×1.06 | notes fade out as they reach their line |
| FL Flashlight | 1024 | ×1.12 | notes only show near their line, nearer from 100 and 200 combo, in the dark |
| SD Sudden Death | 32 | ×1 | the song ends when the combo breaks, back to the song list with nothing kept of it |
| PF Perfect | 16384 | ×1 | the song starts again at anything but a perfect |
| RD Random | 2097152 | ×1 | the notes change lanes |
Easy and Hard Rock, Half Time and Nightcore, Sudden Death and Perfect can't go together. Challenge mode and the songs with effects of their own (they save from inside the song) play without modifiers.
What a play with modifiers counts for
Nothing in the game: its result screen saves nothing, like a replay's, so the save and the records stay what the game itself can give. Its replay is kept like any other, and the player's best with each set of modifiers on a chart goes to phigros.tools, whatever their record without, with the play's stats. There the replay is judged again with the same rules, and counts on the chart's Modifiers leaderboard only: a row for each set a player played with, by total. The replay picker's With modifiers checkbox shows that leaderboard in the game.
The total is the score times every multiplier, rounded: (score * num + den // 2) // den with num the product of the percents that aren't 100 and den 100 for each of them, 1,409,444 at most. The replay keeps the score itself, and the grade stays the score's.
The rules, shared with phigros.tools
phigrospp/lua/modifiers.lua and mods/modifiers.lua in the game, src/modifiers.ts on the site: a rule changes in both or in neither, since the site only counts a replay whose touches give the recorded result.
Windows are written to JudgeControl's right after ProgressControl.Update, which sets the game's own every frame. What the game derives from them follows (a tap's reach and miss, a flick's 1.75 perfect windows, a hold's head), its fixed times don't (a drag's 100 ms, a hold's release).
Half Time and Nightcore run the game's clock at their speed (phigrospp.speed), so a frame's song time moves 0.75 or 1.25 times its delta time, which the site checks of a replay with modifiers (the median over its frames, within 2%). The windows are in song time: Nightcore's perfect is 64 ms of real time.
Random moves every note whose positionX is from -7.5 to 7.5 by whole lanes, 5 of them 3 wide: x + (lanes[lane] - lane) * 3 with lane = floor((x + 7.5) / 3). lanes is 0 to 4 shuffled by Fisher-Yates (i from 4 down to 1, swapped with next() % (i + 1)) from mulberry32 seeded with the replay's seed. It runs on the chart once mirrored, before the game lays it out for the screen.
Hidden and Flashlight only set a note's alpha, from d, its distance to its line in screen heights (its floor position minus its line's, times its speed, times 0.6). Hidden: (d - 0.15) / 0.15. Flashlight: (0.7 s - d) / (0.15 s) with s 1, 0.8125 from 100 combo and 0.75 from 200. Both clamped to 0 and 1, and multiplied when both are on. A hold is seen as its head is, which is on the line once its time came.
Nightcore's drums tick every half beat from the chart's start, at its first line's BPM (halved while it's 300 or more): a kick, a hat, a clap, a hat. Their samples are made from formulas, in mods/modifiers.lua.
Sudden Death and Perfect leave no replay of a play they ended, so the site refuses one with a bad or a miss, or with anything but perfects.