Ageless Watch is prefab pocketwatch_heal. Wanda crafts it by hand: 1 Time Pieces, 2 Marble, 1 Red Gem. TECH.NONE, builder_tag=clockmaker. The constant is POCKETWATCH_HEAL_HEALING = 20. Wanda's age bar is 60 points for years 20-80, and OLDAGE_HEALTH_SCALE is 60/150 = 0.4. 20 times 0.4 is 8 years.
Cooldown is POCKETWATCH_HEAL_COOLDOWN = seg_time * 4. seg_time is 30, so 120 seconds. 2 min is that number.
Prefab pocketwatch_heal. 20 * 0.4 = 8. Cooldown 120s.
Frame 25 starts the 120s. A hit before that does not
Sound at 8 frames. Action at 25. Discharge is inside Heal_DoCastSpell.
Heal_DoCastSpell calls oldager:StopDamageOverTime(), then health:DoDelta(20, true, "pocketwatch_heal"), then rechargeable:Discharge(120). That only runs if health exists and she is not dead. The stategraph pocketwatch_cast fires PerformBufferedAction at 25 frames, about 0.83s. Sound and the cast FX spawn at 8 frames if CanCast is still true. Busy drops at 40 frames on success.
A hit that knocks her out of the state before frame 25 never calls DoCastSpell. The 120s does not start. After frame 25 the rewind and the cooldown are already in.
Each watch has its own rechargeable. Two watches are two clocks. On cooldown the item loses pocketwatch_inactive, and pocketwatch_nodecon blocks both the Clockmaker's Tools and a Deconstruction Staff until it charges. Dropped cooldown uses the long anim because 120 is greater than 4.
The meter is 5 years/s. Opposite-sign hits wipe it
sqrt(8) * 1.5, ceil, cap 30. That is 5 years/s. 8 / 5 = 1.6s.
Wanda's health redirect sends every delta through OldAger:OnTakeDamage. Only this watch counts as a rewind. canheal is false. Food does not rewind her.
On a valid heal, the code flips the sign and multiplies by 0.4. 20 becomes -8 years on the meter. Tick rate is min(ceil(sqrt(abs(remaining)) * 1.5), 30). For 8 that is 5 years per second, so the rewind finishes in 1.6s. StopDamageOverTime zeros leftover hit-aging before that -8 is queued. If a new hit lands while the -8 is still ticking, opposite signs wipe the leftover rewind and the hit takes the meter. Hunger, freeze, and overheat ticks do the same wipe.
At full youth (health 60, age 20) extra negative years are discarded: year_timer resets and the meter stops. Natural aging is base_rate = 1/40 years per second, 12 years in a 480s day. One watch on cooldown is 4 uses a day, 32 years back, 20 net if she takes no hits. She spawns at SetPercent(0.70), age 38, with this watch and 3 Time Pieces. Watches in her inventory keep on death except the Second Chance Watch. She can cast it mounted (pocketwatch_mountedcast).
Numbers
| Check | Value |
|---|---|
| Heal constant | 20 |
| Age scale | 60/150 = 0.4 |
| Years per use | 8 |
| Cooldown | 120s (seg_time * 4) |
| Cast settle | 25 frames (~0.83s) |
| Sound / FX | 8 frames |
| Meter tick | 5 years/s for an 8-year rewind |
| Natural age | 1 year / 40s, 12 / day |
| Spawn | 70% bar, age 38, 1 watch + 3 parts |
| Recipe | 1 Time Pieces, 2 Marble, 1 Red Gem |
- Keep the 20, not only the 8. The 8 is 20 after the 0.4 scale.
- Do not tap it in a swarm before 0.83s if you need the rewind. The cooldown is the same gate.
- A second watch is a second 120s. Same prefab, own rechargeable.
- A hit while the 1.6s meter is running wipes the leftover rewind.
Related: Ageless Watch, Time Pieces, Clockmaker's Tools, Marble, Red Gem.