Skip to content

Commit

Permalink
Manualplay fixes (#425)
Browse files Browse the repository at this point in the history
* add extra character to abbreviated name to prevent collision.
small charm and small crescent now differ
grand charm and grand crown now differ

* there is no id building the itemquality>name map
fix item

* remove "debugging" code
  • Loading branch information
icommitdesnet authored Jan 3, 2025
1 parent 69f48ce commit 2c3c975
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions d2bs/kolbot/libs/manualplay/hooks/ItemHooks.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ const ItemHooks = (function () {
* @param {string} uniqueName
* @returns {Map<number, string>}
*/
const buildClassIdAndQuality = function (id, setName = "", uniqueName = "") {
const buildClassIdAndQuality = function (setName = "", uniqueName = "") {
let temp = new Map();
setName && temp.set(sdk.items.quality.Set, setName);
uniqueName && temp.set(sdk.items.quality.Unique, uniqueName);
Expand Down Expand Up @@ -136,7 +136,7 @@ const ItemHooks = (function () {
[sdk.items.Diadem, buildClassIdAndQuality("Mavina's Helm", "Griffon's Eye")],
[sdk.items.SharkskinBelt, buildClassIdAndQuality("Mavina's Belt", "Razortail")],
[sdk.items.BattleGauntlets, buildClassIdAndQuality("Mavina's Gloves", "Lava Gout")],
[sdk.items.ScissorsKatar, buildClassIdAndQuality("Natalya's Wep")],
[sdk.items.ScissorsSuwayyah, buildClassIdAndQuality("Natalya's Wep")],
[sdk.items.LoricatedMail, buildClassIdAndQuality("Natalya's Armor")],
[sdk.items.GrimHelm, buildClassIdAndQuality("Natalya's Helm", "Vamp Gaze")],
[sdk.items.MeshBoots, buildClassIdAndQuality("Natalya's Boots", "Silkweave")],
Expand Down Expand Up @@ -275,7 +275,7 @@ const ItemHooks = (function () {
abbrName += abbr[0] + "-";

for (let i = 1; i < abbr.length; i++) {
abbrName += abbr[i].substring(0, 1);
abbrName += abbr[i].substring(0, 2);
}
}

Expand Down

0 comments on commit 2c3c975

Please sign in to comment.