← Ülevaadedocs\ai_context\SANCTUM_RING_20261126.md

Universal skills + Sanctum Ring, 2026-11-26 (Claude, owner-approved)

Owner ask: universal skills that fit EVERY weapon skill bar (melee, bow, staff), first one a "safe zone" (own name/look). Owner tuning: anyone inside attacking breaks the ring; long duration growing with rank (15 s -> 10 min); faster HP regen inside.

Rules (skill id 30, type "Universal", cast_mode "sanctum")

RankDurationCooldownManaHP regen inside
115 s60 s302%/s max HP
260 s120 s452%
3180 s300 s603%
4360 s600 s753%
5600 s900 s904%

Unlock: Willpower 20 + Endurance 16 (tier 3 in SkillUnlockRules) + skill point. Ring: stationary at cast point, flattened ellipse radius 150 (SQUASH 0.62), one per caster (recast replaces). Enemies cannot damage players inside; enemy arrows break on the edge with a ripple; melee mobs wait at the edge (ranged may still shoot). Anyone inside committing an attack (needs a target) breaks it. Buffs/mining do not.

Files

Multiplayer

Ring = data (center, radius, ends_at, owner). Server keeps the list, runs the same contains/is_protected in CombatService and AI; protects ALL players inside; any player attacking from inside breaks it. Online code untouched (not built yet).

Evidence

Rollback

Before copies: D:/WieldHavenBackups/archive/sanctum_ring_20261126/before/ (SHA256SUMS).

In-world test (owner asked to try it in the real game), same day

Probe D:/WieldHavenBackups/proof_recordings/perf_20261122/sanctum_shot.gd (rendered MainWorld, copy of owner saves slot 3, run via perf_20261122/run_wait.ps1 -Out sanctumN). Run sanctum9: learn via rules, cast from bow bar slot 1 (MP -30), 3 melee mobs aggroed -> 0 inside, waiting at ~180 px (edge 150); HP 136 -> 166 (regen, no damage); enemy arrow breaks on edge; player basic attack from inside breaks ring; Fire Arrow (slot 2) works afterwards. Fixed from the world test: mobs walked in after the PET (hold now for any non-enemy target); Sanctum card was cut off at the Universal tab edge (now own row "ANY WEAPON BAR"); bar picker buttons were off-screen (now "PUT ON BAR" buttons in the Universal tab); floor glow toned down; shorter description. Images: test-results/sanctum_ring_20261126/world/*.png. Verifiers after fixes: Sanctum 33/33, unlocks 41/41.

27.11 parandus

Cooldownid 120-900 s ei töötanud: Player.get_skill_cooldown_msec luges >60 millisekunditeks (Sanctum rank 2-5 cooldown oli 0,12-0,9 s). Nüüd <1000 = sekundid. Vt DARK_HOLE_PORTAL_20261127.md.