ModernUO/Projects/UOContent/Spells/Fifth
Kamron Batman 8d1283ba27
feat: convert all delta-time serialization to anchored time
Every actively-written delta-time value now stores an absolute anchored
timestamp, shifted by downtime at load: remaining time is preserved across
restarts and idle saves become byte-stable.

- Item v11: LastMoved (was whole-minute delta, rewritten every save) and
  DecayResetTime; Mobile v38: the three stat-gain stamps; BaseCreature v21:
  SummonEnd; plus VendorInventory, StealableArtifacts, and ML quest objective
  timers in their own version gates.
- 17 code-generated classes swap [DeltaDateTime] for [AnchoredDateTime] with a
  version bump and MigrateFrom each (generated from their current migration
  schemas, so old saves replay the delta reads).
- GenericPersistence payloads carry no anchor of their own, so they inherit
  the save-wide shift: entity indexes always load first, and every file in a
  save shares one SaveStartTime - World.LoadTimeShift is stamped from the idx
  v5 header and applied to generic persistence readers. This is what makes
  VirtueContext and StealableArtifacts convertible at all.
- Legacy read sites (old-version fallbacks and migration replays) keep
  ReadDeltaTime: they decode old bytes and must never change.

Acceptance tests: item serialization is byte-identical across saves hours
apart, and LastMoved/DecayResetTime round-trip exactly at sub-minute
precision (impossible under the old minutes encoding).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-22 19:19:42 -07:00
..
BladeSpirits.cs fix: Fixes targeting ground with spells (#1937) 2024-08-20 15:51:33 -07:00
DispelField.cs fix: Adjusts spell ranges to match OSI (#2171) 2025-05-01 20:03:56 -07:00
Incognito.cs fix: Fixes buffs don't start/stop properly. Streamlines constructor and Add/Remove buffs. (#2082) 2025-01-24 18:20:23 -08:00
MagicReflect.cs feat: T2A defensive spells (#2378) 2026-03-22 11:18:34 -07:00
MindBlast.cs fix: Magic NPCs now use spell range (#1870) 2024-08-08 07:05:27 -07:00
Paralyze.cs feat: Add spawn position caching and spiral scan optimization (#2295) 2025-12-28 02:40:21 -08:00
PoisonField.cs feat: convert all delta-time serialization to anchored time 2026-08-22 19:19:42 -07:00
SummonCreature.cs fix: Consolidates Color/Center html (#1762) 2024-05-07 23:56:32 -07:00