Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 488 Bytes

README.md

File metadata and controls

19 lines (12 loc) · 488 Bytes

@diablo2/bintools

Binary file parsers for some of the .bin and .tbl files

import {Diablo2MpqLoader} from '@diablo2/bintools'

const mpq = await Diablo2MpqLoader.load('/home/blacha/diablo2');

// Translate a translation key
const lang = mpq.t('7cr') // "Phase blade"

// Get information about a monster by id
const mon = mpq.monster.getMonsterName(0) // Skeleton

// Get information about super uniques
const mon = mpq.monster.getSuperUniqueName(3) // Rakanishu