mirror of
https://github.com/Kornstalx/5etools-mirror-2.github.io.git
synced 2026-03-09 01:04:54 -05:00
v1.207.2
This commit is contained in:
@@ -91,6 +91,7 @@ class UtilClassesPage {
|
||||
const renderer = Renderer.get();
|
||||
|
||||
if (depthArr) renderer.setDepthTracker(depthArr, {additionalPropsInherited: ["_isStandardSource"]});
|
||||
else renderer.setDepthTracker([]);
|
||||
|
||||
entFluff.entries.filter(f => f.source === ent.source).forEach(f => f._isStandardSource = true);
|
||||
|
||||
@@ -168,11 +169,13 @@ class UtilClassesPage {
|
||||
{
|
||||
sc,
|
||||
scFluff,
|
||||
depthArr = null,
|
||||
},
|
||||
) {
|
||||
return this._getRenderedClassSubclassFluff({
|
||||
ent: sc,
|
||||
entFluff: scFluff,
|
||||
depthArr,
|
||||
isAddLeadingHr: true,
|
||||
isAddTrailingHr: true,
|
||||
});
|
||||
@@ -1705,15 +1708,15 @@ class ClassesPage extends MixinComponentGlobalState(MixinBaseComponent(MixinProx
|
||||
_trackOutlineFluffData (depthData) { this._outlineData.fluff = depthData; }
|
||||
|
||||
_trackOutlineCfData (ixLvl, ixFeature, depthData) {
|
||||
((this._outlineData.classFeatures = (this._outlineData.classFeatures || []))[ixLvl] =
|
||||
(this._outlineData.classFeatures[ixLvl] || []))[ixFeature] =
|
||||
depthData;
|
||||
((this._outlineData.classFeatures ||= [])[ixLvl] ||= [])[ixFeature] = depthData;
|
||||
}
|
||||
|
||||
_trackOutlineScData (stateKey, level, ixScFeature, depthData) {
|
||||
((this._outlineData[stateKey] = (this._outlineData[stateKey] || []))[level] =
|
||||
(this._outlineData[stateKey][level] || []))[ixScFeature] =
|
||||
depthData;
|
||||
(((this._outlineData.subclassFeatures ||= {})[stateKey] ||= [])[level] ||= [])[ixScFeature] = depthData;
|
||||
}
|
||||
|
||||
_trackOutlineScFluffData (stateKey, level, ixScFeature, depthData) {
|
||||
(((this._outlineData.subclassFluff ||= {})[stateKey] ||= [])[level] ||= [])[ixScFeature] = depthData;
|
||||
}
|
||||
|
||||
_render_renderOutline () {
|
||||
@@ -1927,8 +1930,33 @@ class ClassesPage extends MixinComponentGlobalState(MixinBaseComponent(MixinProx
|
||||
if (!scLvlFeatures) return;
|
||||
|
||||
scLvlFeatures.forEach((scFeature, ixScFeature) => {
|
||||
const depthData = MiscUtil.get(this._outlineData, stateKey, scFeature.level, ixScFeature);
|
||||
depthData
|
||||
const depthData = MiscUtil.get(this._outlineData, "subclassFeatures", stateKey, scFeature.level, ixScFeature);
|
||||
(depthData || [])
|
||||
.filter(this._render_renderOutline_isOutlineRenderable.bind(this))
|
||||
.map(it => {
|
||||
const additionalCssClassesRaw = UtilClassesPage.getColorStyleClasses(
|
||||
it,
|
||||
{
|
||||
isSubclass: true,
|
||||
isForceStandardSource: sc._isStandardSource,
|
||||
prefix: "cls-nav__item--",
|
||||
},
|
||||
);
|
||||
|
||||
this._render_renderOutline_doMakeItem({
|
||||
depthData: it,
|
||||
additionalCssClasses: additionalCssClassesRaw.join(" "),
|
||||
filterValues,
|
||||
isUseSubclassSources,
|
||||
$wrpBody,
|
||||
});
|
||||
});
|
||||
|
||||
if (!this._state.isShowFluff) return;
|
||||
|
||||
const depthDataFluff = MiscUtil.get(this._outlineData, "subclassFluff", stateKey, scFeature.level, ixScFeature);
|
||||
|
||||
(depthDataFluff || [])
|
||||
.filter(this._render_renderOutline_isOutlineRenderable.bind(this))
|
||||
.map(it => {
|
||||
const additionalCssClassesRaw = UtilClassesPage.getColorStyleClasses(
|
||||
@@ -2194,10 +2222,13 @@ class ClassesPage extends MixinComponentGlobalState(MixinBaseComponent(MixinProx
|
||||
|
||||
this._trackOutlineScData(stateKey, ixLvl + 1, ixScFeature, depthArr);
|
||||
|
||||
const {rendered: rdScFluff} = UtilClassesPage.getRenderedSubclassFluff({sc, scFluff});
|
||||
const depthArrSubclassFluff = [];
|
||||
const {hasEntries, rendered: rdScFluff} = UtilClassesPage.getRenderedSubclassFluff({sc, scFluff, depthArr: depthArrSubclassFluff});
|
||||
|
||||
if (!rdScFluff?.length) return;
|
||||
|
||||
if (hasEntries) this._trackOutlineScFluffData(stateKey, ixLvl + 1, ixScFeature, depthArrSubclassFluff);
|
||||
|
||||
$(`<tr class="cls-main__sc-fluff" data-subclass-id-fluff="${UrlUtil.getStateKeySubclass(sc)}"><td colspan="6"></td></tr>`)
|
||||
.fastSetHtml(rdScFluff)
|
||||
.appendTo($content);
|
||||
|
||||
@@ -110,7 +110,7 @@ class Omnidexer {
|
||||
if ((options.isNoFilter || (!arbiter.include && !(arbiter.filter && arbiter.filter(ent))) || (!arbiter.filter && (!arbiter.include || arbiter.include(ent)))) && !arbiter.isOnlyDeep) index.push(toAdd);
|
||||
|
||||
const primary = {it: ent, ix: ix, parentName: name};
|
||||
const deepItems = await arbiter.pGetDeepIndex(this, primary, ent);
|
||||
const deepItems = await arbiter.pGetDeepIndex(this, primary, ent, {name});
|
||||
for (const item of deepItems) {
|
||||
const toAdd = await this._pAddToIndex_pGetToAdd(state, ent, item);
|
||||
if (!arbiter.filter || !arbiter.filter(ent)) index.push(toAdd);
|
||||
@@ -303,11 +303,13 @@ class IndexableDirectorySubclass extends IndexableDirectory {
|
||||
});
|
||||
}
|
||||
|
||||
pGetDeepIndex (indexer, primary, sc) {
|
||||
pGetDeepIndex (indexer, primary, sc, {name}) {
|
||||
name ||= sc.name;
|
||||
|
||||
return [
|
||||
{
|
||||
b: sc.name,
|
||||
n: `${sc.name} (${sc.className})`,
|
||||
b: name,
|
||||
n: `${name} (${sc.className})`,
|
||||
s: indexer.getMetaId("s", sc.source),
|
||||
u: `${UrlUtil.URL_TO_HASH_BUILDER[UrlUtil.PG_CLASSES]({name: sc.className, source: sc.classSource})}${HASH_PART_SEP}${UrlUtil.getClassesPageStatePart({subclass: sc})}`,
|
||||
p: sc.page,
|
||||
|
||||
@@ -755,6 +755,7 @@ PropOrder._FOUNDRY_CLASS = [
|
||||
PropOrder._SUBCLASS = [
|
||||
"name",
|
||||
"shortName",
|
||||
"alias",
|
||||
"source",
|
||||
"className",
|
||||
"classSource",
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
// in deployment, `IS_DEPLOYED = "<version number>";` should be set below.
|
||||
globalThis.IS_DEPLOYED = undefined;
|
||||
globalThis.VERSION_NUMBER = /* 5ETOOLS_VERSION__OPEN */"1.207.1"/* 5ETOOLS_VERSION__CLOSE */;
|
||||
globalThis.VERSION_NUMBER = /* 5ETOOLS_VERSION__OPEN */"1.207.2"/* 5ETOOLS_VERSION__CLOSE */;
|
||||
globalThis.DEPLOYED_IMG_ROOT = undefined;
|
||||
// for the roll20 script to set
|
||||
globalThis.IS_VTT = false;
|
||||
|
||||
Reference in New Issue
Block a user