Skip to content

Commit

Permalink
Merge pull request #28 from fabd/feature/add-resurrected-patch-2.4-data
Browse files Browse the repository at this point in the history
Feature/add resurrected patch 2.4 data
  • Loading branch information
fabd authored Apr 26, 2022
2 parents 9e261cc + 3bccce1 commit f23b9e7
Show file tree
Hide file tree
Showing 6 changed files with 181 additions and 28 deletions.
4 changes: 2 additions & 2 deletions .env
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
# the game version of Runewizard : vanilla D2 LoD, or a mod
VITE_GAME_NAME='Diablo II LoD'
VITE_GAME_NAME='D2 LoD & Diablo 2 Resurrected'

# version of the vanilla/modded Diablo II that Runewizard is compatible with
VITE_GAME_VERSION=1.14
VITE_GAME_VERSION='Patch 1.14 & 2.4'

# set 'false' to turn off the header, to eg. include within an existing layout
VITE_LAYOUT_HEADER=true
Expand Down
2 changes: 1 addition & 1 deletion src/components/AppHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<div class="flex justify-between items-center">
<div class="text-lg text-[#b5b2b0]">
for <span class="text-[#b5b2b0] font-bold">{{ envGameName }}</span>
<span class="ml-2 text-[#71B643]">{{ `v${envGameVersion}` }}</span>
<span class="ml-2 text-[#71B643]">{{ envGameVersion }}</span>
</div>

<div class="flex items-center text-[#514f4a]">
Expand Down
22 changes: 12 additions & 10 deletions src/data/item-types.ts
Original file line number Diff line number Diff line change
@@ -1,21 +1,23 @@
const itemTypes: { [key in TItemTypeId]: { url?: string } } = {
Helms: { url: "https://diablo2.diablowiki.net/Helms" },
Swords: { url: "https://diablo2.diablowiki.net/Swords" },
Axes: { url: "https://diablo2.diablowiki.net/Axes" },
"Body Armors": { url: "https://diablo2.diablowiki.net/Body_Armor" },
Claws: { url: "https://diablo2.diablowiki.net/Assassin_Items" },
Clubs: { url: "https://diablo2.diablowiki.net/Clubs" },
Daggers: { url: "https://diablo2.diablowiki.net/Daggers" },
Hammers: { url: "https://diablo2.diablowiki.net/Hammers" },
Helms: { url: "https://diablo2.diablowiki.net/Helms" },
Maces: { url: "https://diablo2.diablowiki.net/Maces" },
"Melee Weapons": {},
"Body Armors": { url: "https://diablo2.diablowiki.net/Body_Armor" },
Staves: { url: "https://diablo2.diablowiki.net/Staves" },
Shields: { url: "https://diablo2.diablowiki.net/Shields" },
Scepters: { url: "https://diablo2.diablowiki.net/Scepters" },
"Missile Weapons": {},
"Paladin Shields": { url: "https://diablo2.diablowiki.net/Paladin_Items" },
Polearms: { url: "https://diablo2.diablowiki.net/Polearms" },
Clubs: { url: "https://diablo2.diablowiki.net/Clubs" },
Hammers: { url: "https://diablo2.diablowiki.net/Hammers" },
Scepters: { url: "https://diablo2.diablowiki.net/Scepters" },
Shields: { url: "https://diablo2.diablowiki.net/Shields" },
Spears: { url: "https://diablo2.diablowiki.net/Spears" },
Staves: { url: "https://diablo2.diablowiki.net/Staves" },
Swords: { url: "https://diablo2.diablowiki.net/Swords" },
Wands: { url: "https://diablo2.diablowiki.net/Wands" },
Weapons: {},
Claws: { url: "https://diablo2.diablowiki.net/Assassin_Items" },
"Paladin Shields": { url: "https://diablo2.diablowiki.net/Paladin_Items" },
};

