Update compendium-browser.js
parent
8a8748e98c
commit
ca1f629151
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue