From cdf0e4de53ee1973a094c2026451b7b76ebe255d Mon Sep 17 00:00:00 2001 From: Helias Date: Wed, 28 Sep 2022 00:32:18 +0200 Subject: [PATCH 1/2] feat: add death-thud-lookups dbc entity --- src/lib/dbc/entities/death-thud-lookups.js | 11 +++++++++++ src/lib/dbc/entities/index.js | 1 + 2 files changed, 12 insertions(+) create mode 100644 src/lib/dbc/entities/death-thud-lookups.js diff --git a/src/lib/dbc/entities/death-thud-lookups.js b/src/lib/dbc/entities/death-thud-lookups.js new file mode 100644 index 0000000..fbba343 --- /dev/null +++ b/src/lib/dbc/entities/death-thud-lookups.js @@ -0,0 +1,11 @@ +import r from 'restructure'; + +import Entity from '../entity'; + +export default Entity({ + id: r.int32le, + sizeClass: r.int32le, + terraintypeSoundId: r.int32le, + soundEntryId: r.int32le, + soundEntryIdWater: r.int32le, +}); diff --git a/src/lib/dbc/entities/index.js b/src/lib/dbc/entities/index.js index adf5f3b..acc44fe 100644 --- a/src/lib/dbc/entities/index.js +++ b/src/lib/dbc/entities/index.js @@ -40,6 +40,7 @@ export CreatureType from './creature-type'; export CurrencyCategory from './currency-category'; export CurrencyTypes from './currency-types'; export DanceMoves from './dance-moves'; +export DeathThudLookups from './death-thud-lookups' export DeclinedWord from './declined-word'; export DeclinedWordCases from './declined-word-cases'; export DungeonEncounter from './dungeon-encounter'; From 75d5bac1a7a2ba53c51cab1690bda079d1c00423 Mon Sep 17 00:00:00 2001 From: Helias Date: Wed, 28 Sep 2022 17:23:48 +0200 Subject: [PATCH 2/2] feat: wip - add char-hair-texture --- src/lib/dbc/entities/char-hair-texture.js | 11 +++++++++++ src/lib/dbc/entities/index.js | 1 + 2 files changed, 12 insertions(+) create mode 100644 src/lib/dbc/entities/char-hair-texture.js diff --git a/src/lib/dbc/entities/char-hair-texture.js b/src/lib/dbc/entities/char-hair-texture.js new file mode 100644 index 0000000..f8351ad --- /dev/null +++ b/src/lib/dbc/entities/char-hair-texture.js @@ -0,0 +1,11 @@ +import r from 'restructure'; + +import Entity from '../entity'; + +export default Entity({ + id: r.int32le, + race: r.int32le, + gender: new r.Boolean(r.uint8), // here is the issue (?) + field03: new r.Boolean(r.uint8), // here is the issue (?) + field04: new r.Array(r.int32le, 4), +}); diff --git a/src/lib/dbc/entities/index.js b/src/lib/dbc/entities/index.js index acc44fe..8523276 100644 --- a/src/lib/dbc/entities/index.js +++ b/src/lib/dbc/entities/index.js @@ -20,6 +20,7 @@ export Cfg_Categories from './cfg-categories'; export Cfg_Configs from './cfg-configs'; export CharBaseInfo from './char-base-info'; export CharHairGeosets from './char-hair-geosets'; +export CharHairTexture from './char-hair-texture'; export CharSections from './char-sections'; export CharStartOutfit from './char-start-outfit'; export CharTitles from './char-titles';