[Skill #038] [SOR] Charged Bolt (1.13c Parity) #192

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

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

Field Value
Skill ID 38 (#038)
Skill Name Charged Bolt (skilldesc: charged bolt)
Class sor (Sorceress)
Required Level (reqlevel) 1
Prerequisites (reqskill1..3) -, -, -
Isolated Implementation Module src/game/skills/impl/sor/skill-038-charged-bolt.ts
Isolated Vitest Suite tests/skills/sor/skill-038-charged-bolt.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) 17
srvprgfunc1..3 (Progressive Charge Release) - / - / -
cltstfunc / cltdofunc (Client Start / Action) - / 23
cltprgfunc1..3 (Client Progressive Release) - / - / -
passive / checkfunc passive=- / checkfunc=-
auraevent1 / auraeventfunc1 - / -

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

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

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

  • Mana Cost: mana=24, lvlmana=4 (256-fixed-point << HitShift)
  • Physical / Elemental Damage: MinDam=-, MaxDam=-, EType=ltng, EMin=4, EMax=8, ELen=-
  • AST calc1..4: calc1="min(24,ln12)", calc2=-, calc3=-, calc4=-
  • Synergy Calculations (blvl strictly base allocated STAT_SKILLPTS only):
    • EDmgSymPerCalc: (skill('Lightning'.blvl))*par8
    • DmgSymPerCalc: -
    • ELenSymPerCalc: -

4. R3 Verification & Merge Checklist

  • Isolated Git Worktree: Created via git worktree add ../wt-skill-38 -b feat/skill-38 from main.
  • 1.13c Implementation: src/game/skills/impl/sor/skill-038-charged-bolt.ts implements exact 1.13c srvstfunc/srvdofunc/srvprgfunc & numerical evaluation.
  • Automated Unit & Numerical Tests (slvl 1, 10, 20 + blvl Synergies): tests/skills/sor/skill-038-charged-bolt.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=38&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-38 + branch feat/skill-38.
## Diablo II: Lord of Destruction v1.13c Skill Parity Specification | Field | Value | |---|---| | **Skill ID** | `38` (`#038`) | | **Skill Name** | **Charged Bolt** (`skilldesc: charged bolt`) | | **Class** | `sor` (Sorceress) | | **Required Level (`reqlevel`)** | `1` | | **Prerequisites (`reqskill1..3`)** | `-`, `-`, `-` | | **Isolated Implementation Module** | `src/game/skills/impl/sor/skill-038-charged-bolt.ts` | | **Isolated Vitest Suite** | `tests/skills/sor/skill-038-charged-bolt.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`) | `17` | | **`srvprgfunc1..3`** (Progressive Charge Release) | `-` / `-` / `-` | | **`cltstfunc` / `cltdofunc`** (Client Start / Action) | `-` / `23` | | **`cltprgfunc1..3`** (Client Progressive Release) | `-` / `-` / `-` | | **`passive` / `checkfunc`** | `passive=-` / `checkfunc=-` | | **`auraevent1` / `auraeventfunc1`** | `-` / `-` | ### 2. Associated Missiles, States, Auras, Curses & Summons | Subsystem | 1.13c Configuration | |---|---| | **Server Missiles (`srvmissile` / `a..c`)** | `-` / `a:chargedbolt`, `b:chargedbolt`, `c:chargedbolt` | | **Client Missiles (`cltmissile` / `cltmissilea`)** | `-` / `chargedbolt` | | **Aura / Buff States (`aurastate` / `auratgtstate`)** | `self:-` / `tgt:-` | | **Aura / Buff Stats (`aurastat1..3`)** | `-`, `-`, `-` | | **Passive State & Stats (`passivestate` / `passivestat1..3`)** | `state:-` / `-`, `-`, `-` | | **Curse Priority (`cursetype`)** | `-` | | **Summon / Pet (`summon` / `pettype` / `petmax`)** | `mon:-` / `type:-` / `max:-` | ### 3. 1.13c Base Numerical & Synergy Formulas (`Patch_D2.mpq`) - **Mana Cost**: `mana=24`, `lvlmana=4` (256-fixed-point `<< HitShift`) - **Physical / Elemental Damage**: `MinDam=-`, `MaxDam=-`, `EType=ltng`, `EMin=4`, `EMax=8`, `ELen=-` - **AST `calc1..4`**: `calc1="min(24,ln12)"`, `calc2=-`, `calc3=-`, `calc4=-` - **Synergy Calculations (`blvl` strictly base allocated `STAT_SKILLPTS` only)**: - `EDmgSymPerCalc`: `(skill('Lightning'.blvl))*par8` - `DmgSymPerCalc`: `-` - `ELenSymPerCalc`: `-` --- ### 4. R3 Verification & Merge Checklist - [ ] **Isolated Git Worktree**: Created via `git worktree add ../wt-skill-38 -b feat/skill-38` from `main`. - [ ] **1.13c Implementation**: `src/game/skills/impl/sor/skill-038-charged-bolt.ts` implements exact 1.13c `srvstfunc`/`srvdofunc`/`srvprgfunc` & numerical evaluation. - [ ] **Automated Unit & Numerical Tests (`slvl` 1, 10, 20 + `blvl` Synergies)**: `tests/skills/sor/skill-038-charged-bolt.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=38&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-38` + branch `feat/skill-38`.
troytt added this to the All Player Skills (v1.13c Parity) milestone 2026-09-22 02:40:04 +00:00
Author
Owner

✅ Completed: [Skill #038] Charged Bolt (SOR) — 1.13c Parity Verified

1. Isolated Worktree & Module Implementation

  • Worktree & Branch: ../wt-skill-038 (feat/skill-038)
  • Skill Module: src/game/skills/impl/sor/skill-038-charged-bolt.ts
  • Vitest Suite: tests/skills/sor/skill-038-charged-bolt.test.ts
  • 1.13c Dispatch: srvstfunc=0, srvdofunc=17, missile=chargedbolt, state=none, 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) 3 (768) 7 (1920) 12 (3200) 12 (3200)
Phys Dmg (Min-Max) 0-0 0-0 0-0 0-0
Elem Dmg (Min-Max) 2-4 (ltng) 6-8 (ltng) 13-15 (ltng) 29-34 (+120%)
AR % / Duration / Radius +0% / 0f / 3 +0% / 0f / 12 +0% / 0f / 22 +0% / 0f / 22

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

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

Skill #038 Charged Bolt

### ✅ Completed: [Skill #038] Charged Bolt (`SOR`) — 1.13c Parity Verified #### 1. Isolated Worktree & Module Implementation - **Worktree & Branch**: `../wt-skill-038` (`feat/skill-038`) - **Skill Module**: `src/game/skills/impl/sor/skill-038-charged-bolt.ts` - **Vitest Suite**: `tests/skills/sor/skill-038-charged-bolt.test.ts` - **1.13c Dispatch**: `srvstfunc=0`, `srvdofunc=17`, `missile=chargedbolt`, `state=none`, `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`)** | `3` (`768`) | `7` (`1920`) | `12` (`3200`) | `12` (`3200`) | | **Phys Dmg (`Min-Max`)** | `0-0` | `0-0` | `0-0` | `0-0` | | **Elem Dmg (`Min-Max`)** | `2-4` (`ltng`) | `6-8` (`ltng`) | `13-15` (`ltng`) | `29-34` (+120%) | | **AR % / Duration / Radius** | `+0%` / `0f` / `3` | `+0%` / `0f` / `12` | `+0%` / `0f` / `22` | `+0%` / `0f` / `22` | #### 3. Headless Chromium (`chromium-1228`) Runtime Telemetry & Screenshot - **Arena State**: `ready=true`, `classCode=sor` (`so`), `castCount=1`, `anim=SC:7`, `totalDamageDealt=165`, `consoleErrors=0` - **Captured PNG Size**: `588866` bytes ![Skill #038 Charged Bolt](https://git.projectdiablo2.cn/attachments/66ef8282-4bc2-4f9e-88c8-a81834654a52)
Author
Owner

✅ Completed: [Skill #038] Charged Bolt (SOR) — 1.13c Parity Verified

1. Isolated Worktree & Module Implementation

  • Worktree & Branch: ../wt-skill-038 (feat/skill-038)
  • Skill Module: src/game/skills/impl/sor/skill-038-charged-bolt.ts
  • Vitest Suite: tests/skills/sor/skill-038-charged-bolt.test.ts
  • 1.13c Dispatch: srvstfunc=0, srvdofunc=17, missile=chargedbolt, state=none, 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) 3 (768) 7 (1920) 12 (3200) 12 (3200)
Phys Dmg (Min-Max) 0-0 0-0 0-0 0-0
Elem Dmg (Min-Max) 2-4 (ltng) 6-8 (ltng) 13-15 (ltng) 29-34 (+120%)
AR % / Duration / Radius +0% / 0f / 3 +0% / 0f / 12 +0% / 0f / 22 +0% / 0f / 22

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

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

Skill #038 Charged Bolt

### ✅ Completed: [Skill #038] Charged Bolt (`SOR`) — 1.13c Parity Verified #### 1. Isolated Worktree & Module Implementation - **Worktree & Branch**: `../wt-skill-038` (`feat/skill-038`) - **Skill Module**: `src/game/skills/impl/sor/skill-038-charged-bolt.ts` - **Vitest Suite**: `tests/skills/sor/skill-038-charged-bolt.test.ts` - **1.13c Dispatch**: `srvstfunc=0`, `srvdofunc=17`, `missile=chargedbolt`, `state=none`, `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`)** | `3` (`768`) | `7` (`1920`) | `12` (`3200`) | `12` (`3200`) | | **Phys Dmg (`Min-Max`)** | `0-0` | `0-0` | `0-0` | `0-0` | | **Elem Dmg (`Min-Max`)** | `2-4` (`ltng`) | `6-8` (`ltng`) | `13-15` (`ltng`) | `29-34` (+120%) | | **AR % / Duration / Radius** | `+0%` / `0f` / `3` | `+0%` / `0f` / `12` | `+0%` / `0f` / `22` | `+0%` / `0f` / `22` | #### 3. Headless Chromium (`chromium-1228`) Runtime Telemetry & Screenshot - **Arena State**: `ready=true`, `classCode=sor` (`so`), `castCount=1`, `anim=SC:7`, `totalDamageDealt=165`, `consoleErrors=0` - **Captured PNG Size**: `588866` bytes ![Skill #038 Charged Bolt](https://git.projectdiablo2.cn/attachments/1d70d535-2213-49d5-a42c-893fcfc30593)
Author
Owner

Milestone M3 Implementation Complete — Skill #038: Charged Bolt (1.13c Parity)

  • Commit: 728d641
  • Architectural Engine Fix:
    • Fixed double-append bug in src/game/engine.ts lines 446-449 where outcome.spawnedProjectiles was redundantly pushed into this.projectiles.
  • Missile & Kinematics:
    • Implemented authentic 32-entry discrete orthogonal jitter table GAT_CHARGED_BOLT_OFFSETS = [-1, 0, 1, -1, 0, 1, ...] applied perpendicularly to main propagation vector per step (2 subtiles/step) with individual low-seed PRNG.
    • Bolt velocity 12 px/frame (300 px/s), range 98 frames (1176 px).
    • NextDelay = 0 verified: zero immunity frames between bolts, allowing multiple bolts from the same volley to strike the same enemy.
    • Dies on monster collision (CollideKill = 1) and terminates on solid wall collision (CollideType = 3).
  • Scaling & Math:
    • Bolt count: min(24, slvl + 2).
    • 5-Band Piecewise Damage: base 2-4, +1/+1 (lvl 2-8), +1/+1 (lvl 9-16), +2/+2 (lvl 17-22), +3/+3 (lvl 23-28), +4/+4 (lvl 29+).
    • Synergies: +6% lightning damage per hard point in Lightning (49), strictly respecting 1.13c blvl rules.
    • Mana cost: 3 + (slvl - 1) * 0.5, 0 cast delay.
  • Verification:
    • 7-Dimensional Vitest Suite (tests/skills/sor/skill-038-charged-bolt.test.ts): 22/22 tests passing.
    • Full repo test suite (npm test): 4,175/4,175 passing, 0 errors.
    • TypeScript typecheck (npm run typecheck): 0 errors.
### Milestone M3 Implementation Complete — Skill #038: Charged Bolt (1.13c Parity) - **Commit**: `728d641` - **Architectural Engine Fix**: - Fixed double-append bug in `src/game/engine.ts` lines 446-449 where `outcome.spawnedProjectiles` was redundantly pushed into `this.projectiles`. - **Missile & Kinematics**: - Implemented authentic 32-entry discrete orthogonal jitter table `GAT_CHARGED_BOLT_OFFSETS = [-1, 0, 1, -1, 0, 1, ...]` applied perpendicularly to main propagation vector per step (2 subtiles/step) with individual low-seed PRNG. - Bolt velocity 12 px/frame (300 px/s), range 98 frames (1176 px). - NextDelay = 0 verified: zero immunity frames between bolts, allowing multiple bolts from the same volley to strike the same enemy. - Dies on monster collision (`CollideKill = 1`) and terminates on solid wall collision (`CollideType = 3`). - **Scaling & Math**: - Bolt count: min(24, slvl + 2). - 5-Band Piecewise Damage: base 2-4, +1/+1 (lvl 2-8), +1/+1 (lvl 9-16), +2/+2 (lvl 17-22), +3/+3 (lvl 23-28), +4/+4 (lvl 29+). - Synergies: +6% lightning damage per hard point in Lightning (49), strictly respecting 1.13c blvl rules. - Mana cost: 3 + (slvl - 1) * 0.5, 0 cast delay. - **Verification**: - 7-Dimensional Vitest Suite (`tests/skills/sor/skill-038-charged-bolt.test.ts`): 22/22 tests passing. - Full repo test suite (`npm test`): 4,175/4,175 passing, 0 errors. - TypeScript typecheck (`npm run typecheck`): 0 errors.
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#192
No description provided.