Hourglass Mage
A new wizard: Horatio, Keeper of the Last Grain. Borrowed Time cogs record damage and pop, with its own reds. Last Grain slows enemies to 30% when you're low, and once every 3 min saves you from a lethal hit.
CHANGELOG
Changelog
0.9.37
- Fix: Horatio's rank could be overwritten by another run's. When a run is broken off, the game keeps a recovery note with the run's rank and writes it back at the next start. That note is kept once per PC, while the mod keeps Horatio's rank per r2modman profile, so a run broken off in one profile set his rank in the next profile started (his rank 10 in one profile became the rank 1 of a test run in another). The recovery no longer sets Horatio's rank: it comes from the mod's save, and the end of a run raises it as before. The game's own wizards keep their recovery.
- The skin locks log Horatio's rank, prestige and which skins are locked: once each time the outfit menu opens, and whenever that changes.
0.9.36
- Fix: the Haste red did nothing a player could feel. Solo, a pop hasted Horatio for 1.5 s, shorter than the 3.4 s between his casts, so the bonus usually ended before his next cast. In co-op only a player on the host's own machine could be picked, so a remote teammate never got it. Haste now uses the game's own timed fire-rate buff (the one the super pickups give): it reaches every teammate's own game, adds a real cast-speed modifier for the duration and plays the game's own buff effect. Solo, a pop now hastes Horatio for at least one cast interval plus 0.5 s (4.5 s by default), so it always covers his next cast. The orbiting cog is bigger. New settings: BorrowedTime.HastePercent (25), HasteSeconds (3), HasteSoloSeconds (4.5). Without the game's buff it falls back to the old per-spell boost.
0.9.35
Skin unlocks (skins 0.8.20, 9e850cb and 5804087):
- Horatio's skins now unlock as he gains rank, like the other wizards' skins unlock through play. The Pocket Watch opens at rank 3 and the Candle Clock at rank 6 (the same ranks that give a title). Both stay open once he has prestiged, though his rank starts again at 1. The Cuckoo Clock opens at Prestige 1.
- A locked skin shows its locked thumbnail in the outfit menu and can't be picked, the game's own way. Where the game shows a challenge, the panel says what to do instead: "Reach rank 3 as Horatio", "Reach rank 6 as Horatio" or "Reach Prestige 1 as Horatio". A saved choice of a skin that is still locked wears the Sandglass until it opens.
- The Cuckoo Clock is Horatio's prestige skin. Like every wizard's prestige skin it starts the run with another spell: the Fist (Clobbery) instead of Borrowed Time. In that skin there are no Borrowed Time clocks, red upgrade cards, cog bolts or Borrowed Time icons, and an Orb bought in the store is a plain Orb. Last Grain works as always.
- Debug.UnlockAllSkins (off) opens every skin for testing. The self-test and the skin capture tour open them too; the tour's new "unlocks" step keeps the locks on and shows the outfit menu at rank 1, 3, 6 and Prestige 1, and its "grain" step logs the run's spells and opens Last Grain. The "unlocks" shots include the menus (the screen is read whole, as the outfit self-test does).
0.9.34
- Candle Clock flame (skins 0.8.19, 2d6bf6d): on the select screen and in the lobby the flame showed an orange band along its top and a faint square box behind it. The band came from the flame sheet's smaller mipmaps blending each frame with its neighbour at those small sizes; the sheet now loads without mipmaps. The box was the halo particle's edge; the halo is gone (FlameGlow.png removed). The warm point light stays and lights the wax top.
0.9.33
- Self-test (for the Test Kit's all-mods rounds, which press no keys): two checks under Debug.VisualSelfTest. Projectile slow: while the Last Grain dial is open, the speed factor real enemy projectiles get inside the dial against outside it, normal and homing, logged as PASS / FAIL / SKIP (SKIP when none flew inside). Ctrl+1 banner: the hotkey's own call (Grant Overkill) must switch BannerGui on, and off about 3 s after the last message (SelfTestChecksTests).
- Packaging: CHANGELOG.md keeps the newest 10 versions (Thunderstore refused the 0.9.32 zip: its CHANGELOG was over 100,000 characters); older versions are in docs/CHANGELOG-archive.md (tools/trim_changelog.py). The Package target and ThunderstoreLimitsTests fail on a CHANGELOG or README over the limit or a manifest description over 250.
- Merged the skins' 0.8.17 and 0.8.18 (3483c44, skins branch); their notes follow.
0.8.18 (skins branch)
- Choosing Horatio, then opening the Wizards panel, switched the pick back to Reginald (seen in a co-op lobby). The panel's Open resolves the stored pick through the game's CharacterSelectionResolver, which keeps a wizard only when CharacterAvailabilityChecker passes it (Enum.IsDefined: never for a modded id) and else answers Reginald; the panel then selected Reginald and synced him to the lobby. The 0.8.14 fix only covered the selection getters. The checker now passes Horatio once he exists, and his skins when switched on (IsSkinAvailable, so ResolveSkin keeps his outfit). That also covers the character buttons' confirm and the panel's OnSelected, which resolve the same way.
- Candle Clock: a better candle flame. The cards now step through an 8-frame flicker sheet (FlameSheet.png, our own art made by tools/make_flame_texture.py in the spirit of the game's brazier flame: a teardrop that sways and breathes, a white-yellow core low in the middle, yellow body, orange rim, a red-orange tip and a hint of blue at the base) at 12 fps, the inner cards three frames ahead, instead of one white teardrop tinted gold and orange. A soft warm halo (one camera-facing particle, LDR alpha blend, from the wick up, not over the face) and a small warm point light on the wax top and shoulders flicker with it; all three deepen towards gold on a Last Grain flare. Colours stay at or under 1, so the select screen draws them and bloom leaves them alone. Each frame is its own card mesh with that frame's UVs, swapped in as the flame burns: URP's Particles/Unlit shader ignores a material's tiling and offset, so a first in-game test drew all eight frames at once. The halo's material skips the alpha clip, which drew a hard ring round its mostly transparent tint.
- Pocket Watch: the Select clip no longer passes through the chain. The presenting right forearm rose through the chain hanging in front of the shoulder (in 63 of 75 frames) and the bow put that hand on the chest under it. The elbow now stays down at the side, the forearm comes forward low and outside the chain, and the bow sweeps the hand out low like the other one: no chain edge crosses a forearm or glove in any frame (tools/clip_check.py --arms --chain --cross, and the new PocketWatchSelectTests), and the arm edges through the coat are no more than at rest.
- Pocket Watch: drawn at 0.9 in every scene (select screen, lobby, run). With its wide coat and big watch it covered about a third more screen than Horatio at the same height (front silhouette 1.78 against 1.35 m^2; Candle 1.22, Cuckoo 1.37); at 0.9 it is 1.44 (SkinInfo.ModelScale).
- Skin capture tour: "wizards" (opens the Wizards panel with Horatio picked and logs the pick) and "close" (close-ups in the run); the select tour also shoots the Select clip's bow.
0.8.17 (skins branch)
- New outfit thumbnails for the Pocket Watch, Candle Clock and Cuckoo Clock, painted in the vanilla wizards' thumbnail style (badges generated in chat): a tight head-and-shoulders crop on a painted diagonal gradient with chunky shapes and dark painted outlines, each skin its own background (teal-blue, plum, forest green), as the vanilla skins have. The old ones were small 3D renders on the Sandglass's purple. Painted in ChatGPT from the skins' renders with vanilla thumbnails as the style reference (art/thumbnails/_painting.jpg), with 8 % less saturation; the locked thumbnails are flat black silhouettes (from ChatGPT mattes, art/thumbnails/_matte.jpg) on the vanilla locked backdrop's charcoal, and the in-run portraits the face's square (tools/make_skin_thumbnails.py). Sizes as the game's sprites: 416x386, 416x386, 256x256.
- The Sandglass's thumbnails (outfit/select and in-run) have 12 % less saturation (mean 0.69 to 0.60; the vanilla skins' median is 0.63), tools/thumb_saturation.py.
0.9.32
-
Fix (check all elements that have a status): none of the game's element effects on an enemy are networked, so the cogs' own hits (dealt on the host alone) showed their effects only on the host. Clients now see them too: Acid poison and weaken, Ice chill and freeze (applied to the client's copy; no damage), the Fire burn's look (not its damage ticks), the Dark corruption's look and hit flash (the client's copy never turns on other enemies; a corrupting kill was networked already), and the Lightning hit flash on each struck enemy (the bounce lines stay the host's). Combos use the same effects. The Elements mod's Earth bursts and Air lifts from the cogs' hits show on clients through that mod's look-only ElementsVisuals (Elements 0.6.47 or newer; at most one per enemy per 0.5 s).
-
Perf (so slower PCs can host; measured: 5.0 MB/s of game-side garbage from Hourglass, a 98 ms first-bolt hitch, searches of every loaded object): shader properties by cached id (each by-name call made a new game-side string, thousands a second over the cogs), no lists or delegates made per frame, the game's lists walked by index, the enemy lookup on clients rebuilt 4x a second instead of every frame, child lookups by name cached, one tinted spark material per colour instead of one per cog, the first bolt's materials and the sounds' events warmed up as the run starts, the statues and structures tracked as they appear (not searched for every second), and a search that finds nothing runs at most 3 times per scene instead of every 5-10 s for the whole run. Looks and behaviour are unchanged.
-
Fix (seen on a joining player: a NullReferenceException in FrenzyMarker.Awake and OnDestroy): the health-bar markers copy Spud's Frenzy marker. The copy now loses every game script while it is still inactive (only Unity's own UI and animator stay), so the copied FrenzyMarker can never wake; if one can't be removed, the marker is left out instead.
-
Fix (the same log: ~370 pairs of "Particle Velocity curves must all be in the same mode" and the Orbital one per session): Last Grain's orbiting sand set only Y of its velocity and orbital velocity as a random range; X and Z are now the same mode (0..0), so the look is unchanged. Needs the VFX bundle rebuilt from the Unity project.
-
Fix (on a joined client, Acid didn't trigger on the chained cogs' enemies): the cogs' own hits (small hits, pops, Chain arrivals) are dealt on the host alone, and the game's Acid effect is local to each machine, so a client never saw it on mobs only the cogs hit. The host now forwards each Acid poison and weaken of those hits; the client applies it to its copy (look only; health stays the host's). Cog sync protocol 3: host and clients need 0.9.32.
-
Fix (same session: "sounded like it missed some sounds"): the game's crit sound for the cogs' own hits played only on the host (it sits inside the game's damage path). Clients now play the same game sound when the crit's damage number arrives.
-
New (soft and rate-limited): the stuck cogs' small hits have a sound again (HitSound, "buzzsaw impact"; unused since 0.8.0). Quieter than the bolt (HitSoundVolume 0.5) and at most HitSoundsPerSecond (4) over all cogs, the one closest to the camera first. It plays on every machine: on the host from the hit, on clients from the synced tick. The log reports the rate played every 30 s.
0.9.31
- New: friendly-fire cogs. With friendly fire on, a Borrowed Time bolt that hurts a teammate sticks a cog in them like in an enemy: it records (teammates' spell hits on them are ticks), deals its small hits, grows with Borrowed Time hits and pops for what an enemy's cog would. The damage is the game's own friendly-fire hit, dealt on the teammate's own game through their hitbox (the friendly-fire multiplier, armour and dodge apply). Only real friendly-fire damage plants one: with friendly fire off, or when the bolt heals teammates instead (the "heals instead" red), nothing changes. Never on Horatio himself. The reds (Chain, Explosion, Overkill, Haste) and the element tick effects stay enemy-only. Setting BorrowedTime.Wound.AllyCog (on).
- Co-op fixes (on a joining client: cogs lagged behind hits, a hit on a second enemy showed its cog over the
first, Dark's ticks weren't visible):
- Clients map a cog to the live enemy with that network id. A pooled enemy that is inactive or despawned keeps its old id in the game's enemy list and no longer wins over the enemy that has the id now; a cog whose enemy is gone on the client is dropped after 0.75 s.
- A Stick plants the client's cog at once, instead of at the next state message.
- Each recorded tick, size step and small hit is sent as a small event: the client's cog pulses and fills with it, and small hits (Dark's corruption ticks among them) throw a few sparks in the element's colour.
- Less network traffic (co-op over an Epic relay): the full cog state went to every client 10 times a second, reliably. Now plants, pops and flights go reliably the frame they happen, ticks go unreliably (batched, at most 10 a second), and the full state only goes when something changed that no event said (at most 5 a second), as a keep-alive every 1.5 s, or not at all without cogs. Simulated fight (~16 cogs at a time): about 5,400 bytes/s per client before, 820 after. Setting Net.CogSyncMode (Delta; Legacy = the old way).
- Damage numbers for clients (the joining player missed numbers): the game shows on each machine only the hits that machine simulates, and the cogs' hits (small hits, pops, Chain arrivals, Explosion, Lightning ricochets, element procs) happen on the host alone. The host now sends each number it shows for such a hit and the client shows it through the game's own popup on its copy of the enemy. Setting Net.ClientDamageNumbers (Mod; All also sends the bolts' hits, which clients may then see twice; Off).
- The cog sync's protocol is now 2: every player in a lobby needs 0.9.31.
- Performance (from the performance branch): the enemy-projectile patches go on only the first time an Hourglass Mage is in a mission; the test-hotkey banner is its own component, on only while a message shows (no GUI pass every frame); the per-wound log line is throttled (the first ten, the rest with VerboseLog); statues and structures are looked up in turns; Last Grain's tick no longer allocates every frame.
0.9.30
- Store page only: the description now names the four skins and the +3 XP gain passive. Nothing changed in the mod itself.
0.9.29
- New: Last Grain's save. Once every 180 s, a hit that would take Horatio to 0 health leaves him at 1, opens the bubble at once (even while Last Grain recharges), grants 0.5 s of immunity (the game's own invulnerability plus a block in the hook) and plays a crack sound, shake and rumble. A gold marker at the left end of the health bar fills while it recharges. Owner-side (PlayerHealthContainer.RemoveHealthOnOwner), so it works for co-op clients too; the one-hit curse is left alone. Settings LastGrain.CheatDeath / CheatDeathCooldown / CheatDeathImmunity, Feel.SaveSound.
- Balance, the reds trim (Borrowed Time with Split x3, Explosion and Chain was far too strong; each red about x1.3): Split's child bolts hit for 0.12x, plant cogs of that size and no longer start a bounce run of their own (Wound.SplitBoltScale); a Chain bounce carries its parent cog's size share (a small Split cog's pop no longer chains full-size bounces); Explosion's burst 0.27x (PopBurstFactor). The Split mechanic itself is the game's (2 children at +-45 degrees whenever a bolt ends). Option Wound.SplitHoming (children turn to free enemies), off.
- Chain rebuilt (arrival strike + seek healthy): each bounce hits on arrival for 0.85x the bolt's damage (times its depth scale and element), goes for the enemy in range with the most health left and no cog, and its cog pops after 1 s (Chain.ArrivalStrike, SeekHealthy, Fuse). Bounce cogs get a pop floor too (Chain.PopFloor).
- Fix (the Last Grain dial was an opaque salmon disc in one run): the dial's translucent layers were copied from the first loaded material on URP Particles/Unlit; after an Earth infusion that was the Elements mod's crack material, opaque and salmon. They now always come from the mod's own clean material.
- Fix (Overkill could be picked again and again): the game doesn't hold the mod's runtime red cards to their pick count; a red now leaves the shop once picked to its maximum.
- The Borrowed Time debug hotkey moved from Ctrl+B (the Health Bars mod spawns an elite on it) to Ctrl+K (BorrowedTime.DebugWoundKey; a B setting moves to K).
- Borrowed Time's icon in the HUD slot, level-up cards and the red store, per element (21 icons).
- Skins (from the skin branch, 0.8.17): new outfit thumbnails for the Pocket Watch, Candle Clock and Cuckoo Clock in the vanilla wizards' painted thumbnail style (head-and-shoulders crop, painted diagonal gradient, each skin its own background), black-silhouette locked thumbnails, matching in-run portraits; the Sandglass's thumbnails 12 % less saturated (tools/make_skin_thumbnails.py, tools/thumb_saturation.py).
- Test tooling: staged red variants ('A>B>C'), up to 10 matrix passes, Debug.SelfTestIconCaptures (HUD, level-up and red store captures with the UI), Debug.SelfTestReleaseCheck (Earth Last Grain close-ups, the save's double lethal hit).
0.9.28
- Fix (a quick flash of a huge cogwheel covering the screen): a flying cog divided its size by its projectile's scale to keep its world size; the game shrinks a dying bolt towards 0 and sets a pooled one back to full size, so the cog was blown up (x10-x100 and more) and a reused bolt could show it for a frame. The cog is now hidden below projectile scale 0.05, resized right after the game sets a bolt up and once more after every Update. A cog guard checks every cog of ours each frame (wider than 6 m: logged and shrunk; within 3 m of the camera: logged). Check: 12 min with Split x3 + Explosion + Chain, 2726 shrunk cogs hidden, 0 guard hits.
- Fix (Reginald's orbs among the cogs with the Split red): the Split red's child bolts come through another pool path the cast hook never saw; the look is now settled in ProjectileController.Setup for every projectile (cast, split, burst, pooled reuse), and a pooled cog bolt taken by another spell gets its own look back.
- The pops' screen shake is limited to one per 0.6 s (dozens a second with Split + Explosion).
- Test tooling: Debug.SelfTestBurstCaptures (captures during a soak or matrix with bolt and guard counts).
0.9.27
- Balance (option A): the per-element factor (Wound.ElementDamageScale) now also multiplies Borrowed Time's own bolt hit, before the game removes health and runs the element's effects, so the hit, the burn it lights and the chain it starts scale with it. Before, it only reached the wound's own damage (ticks, pop, bounces), 10-50 % of a combo's total, which is why FireLightning (mostly the game's burn) barely moved with its factor. New setting Wound.ElementScalesBoltHit (on; off = the 0.9.26 behaviour).
- The balance matrix now infuses Horatio's bolt with the element too (through the Test Kit, like the other wizards). Before, only his cogs carried it and the bolt hit plain, so his numbers never held the game's own effect of an infused hit: the 0.9.23-0.9.26 Borrowed Time element ratios understated him in real play.
- Factors rebased for this (each factor now covers the whole combo, recomputed from each combo's measured wound share so its total stayed) and then kept as measured (the spread per element is in line with the vanilla wizards). Re-measured (35 combos, 2 windows each, Abstinence x3, boss and elites held, level 10; corrupted minions' hits left out), x a plain cog: FireLightning 3.6, AcidFire 3.4, AirLightning 3.4, EarthFire 3.1, AirFire 3.0, FireDouble 2.9, AcidLightning 2.5, LightningDouble 2.5, FireIce 2.2, IceLightning 2.0, DarkFire 2.0; singles 1.0-1.7.
- Test tooling: Debug.SelfTestVariants (Test Kit 0.3.24 red variants for the soak) and the round script's -Variants.
Older versions: docs/CHANGELOG-archive.md in the GitHub repository.