Update compendium-browser.js

2.0
Matheus Clemente 2023-11-09 14:50:57 -03:00
parent 8a8748e98c
commit ca1f629151
1 changed files with 45 additions and 50 deletions

View File

@ -945,13 +945,11 @@ class CompendiumBrowser extends Application {
}
decorateNpc(npc, indexFields) {
try {
const decoratedNpc = indexFields.reduce((npcDict, item) => {
set(npcDict, item, getPropByString(npc, item));
return npcDict;
}, {});
// 0.8.0: update for V10 to use actor.system instead of actor.data
let npcData = npc.system;
// cr display
@ -998,9 +996,6 @@ class CompendiumBrowser extends Application {
break;
}
return decoratedNpc;
} catch(e) {
throw e;
}
}
getNPCType(type) {