[Skill #065] [SOR] Cold Mastery (1.13c Parity) #219

Closed
opened 2026-09-22 02:40:07 +00:00 by troytt · 2 comments
Owner

Diablo II: Lord of Destruction v1.13c Skill Parity Specification

Field Value
Skill ID 65 (#065)
Skill Name Cold Mastery (skilldesc: cold mastery)
Class sor (Sorceress)
Required Level (reqlevel) 30
Prerequisites (reqskill1..3) -, -, -
Isolated Implementation Module src/game/skills/impl/sor/skill-065-cold-mastery.ts
Isolated Vitest Suite tests/skills/sor/skill-065-cold-mastery.test.ts

1. Authoritative 1.13c Skills.txt Function & Handler Dispatch

Function Slot 1.13c Value
srvstfunc (Server Start / Pre-Cast) -
srvdofunc (Server Action Frame 0x01/0x02) -
srvprgfunc1..3 (Progressive Charge Release) - / - / -
cltstfunc / cltdofunc (Client Start / Action) - / -
cltprgfunc1..3 (Client Progressive Release) - / - / -
passive / checkfunc passive=1 / checkfunc=-
auraevent1 / auraeventfunc1 - / -

2. Associated Missiles, States, Auras, Curses & Summons

Subsystem 1.13c Configuration
Server Missiles (srvmissile / a..c) - / a:-, b:-, c:-
Client Missiles (cltmissile / cltmissilea) - / -
Aura / Buff States (aurastate / auratgtstate) self:- / tgt:-
Aura / Buff Stats (aurastat1..3) -, -, -
Passive State & Stats (passivestate / passivestat1..3) state:coldmastery / passive_cold_pierce, -, -
Curse Priority (cursetype) -
Summon / Pet (summon / pettype / petmax) mon:- / type:- / max:-

3. 1.13c Base Numerical & Synergy Formulas (Patch_D2.mpq)

  • Mana Cost: mana=0, lvlmana=0 (256-fixed-point << HitShift)
  • Physical / Elemental Damage: MinDam=-, MaxDam=-, EType=-, EMin=-, EMax=-, ELen=-
  • AST calc1..4: calc1=-, calc2=-, calc3=-, calc4=-
  • Synergy Calculations (blvl strictly base allocated STAT_SKILLPTS only):
    • EDmgSymPerCalc: -
    • DmgSymPerCalc: -
    • ELenSymPerCalc: -

4. R3 Verification & Merge Checklist

  • Isolated Git Worktree: Created via git worktree add ../wt-skill-65 -b feat/skill-65 from main.
  • 1.13c Implementation: src/game/skills/impl/sor/skill-065-cold-mastery.ts implements exact 1.13c srvstfunc/srvdofunc/srvprgfunc & numerical evaluation.
  • Automated Unit & Numerical Tests (slvl 1, 10, 20 + blvl Synergies): tests/skills/sor/skill-065-cold-mastery.test.ts passes 100% in Vitest verifying ManaCost, MinDmg, MaxDmg, ToHit, Duration, Radius, synergy scaling, and runtime combat/missile/state/summon effect.
  • Real-Browser Casting & Screenshot: Executed in headless Chromium (acts.html?arena=1&class=sor&skill=65&slvl=20&autocast=1) with zero console/page errors and PNG screenshot attached to this Issue.
  • Merge & Cleanup: Merged to main with fixes #<issue_number>, pushed to origin/main, verified Issue is closed, and removed worktree ../wt-skill-65 + branch feat/skill-65.
## Diablo II: Lord of Destruction v1.13c Skill Parity Specification | Field | Value | |---|---| | **Skill ID** | `65` (`#065`) | | **Skill Name** | **Cold Mastery** (`skilldesc: cold mastery`) | | **Class** | `sor` (Sorceress) | | **Required Level (`reqlevel`)** | `30` | | **Prerequisites (`reqskill1..3`)** | `-`, `-`, `-` | | **Isolated Implementation Module** | `src/game/skills/impl/sor/skill-065-cold-mastery.ts` | | **Isolated Vitest Suite** | `tests/skills/sor/skill-065-cold-mastery.test.ts` | --- ### 1. Authoritative 1.13c `Skills.txt` Function & Handler Dispatch | Function Slot | 1.13c Value | |---|---| | **`srvstfunc`** (Server Start / Pre-Cast) | `-` | | **`srvdofunc`** (Server Action Frame `0x01`/`0x02`) | `-` | | **`srvprgfunc1..3`** (Progressive Charge Release) | `-` / `-` / `-` | | **`cltstfunc` / `cltdofunc`** (Client Start / Action) | `-` / `-` | | **`cltprgfunc1..3`** (Client Progressive Release) | `-` / `-` / `-` | | **`passive` / `checkfunc`** | `passive=1` / `checkfunc=-` | | **`auraevent1` / `auraeventfunc1`** | `-` / `-` | ### 2. Associated Missiles, States, Auras, Curses & Summons | Subsystem | 1.13c Configuration | |---|---| | **Server Missiles (`srvmissile` / `a..c`)** | `-` / `a:-`, `b:-`, `c:-` | | **Client Missiles (`cltmissile` / `cltmissilea`)** | `-` / `-` | | **Aura / Buff States (`aurastate` / `auratgtstate`)** | `self:-` / `tgt:-` | | **Aura / Buff Stats (`aurastat1..3`)** | `-`, `-`, `-` | | **Passive State & Stats (`passivestate` / `passivestat1..3`)** | `state:coldmastery` / `passive_cold_pierce`, `-`, `-` | | **Curse Priority (`cursetype`)** | `-` | | **Summon / Pet (`summon` / `pettype` / `petmax`)** | `mon:-` / `type:-` / `max:-` | ### 3. 1.13c Base Numerical & Synergy Formulas (`Patch_D2.mpq`) - **Mana Cost**: `mana=0`, `lvlmana=0` (256-fixed-point `<< HitShift`) - **Physical / Elemental Damage**: `MinDam=-`, `MaxDam=-`, `EType=-`, `EMin=-`, `EMax=-`, `ELen=-` - **AST `calc1..4`**: `calc1=-`, `calc2=-`, `calc3=-`, `calc4=-` - **Synergy Calculations (`blvl` strictly base allocated `STAT_SKILLPTS` only)**: - `EDmgSymPerCalc`: `-` - `DmgSymPerCalc`: `-` - `ELenSymPerCalc`: `-` --- ### 4. R3 Verification & Merge Checklist - [ ] **Isolated Git Worktree**: Created via `git worktree add ../wt-skill-65 -b feat/skill-65` from `main`. - [ ] **1.13c Implementation**: `src/game/skills/impl/sor/skill-065-cold-mastery.ts` implements exact 1.13c `srvstfunc`/`srvdofunc`/`srvprgfunc` & numerical evaluation. - [ ] **Automated Unit & Numerical Tests (`slvl` 1, 10, 20 + `blvl` Synergies)**: `tests/skills/sor/skill-065-cold-mastery.test.ts` passes 100% in Vitest verifying `ManaCost`, `MinDmg`, `MaxDmg`, `ToHit`, `Duration`, `Radius`, synergy scaling, and runtime combat/missile/state/summon effect. - [ ] **Real-Browser Casting & Screenshot**: Executed in headless Chromium (`acts.html?arena=1&class=sor&skill=65&slvl=20&autocast=1`) with zero console/page errors and PNG screenshot attached to this Issue. - [ ] **Merge & Cleanup**: Merged to `main` with `fixes #<issue_number>`, pushed to `origin/main`, verified Issue is `closed`, and removed worktree `../wt-skill-65` + branch `feat/skill-65`.
troytt added this to the All Player Skills (v1.13c Parity) milestone 2026-09-22 02:40:07 +00:00
Author
Owner

✅ Completed: [Skill #065] Cold Mastery (SOR) — 1.13c Parity Verified

1. Isolated Worktree & Module Implementation

  • Worktree & Branch: ../wt-skill-065 (feat/skill-065)
  • Skill Module: src/game/skills/impl/sor/skill-065-cold-mastery.ts
  • Vitest Suite: tests/skills/sor/skill-065-cold-mastery.test.ts
  • 1.13c Dispatch: srvstfunc=0, srvdofunc=0, missile=none, state=coldmastery, summon=none

2. 1.13c Numerical & Synergy Verification Table

Metric slvl = 1 slvl = 10 slvl = 20 (0 Syn) slvl = 20 (+20 blvl Syn)
Mana Cost (usmc) 0 (0) 0 (0) 0 (0) 0 (0)
Phys Dmg (Min-Max) 0-0 0-0 0-0 0-0
Elem Dmg (Min-Max) 0-0 (mag) 0-0 (mag) 0-0 (mag) 0-0 (+0%)
AR % / Duration / Radius +0% / 0f / 20 +0% / 0f / 65 +0% / 0f / 115 +0% / 0f / 115

3. Headless Chromium (chromium-1228) Runtime Telemetry & Screenshot

  • Arena State: ready=true, classCode=sor (so), castCount=1, anim=SC:6, totalDamageDealt=0, consoleErrors=0
  • Captured PNG Size: 586515 bytes

Skill #065 Cold Mastery

### ✅ Completed: [Skill #065] Cold Mastery (`SOR`) — 1.13c Parity Verified #### 1. Isolated Worktree & Module Implementation - **Worktree & Branch**: `../wt-skill-065` (`feat/skill-065`) - **Skill Module**: `src/game/skills/impl/sor/skill-065-cold-mastery.ts` - **Vitest Suite**: `tests/skills/sor/skill-065-cold-mastery.test.ts` - **1.13c Dispatch**: `srvstfunc=0`, `srvdofunc=0`, `missile=none`, `state=coldmastery`, `summon=none` #### 2. 1.13c Numerical & Synergy Verification Table | Metric | `slvl = 1` | `slvl = 10` | `slvl = 20` (0 Syn) | `slvl = 20` (+20 `blvl` Syn) | | :--- | :---: | :---: | :---: | :---: | | **Mana Cost (`usmc`)** | `0` (`0`) | `0` (`0`) | `0` (`0`) | `0` (`0`) | | **Phys Dmg (`Min-Max`)** | `0-0` | `0-0` | `0-0` | `0-0` | | **Elem Dmg (`Min-Max`)** | `0-0` (`mag`) | `0-0` (`mag`) | `0-0` (`mag`) | `0-0` (+0%) | | **AR % / Duration / Radius** | `+0%` / `0f` / `20` | `+0%` / `0f` / `65` | `+0%` / `0f` / `115` | `+0%` / `0f` / `115` | #### 3. Headless Chromium (`chromium-1228`) Runtime Telemetry & Screenshot - **Arena State**: `ready=true`, `classCode=sor` (`so`), `castCount=1`, `anim=SC:6`, `totalDamageDealt=0`, `consoleErrors=0` - **Captured PNG Size**: `586515` bytes ![Skill #065 Cold Mastery](https://git.projectdiablo2.cn/attachments/3c8cc7e5-a6c8-4219-9fdc-2687b78b8441)
Author
Owner

1.13c Parity Verification Report — Cold Mastery (Skill ID: 65)

Commit: 375f329
7-Dimensional Verification Suite: tests/skills/sor/skill-065-cold-mastery.test.ts (15/15 passed)

  1. D1: 1.13c Data Table Parsing & Canonical Schema Integrity:
    • Skills.txt: Row 65 (Cold Mastery), passive: 1, passivestat1: passive_cold_pierce, passivecalc1: ln12, Param1: 20 (% base cold pierce), Param2: 5 (% cold pierce per level), mana: 0.
  2. D2: Visual Assets & Metadata Integrity:
    • Passive skill metadata in skillModule (ID 65, charclass sor, zero cast overlay).
  3. D3: Authentic 1.13c Passive Cold Pierce Calculation:
    • Formula: 20 + (slvl - 1) * 5 -> 20% (slvl 1), 65% (slvl 10), 115% (slvl 20), 165% (slvl 30), 0% for slvl <= 0.
  4. D4: Immunity Handling, Conviction/LR Interaction & -100% Floor Clamping:
    • Non-immune monsters: reduces cold resistance by full mastery amount (e.g. 50% base -> -65% with slvl 20 CM).
    • Floor clamp: resistance cannot fall below -100% (max damage multiplier 2.0x).
    • Natural Cold Immunes (>= 100%): Cold Mastery CANNOT break immunity (effectiveRes remains 100%, 0 cold damage).
    • Broken Immunes: When broken by Conviction/Lower Resist (applied at 1/5th penalty), Cold Mastery applies at full 100% effectiveness.
    • Combat pipeline: attacker.statList.getAccruedStat('passive_cold_pierce') seamlessly amplifies cold damage via computeEffectiveResistance.
  5. D5: StatList & Skill Module Evaluation:
    • skillModule.evaluate: 0 mana cost, 0 physical/elem damage, radiusSubtiles reflects pierce percentage (20/65/115), 0 synergies.
  6. D6: Mana Progression & Cooldown Ticks:
    • Mana cost: strictly 0 at all levels.
    • Cooldown: strictly 0 ticks.
  7. D7: Invariants & WorldArena Integration:
    • BATCH1_SKILLS length remains strictly 38 entries.
    • calculateSkillDamage(65) returns { min: 0, max: 0 }.
    • WorldArena execution verified.
### 1.13c Parity Verification Report — Cold Mastery (Skill ID: 65) **Commit**: `375f329` **7-Dimensional Verification Suite**: `tests/skills/sor/skill-065-cold-mastery.test.ts` (15/15 passed) 1. **D1: 1.13c Data Table Parsing & Canonical Schema Integrity**: - `Skills.txt`: Row 65 (`Cold Mastery`), `passive`: 1, `passivestat1`: `passive_cold_pierce`, `passivecalc1`: `ln12`, `Param1`: 20 (% base cold pierce), `Param2`: 5 (% cold pierce per level), `mana`: 0. 2. **D2: Visual Assets & Metadata Integrity**: - Passive skill metadata in `skillModule` (ID 65, charclass `sor`, zero cast overlay). 3. **D3: Authentic 1.13c Passive Cold Pierce Calculation**: - Formula: `20 + (slvl - 1) * 5` -> 20% (slvl 1), 65% (slvl 10), 115% (slvl 20), 165% (slvl 30), 0% for slvl <= 0. 4. **D4: Immunity Handling, Conviction/LR Interaction & -100% Floor Clamping**: - Non-immune monsters: reduces cold resistance by full mastery amount (e.g. 50% base -> -65% with slvl 20 CM). - Floor clamp: resistance cannot fall below -100% (max damage multiplier 2.0x). - Natural Cold Immunes (>= 100%): Cold Mastery CANNOT break immunity (`effectiveRes` remains 100%, 0 cold damage). - Broken Immunes: When broken by Conviction/Lower Resist (applied at 1/5th penalty), Cold Mastery applies at full 100% effectiveness. - Combat pipeline: `attacker.statList.getAccruedStat('passive_cold_pierce')` seamlessly amplifies cold damage via `computeEffectiveResistance`. 5. **D5: StatList & Skill Module Evaluation**: - `skillModule.evaluate`: 0 mana cost, 0 physical/elem damage, radiusSubtiles reflects pierce percentage (20/65/115), 0 synergies. 6. **D6: Mana Progression & Cooldown Ticks**: - Mana cost: strictly 0 at all levels. - Cooldown: strictly 0 ticks. 7. **D7: Invariants & WorldArena Integration**: - `BATCH1_SKILLS` length remains strictly 38 entries. - `calculateSkillDamage(65)` returns `{ min: 0, max: 0 }`. - WorldArena execution verified.
Sign in to join this conversation.
No Label
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: troytt/diablo2-web#219
No description provided.