mirror of
https://github.com/Kornstalx/5etools-mirror-2.github.io.git
synced 2026-01-14 05:47:50 -06:00
v1.200.0
This commit is contained in:
@@ -1363,10 +1363,14 @@ class CreatureParser extends BaseParser {
|
||||
static _doStatblockPostProcess (stats, isMarkdown, options) {
|
||||
this._doFilterAddSpellcasting(stats, "trait", isMarkdown, options);
|
||||
this._doFilterAddSpellcasting(stats, "action", isMarkdown, options);
|
||||
if (stats.trait) stats.trait.forEach(it => RechargeConvert.tryConvertRecharge(it, () => {}, () => options.cbWarning(`${stats.name ? `(${stats.name}) ` : ""}Manual recharge tagging required for trait "${it.name}"`)));
|
||||
if (stats.action) stats.action.forEach(it => RechargeConvert.tryConvertRecharge(it, () => {}, () => options.cbWarning(`${stats.name ? `(${stats.name}) ` : ""}Manual recharge tagging required for action "${it.name}"`)));
|
||||
if (stats.bonus) stats.bonus.forEach(it => RechargeConvert.tryConvertRecharge(it, () => {}, () => options.cbWarning(`${stats.name ? `(${stats.name}) ` : ""}Manual recharge tagging required for bonus action "${it.name}"`)));
|
||||
CreatureParser._PROPS_ENTRIES.filter(prop => stats[prop]).forEach(prop => SpellTag.tryRun(stats[prop]));
|
||||
CreatureParser._PROPS_ENTRIES
|
||||
.filter(prop => stats[prop])
|
||||
.forEach(prop => {
|
||||
stats[prop].forEach(it => RechargeConvert.tryConvertRecharge(it, () => {}, () => options.cbWarning(`${stats.name ? `(${stats.name}) ` : ""}Manual recharge tagging required for ${prop} "${it.name}"`)));
|
||||
});
|
||||
CreatureParser._PROPS_ENTRIES
|
||||
.filter(prop => stats[prop])
|
||||
.forEach(prop => SpellTag.tryRun(stats[prop]));
|
||||
AcConvert.tryPostProcessAc(
|
||||
stats,
|
||||
(ac) => options.cbWarning(`${stats.name ? `(${stats.name}) ` : ""}AC "${ac}" requires manual conversion`),
|
||||
@@ -1390,6 +1394,7 @@ class CreatureParser extends BaseParser {
|
||||
isTagInflicted: true,
|
||||
},
|
||||
);
|
||||
CreatureSpecialEquipmentTagger.tryRun(stats);
|
||||
TraitActionTag.tryRun(stats);
|
||||
LanguageTag.tryRun(stats);
|
||||
SenseFilterTag.tryRun(stats);
|
||||
@@ -1400,6 +1405,7 @@ class CreatureParser extends BaseParser {
|
||||
CreatureSavingThrowTagger.tryRun(stats);
|
||||
CreatureSavingThrowTagger.tryRunSpells(stats);
|
||||
CreatureSavingThrowTagger.tryRunRegionalsLairs(stats);
|
||||
SkillTag.tryRunProps(stats, {props: Renderer.monster.CHILD_PROPS_EXTENDED});
|
||||
MiscTag.tryRun(stats);
|
||||
DetectNamedCreature.tryRun(stats);
|
||||
TagImmResVulnConditional.tryRun(stats);
|
||||
@@ -1831,13 +1837,7 @@ class CreatureParser extends BaseParser {
|
||||
}
|
||||
// endregion
|
||||
}
|
||||
CreatureParser._PROPS_ENTRIES = [
|
||||
"trait",
|
||||
"action",
|
||||
"bonus",
|
||||
"reaction",
|
||||
"legendary",
|
||||
"mythic",
|
||||
];
|
||||
|
||||
CreatureParser._PROPS_ENTRIES = Renderer.monster.CHILD_PROPS_EXTENDED.filter(it => it !== "spellcasting");
|
||||
|
||||
globalThis.CreatureParser = CreatureParser;
|
||||
|
||||
Reference in New Issue
Block a user