Update compendium-browser.js
parent
54e30791cc
commit
b607974d6f
|
@ -953,9 +953,12 @@ class CompendiumBrowser extends Application {
|
||||||
let npcData = npc.system;
|
let npcData = npc.system;
|
||||||
|
|
||||||
// cr display
|
// cr display
|
||||||
let cr = npcData.details?.cr; // 0.7.2c: Possibly because of getIndex() use we now have to check for existence of details (doesn't for Character-type NPCs)
|
let cr = npcData.details?.cr;
|
||||||
if (cr === undefined || cr === "") cr = 0;
|
if (cr === undefined || cr === "") {
|
||||||
else cr = Number(cr);
|
cr = 0;
|
||||||
|
} else {
|
||||||
|
cr = Number(cr);
|
||||||
|
}
|
||||||
|
|
||||||
decoratedNpc.orderCR = cr;
|
decoratedNpc.orderCR = cr;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue