fixed legacy item names for base items screwing with the displayed name value.
This commit is contained in:
parent
8ae52af2d2
commit
99c541dea3
1 changed files with 5 additions and 0 deletions
|
@ -511,6 +511,11 @@ function useBaseItem(elem) {
|
||||||
setValue(id+"-choice", baseItem.get(id));
|
setValue(id+"-choice", baseItem.get(id));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//take care of displayName
|
||||||
|
if (baseItem.get("displayName")) {
|
||||||
|
setValue("name-choice", baseItem.get("displayName"));
|
||||||
|
}
|
||||||
|
|
||||||
//Take care of durability, duration, and charges.
|
//Take care of durability, duration, and charges.
|
||||||
if (baseItem.get("tier") === "Crafted") {
|
if (baseItem.get("tier") === "Crafted") {
|
||||||
let specialIDs = ["duration", "durability"];
|
let specialIDs = ["duration", "durability"];
|
||||||
|
|
Loading…
Add table
Reference in a new issue