Skip to content

Commit

Permalink
fix item runeword_id
Browse files Browse the repository at this point in the history
  • Loading branch information
stanislav committed Mar 5, 2024
1 parent d655e30 commit 36febe2
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/d2/items.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,8 +238,20 @@ export async function readItem(
if (item.given_runeword) {
item.runeword_id = reader.ReadUInt16(12);
//fix delerium on d2gs??? why is this a thing?
if (item.runeword_id == 2718) {
item.runeword_id = 48;
switch (item.runeword_id) {
//Delirium
case 2718:
item.runeword_id = 48;
break;
//Hustle
case 2785:
item.runeword_id = 197;
break;
//Cure
case 2791:
item.runeword_id = 203;
break;
default:
}
if (constants.runewords[item.runeword_id]) {
item.runeword_name = constants.runewords[item.runeword_id]!.n!;
Expand Down

0 comments on commit 36febe2

Please sign in to comment.