This document contains the 100% IDA-verified magic damage formula for MapleStory v40, reverse engineered from sub_515307 (CalcMagicDamagePerHit).
SpookStory Server Implementation Guide
This document provides comprehensive documentation of the Archer combat system, covering damage formulas, the 7-random heartbeat RNG model, Final Attack mechanics, Mortal Blow, and the RNG recovery system. All formulas and logic are IDA-verified against the v40 client binary.
Companion to physics_engine.md
Important
All paths cross-verified against raw IDA decompilation on 2026-02-16. DoJump path ordering was corrected (originally had ladder/foothold swapped). HandleGroundedMovement and ClampToBounds were added (previously missing).
| name | govuk-style | |||||||
|---|---|---|---|---|---|---|---|---|
| description | Write and edit in GOV.UK / GDS house style — plain English, active voice, front-loaded content, sentence case, and no bold or italics for emphasis. Use when writing or editing reports, research write-ups, guidance, documentation, summaries, or any prose where clarity and accessibility matter. | |||||||
| user-invokable | true | |||||||
| args |
|
Use this guide to choose the right interface for developer tooling.
| Thing | What It Is | Best For |
|---|---|---|
| Skill | A reusable set of instructions and workflow rules. | Teaching the environment how to approach a task. |
| MCP server | A typed tool interface around live systems or local capabilities. | Structured calls with clear inputs and outputs. |
Research this using the project’s verification-first rules.
Exact question: [INSERT QUESTION]
Exact entity, product, version, medication, dosage, plan, jurisdiction, or location: [INSERT DETAILS]
What counts as confirmation: [Example: an official current source explicitly stating that the exact product is supported in the specified location]
A practical framework for choosing between Low, Medium, High, xhigh, and Pro reasoning for software-engineering tasks.
The objective is not to use the strongest model for every task. The objective is to apply expensive reasoning where it changes the outcome.
Separate engineering work into three distinct concerns:
Use this to create a dedicated ChatGPT Pro Project for full, read-only system code reviews with project-only memory.
Official reference: Projects in ChatGPT
flowchart TD