export default itemTypes;
99 changes: 99 additions & 0 deletions src/data/runewords-descriptions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1026,6 +1026,105 @@ const runewordsDesc: TRunewordMeta = {
Cold Resist +30%
50% Extra Gold From Monsters
`,

/* Patch 2.4 - alpha sort maybe later, keep here for now easier to find */
Plague: `
20% Chance to Cast level 12 Lower Resist when struck
25% Chance to Cast level 15 Poison Nova on striking
Level 13-17 Cleansing Aura When Equipped (varies)
+1-2 All Skills
+20% Increased Attack Speed
+220-320% Enhanced Damage (varies)
-23% To Enemy Poison Resistance
0.3% (0-29.7) Deadly Strike (Based on Character Level)
+25% Chance of Open Wounds
Freezes Target +3
`,

Pattern: `
+30% Faster Block Rate
+40-80% Enhanced Damage (varies)
10% Bonus to Attack Rating
Adds 17-62 Fire Damage
Adds 1-50 Lightning Damage
Adds 3-14 Cold Damage
+75 Poison Damage Over 5 Seconds
+6 to Strength
+6 to Dexterity
All Resistances +15
`,

"Unbending Will": `
18% Chance to cast Level 18 Taunt on striking
+3 To Combat Skills (Barbarian Only)
+20-30% Increased Attack Speed (varies)
+300-350% Enhanced Damage (varies)
+9 To Maximum Damage
+50 To Attack Rating
+75% Damage to Undead
+50 Attack Rating Against Undead
8-10% Life Stolen Per Hit (varies)
Prevent Monster Heal
+10 To Strength
+10 To Vitality
Damage Reduced By 8
+1 Light Radius
Requirements -20%
`,

Wisdom: `
+33% Piercing Attack
+15-25% Bonus to Attack Rating (varies)
4-8% Mana Stolen Per Hit (varies)
+30% Enhanced Defense
+10 Energy
15% Slower Stamina Drain
Cannot Be Frozen
+5 Mana After Each Kill
15% Damage Taken Goes to Mana
`,

Obsession: `
Indestructible
24% Chance to cast level 10 Weaken when struck
+4 To All Skills
+65% Faster Cast Rate
+60% Faster Hit Recovery
Knockback
+10 To Vitality
+10 To Energy
Increase Maximum Life 15-25% (varies)
Regenerate Mana 15-30% (varies)
All Resistances +60-70 (varies)
75% Extra Gold from Monsters
30% Better Chance of Getting Magic Items
`,

"Flickering Flame": `
Level 4-8 Resist Fire Aura When Equipped (varies)
+3 To Fire Skills
-10-15% to Enemy Fire Resistance (varies)
+30% Enhanced Defense
+30 Defense Vs. Missile
+50-75 To Mana (varies)
Half Freeze Duration
+5% To Maximum Fire Resist
Poison Length Reduced by 50%
`,

Mist: `
Level 8-12 Concentration Aura When Equipped (varies)
+3 To All Skills
20% Increased Attack Speed
+100% Piercing Attack
+325-375% Enhanced Damage (varies)
+9 To Maximum Damage
20% Bonus to Attack Rating
Adds 3-14 Cold Damage
Freeze Target +3
+24 Vitality
All Resistances +40
`,
};

export default runewordsDesc;
58 changes: 54 additions & 4 deletions src/data/runewords.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,14 +374,14 @@ const runewords: TRuneword[] = [
title: "Infinity",
runes: ["Ber", "Mal", "Ber", "Ist"],
level: 63,
ttypes: ["Polearms"],
ttypes: ["Polearms", "Spears"],
ladder: true,
},
{
title: "Insight",
runes: ["Ral", "Tir", "Tal", "Sol"],
level: 27,
ttypes: ["Polearms", "Staves"],
ttypes: ["Missile Weapons", "Polearms", "Staves"],
ladder: true,
},
{
Expand Down Expand Up @@ -409,7 +409,7 @@ const runewords: TRuneword[] = [
title: "Obedience",
runes: ["Hel", "Ko", "Thul", "Eth", "Fal"],
level: 41,
ttypes: ["Polearms"],
ttypes: ["Polearms", "Spears"],
ladder: true,
},
{
Expand All @@ -423,7 +423,7 @@ const runewords: TRuneword[] = [
title: "Pride",
runes: ["Cham", "Sur", "Io", "Lo"],
level: 67,
ttypes: ["Polearms"],
ttypes: ["Polearms", "Spears"],
ladder: true,
},
{
Expand Down Expand Up @@ -504,6 +504,56 @@ const runewords: TRuneword[] = [
ttypes: ["Body Armors"],
tinfos: "(Assassin)",
},
/* D2R 2.4 */
{
title: "Plague",
runes: ["Cham", "Shael", "Um"],
level: 1,
ttypes: ["Swords", "Claws", "Daggers"],
tinfos: "(Patch 2.4)",
},
{
title: "Pattern",
runes: ["Tal", "Ort", "Thul"],
level: 1,
ttypes: ["Claws"],
tinfos: "(Patch 2.4)",
},
{
title: "Unbending Will",
runes: ["Fal", "Io", "Ith", "Eld", "El", "Hel"],
level: 1,
ttypes: ["Swords"],
tinfos: "(Patch 2.4)",
},
{
title: "Wisdom",
runes: ["Pul", "Ith", "Eld"],
level: 1,
ttypes: ["Helms"],
tinfos: "(Patch 2.4)",
},
{
title: "Obsession",
runes: ["Zod", "Ist", "Lem", "Lum", "Io", "Nef"],
level: 1,
ttypes: ["Staves"],
tinfos: "(Patch 2.4)",
},
{
title: "Flickering Flame",
runes: ["Nef", "Pul", "Vex"],
level: 1,
ttypes: ["Helms"],
tinfos: "(Patch 2.4)",
},
{
title: "Mist",
runes: ["Cham", "Shael", "Gul", "Thul", "Ith"],
level: 1,
ttypes: ["Missile Weapons"],
tinfos: "(Patch 2.4)",
},
];

export default runewords;
24 changes: 13 additions & 11 deletions src/types/main.d.ts
Original file line number Diff line number Diff line change
@@ -1,23 +1,25 @@
type ERuneTier = import("@/data/runes").ERuneTier;

type TItemTypeId =
| "Helms"
| "Swords"
| "Axes"
| "Body Armors"
| "Claws"
| "Clubs"
| "Daggers"
| "Hammers"
| "Helms"
| "Maces"
| "Melee Weapons"
| "Body Armors"
| "Staves"
| "Shields"
| "Scepters"
| "Missile Weapons"
| "Paladin Shields"
| "Polearms"
| "Clubs"
| "Hammers"
| "Scepters"
| "Shields"
| "Spears"
| "Staves"
| "Swords"
| "Wands"
| "Weapons"
| "Claws"
| "Paladin Shields";
| "Weapons";

type TRuneId =
| "El"
Expand Down

0 comments on commit f23b9e7

Please sign in to comment.