Update compendium-browser.js
parent
8a8748e98c
commit
ca1f629151
|
@ -945,13 +945,11 @@ class CompendiumBrowser extends Application {
|
||||||
}
|
}
|
||||||
|
|
||||||
decorateNpc(npc, indexFields) {
|
decorateNpc(npc, indexFields) {
|
||||||
try {
|
|
||||||
const decoratedNpc = indexFields.reduce((npcDict, item) => {
|
const decoratedNpc = indexFields.reduce((npcDict, item) => {
|
||||||
set(npcDict, item, getPropByString(npc, item));
|
set(npcDict, item, getPropByString(npc, item));
|
||||||
return npcDict;
|
return npcDict;
|
||||||
}, {});
|
}, {});
|
||||||
|
|
||||||
// 0.8.0: update for V10 to use actor.system instead of actor.data
|
|
||||||
let npcData = npc.system;
|
let npcData = npc.system;
|
||||||
|
|
||||||
// cr display
|
// cr display
|
||||||
|
@ -998,9 +996,6 @@ class CompendiumBrowser extends Application {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
return decoratedNpc;
|
return decoratedNpc;
|
||||||
} catch(e) {
|
|
||||||
throw e;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
getNPCType(type) {
|
getNPCType(type) {
|
||||||
|
|
Loading…
Reference in New Issue