Skip to content

Instantly share code, notes, and snippets.

View PatrickJS's full-sized avatar
💻
codex coding

PatrickJS PatrickJS

💻
codex coding
View GitHub Profile

Magic Damage Formula - v40 Reverse Engineering

Overview

This document contains the 100% IDA-verified magic damage formula for MapleStory v40, reverse engineered from sub_515307 (CalcMagicDamagePerHit).


Formula

@PatrickJS
PatrickJS / Archer.md
Created July 14, 2026 08:14 — forked from ThatMapleDev/Archer.md
Archer Damage

Archer Combat Mechanics (MapleStory v40b)

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.


Table of Contents

@PatrickJS
PatrickJS / Reverse Engineer.md
Created July 14, 2026 08:14 — forked from ThatMapleDev/Reverse Engineer.md
Maplestory Player Controller

MapleStory v40 Physics - Fresh Reverse Engineering Analysis

Date: 2026-01-29 (Updated: 2026-02-01)
Method: Direct IDA analysis without existing documentation
Implementation: SpookyStory V2 (MaplePlayerController, MaplePhysicsEngine, MapleConstants)


Implementation Status Legend

@PatrickJS
PatrickJS / pseudocode.md
Created July 14, 2026 08:14 — forked from ThatMapleDev/pseudocode.md
Player Physics

Physics Pseudocode — All Functions, All Paths (Audit-Verified)

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).


@PatrickJS
PatrickJS / SKILL.md
Created June 26, 2026 19:45 — forked from fofr/SKILL.md
An agent skill for writing in the GOV.UK style
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
name description required
target
The document or text to write or rewrite in GOV.UK style (optional)
false

Flow drag/drop shape

Use @async/flow for the discrete lifecycle and drop rules. Keep high-frequency pointer coordinates in plain signals or DOM-local state.

import {
  can,
  compose,
  every,
@PatrickJS
PatrickJS / when-to-build-skill-mcp-cli-plugin.md
Created June 21, 2026 03:23
When to build a skill, MCP server, CLI, or plugin

When To Build A Skill, MCP Server, CLI, Or Plugin

Use this guide to choose the right interface for developer tooling.

Quick Definitions

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]

Coding Reasoning-Tier Playbook

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.

Core principle

Separate engineering work into three distinct concerns:

@PatrickJS
PatrickJS / chatgpt-pro-project-code-review.md
Last active June 18, 2026 22:36
ChatGPT Pro project setup for read-only system code reviews

ChatGPT Pro Project for Read-Only System Code Reviews

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

Workflow Diagram

flowchart TD