forked from OpenWF/SpaceNinjaServer
also don't add items with reAddToItemList
This commit is contained in:
parent
ece55d6bbc
commit
bcca4a8d3d
@ -3410,10 +3410,13 @@ function doAddCurrency(currency) {
|
||||
}
|
||||
|
||||
function reAddToItemList(itemMap, datalist, itemType) {
|
||||
const option = document.createElement("option");
|
||||
option.setAttribute("data-key", itemType);
|
||||
option.value = itemMap[itemType]?.name ?? itemType;
|
||||
document.getElementById("datalist-" + datalist).appendChild(option);
|
||||
const item = itemMap[itemType];
|
||||
if (!item?.alwaysAvailable) {
|
||||
const option = document.createElement("option");
|
||||
option.setAttribute("data-key", itemType);
|
||||
option.value = item?.name ?? itemType;
|
||||
document.getElementById("datalist-" + datalist).appendChild(option);
|
||||
}
|
||||
}
|
||||
|
||||
function doQuestUpdate(operation, itemType) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user