This commit is contained in:
TheGiddyLimit
2024-01-01 19:34:49 +00:00
parent 332769043f
commit 8117ebddc5
1748 changed files with 2544409 additions and 1 deletions

View File

@@ -0,0 +1,19 @@
/**
* A cache of XP value -> creature.
*/
export class EncounterBuilderCacheBase {
reset () { throw new Error("Unimplemented!"); }
getCreaturesByXp (xp) { throw new Error("Unimplemented!"); }
getXpKeys () { throw new Error("Unimplemented!"); }
static _UNWANTED_CR_NUMS = new Set([VeCt.CR_UNKNOWN, VeCt.CR_CUSTOM]);
_isUnwantedCreature (mon) {
if (mon.isNpc) return true;
const crNum = Parser.crToNumber(mon.cr);
if (this.constructor._UNWANTED_CR_NUMS.has(crNum)) return true;
return false;
}
}