This commit is contained in:
TheGiddyLimit
2024-02-19 22:18:48 +00:00
parent 661a119c6d
commit b323d4123e
157 changed files with 43972 additions and 697 deletions

View File

@@ -1908,3 +1908,16 @@ class CreatureSavingThrowTagger extends _PrimaryLegendarySpellsTaggerBase {
}
globalThis.CreatureSavingThrowTagger = CreatureSavingThrowTagger;
class CreatureSpecialEquipmentTagger {
static tryRun (mon) {
if (!mon.trait) return;
mon.trait = mon.trait
.map(ent => {
if (!/\bEquipment\b/.test(ent.name || "")) return ent;
return ItemTag.tryRun(ent);
});
}
}
globalThis.CreatureSpecialEquipmentTagger = CreatureSpecialEquipmentTagger;