@archivist-gg/dnd5e 0.3.17 → 0.3.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +48 -21
- package/README.md +26 -48
- package/dist/armor/armor.codec.d.ts +0 -7
- package/dist/armor/armor.codec.js +1 -9
- package/dist/armor/armor.parser.js +1 -8
- package/dist/armor/armor.schema.js +1 -7
- package/dist/armor/armor.types.d.ts +0 -3
- package/dist/background/background.codec.d.ts +0 -6
- package/dist/background/background.codec.js +1 -12
- package/dist/background/background.parser.js +1 -11
- package/dist/background/background.schema.js +1 -12
- package/dist/background/background.types.d.ts +0 -5
- package/dist/chunk-2EOGK6R6.js +1 -0
- package/dist/chunk-2HRRH3WL.js +1 -0
- package/dist/chunk-2LCGKNVM.js +1 -0
- package/dist/chunk-2NUDWOFG.js +1 -0
- package/dist/chunk-334WLI7V.js +1 -0
- package/dist/chunk-3LWOVRLA.js +1 -0
- package/dist/chunk-3QQOATV3.js +1 -0
- package/dist/chunk-4E2GIWJE.js +1 -0
- package/dist/chunk-4GN3GYMP.js +1 -0
- package/dist/chunk-4IAMSRHD.js +1 -0
- package/dist/chunk-4JEF3CET.js +1 -0
- package/dist/chunk-4KVVAENP.js +1 -0
- package/dist/chunk-56JK6VCL.js +1 -0
- package/dist/chunk-5FEXHY4U.js +1 -0
- package/dist/chunk-63YJPWTM.js +1 -0
- package/dist/chunk-6ASJ3MVB.js +1 -0
- package/dist/chunk-6IC53O3Q.js +1 -0
- package/dist/chunk-6LCNV26D.js +1 -0
- package/dist/chunk-6W253VHH.js +1 -0
- package/dist/chunk-7AKJBRBD.js +1 -0
- package/dist/chunk-7EL3GWWJ.js +1 -0
- package/dist/chunk-7FPQJDFD.js +1 -0
- package/dist/chunk-7J5BNH2D.js +1 -0
- package/dist/chunk-7LPKI27J.js +1 -0
- package/dist/chunk-7UPYRKMF.js +1 -0
- package/dist/chunk-A7H6LX47.js +1 -0
- package/dist/chunk-AINRPPLH.js +1 -0
- package/dist/chunk-BC52J4LA.js +1 -0
- package/dist/chunk-BCXGB4HP.js +1 -0
- package/dist/chunk-BGX36NPE.js +1 -0
- package/dist/chunk-BPKG6RZ7.js +1 -0
- package/dist/chunk-BREHZNTL.js +1 -0
- package/dist/chunk-BZ6BGGZS.js +1 -0
- package/dist/chunk-CAPYNIGK.js +1 -0
- package/dist/chunk-CCFIINBA.js +1 -0
- package/dist/chunk-CMIEZQL4.js +1 -0
- package/dist/chunk-DVUXUIPV.js +1 -0
- package/dist/chunk-DY6FVAGA.js +1 -0
- package/dist/chunk-DZITM5AG.js +1 -0
- package/dist/chunk-DZKSXSJF.js +1 -0
- package/dist/chunk-EAARMPCW.js +1 -0
- package/dist/chunk-EVT7MGAC.js +1 -0
- package/dist/chunk-FOLHTMSC.js +1 -0
- package/dist/chunk-GCYUCIDN.js +1 -0
- package/dist/chunk-GIOV6JW7.js +1 -0
- package/dist/chunk-HCK6IUB3.js +1 -0
- package/dist/chunk-HR5MKCP2.js +1 -0
- package/dist/chunk-I26FHSI6.js +1 -0
- package/dist/chunk-I4O2FIDT.js +1 -0
- package/dist/chunk-IGVRLGLM.js +1 -0
- package/dist/chunk-IHPLT2ZT.js +1 -0
- package/dist/chunk-IOCJIWCV.js +1 -0
- package/dist/chunk-JXDX2DKF.js +1 -0
- package/dist/chunk-KBFSJ5WE.js +1 -0
- package/dist/chunk-KM75CC6Q.js +1 -0
- package/dist/chunk-KZDDFG4O.js +1 -0
- package/dist/chunk-LJNT3PJP.js +1 -0
- package/dist/chunk-LR6UMA5V.js +1 -0
- package/dist/chunk-M6RPOLKS.js +1 -0
- package/dist/chunk-MC6PLWRZ.js +1 -0
- package/dist/chunk-MGGKZGLG.js +1 -0
- package/dist/chunk-N3RYJ7RE.js +1 -0
- package/dist/chunk-NEMX7QGG.js +1 -0
- package/dist/chunk-NI364WV7.js +1 -0
- package/dist/chunk-O2QZ73GA.js +1 -0
- package/dist/chunk-O776WL7O.js +1 -0
- package/dist/chunk-OTFNINUY.js +1 -0
- package/dist/chunk-PQAVMK3T.js +1 -0
- package/dist/chunk-PZ3ZZ5H5.js +1 -0
- package/dist/chunk-PZ4L2EEG.js +1 -0
- package/dist/chunk-PZUPZBTN.js +1 -0
- package/dist/chunk-QBA757AU.js +1 -0
- package/dist/chunk-QFIGPOFW.js +1 -0
- package/dist/chunk-QMEKQTUT.js +1 -0
- package/dist/chunk-QVWT67WA.js +1 -0
- package/dist/chunk-RDXQAZBA.js +1 -0
- package/dist/chunk-RE5Z5RNK.js +1 -0
- package/dist/chunk-RL4VY2AL.js +1 -0
- package/dist/chunk-RQGTBHJW.js +1 -0
- package/dist/chunk-RQZCGXUZ.js +1 -0
- package/dist/chunk-S5UCI27C.js +1 -0
- package/dist/chunk-SEOASDO4.js +1 -0
- package/dist/chunk-SU4MEZ5P.js +1 -0
- package/dist/chunk-T55DELVL.js +1 -0
- package/dist/chunk-TKIEPC6F.js +1 -0
- package/dist/chunk-TLXFGGWH.js +1 -0
- package/dist/chunk-UBUKCRZ3.js +1 -0
- package/dist/chunk-V6NQ547U.js +1 -0
- package/dist/chunk-VA3ZWV7C.js +1 -0
- package/dist/chunk-VIP3FH2O.js +1 -0
- package/dist/chunk-VTQ4RWEG.js +1 -0
- package/dist/chunk-WUHTSLG4.js +1 -0
- package/dist/chunk-X22SISGM.js +1 -0
- package/dist/chunk-XKJXT2PN.js +1 -0
- package/dist/chunk-XQMKH4R4.js +1 -0
- package/dist/chunk-YGH7S5ZF.js +1 -0
- package/dist/chunk-ZE46ADXS.js +1 -0
- package/dist/chunk-ZI3FEUX3.js +1 -0
- package/dist/class/class.codec.d.ts +0 -7
- package/dist/class/class.codec.js +1 -18
- package/dist/class/class.parser.js +1 -17
- package/dist/class/class.schema.d.ts +2 -1
- package/dist/class/class.schema.js +1 -15
- package/dist/class/class.slug.d.ts +0 -11
- package/dist/class/class.slug.js +1 -8
- package/dist/class/class.standard-array.d.ts +0 -7
- package/dist/class/class.standard-array.js +1 -20
- package/dist/class/class.types.d.ts +0 -20
- package/dist/condition/condition.codec.d.ts +0 -6
- package/dist/condition/condition.parser.d.ts +0 -10
- package/dist/condition/condition.parser.js +1 -7
- package/dist/condition/condition.schema.d.ts +0 -16
- package/dist/condition/condition.types.d.ts +0 -3
- package/dist/data-srd/index.generated.js +1 -146
- package/dist/dnd/amount-text.d.ts +4 -27
- package/dist/dnd/amount-text.js +1 -13
- package/dist/dnd/constants.d.ts +0 -18
- package/dist/dnd/constants.js +1 -42
- package/dist/dnd/formula-tags.d.ts +0 -2
- package/dist/dnd/formula-tags.js +1 -119
- package/dist/dnd/math.d.ts +0 -26
- package/dist/dnd/math.js +1 -45
- package/dist/dnd/prose-tags.d.ts +1 -15
- package/dist/dnd/prose-tags.js +1 -18
- package/dist/dnd/resource-die.d.ts +0 -4
- package/dist/dnd/resource-die.js +1 -17
- package/dist/dnd/resource-formula.d.ts +0 -43
- package/dist/dnd/resource-formula.js +1 -14
- package/dist/dnd/resource-words.d.ts +0 -2
- package/dist/dnd/resource-words.js +1 -30
- package/dist/dnd/srd-tag-converter.d.ts +0 -21
- package/dist/dnd/srd-tag-converter.js +1 -12
- package/dist/dnd/tag-grammar.js +1 -12
- package/dist/dnd/warn-once.js +1 -8
- package/dist/encounter/encounter.ai-schema.js +1 -8
- package/dist/entities/base-item-resolver.d.ts +0 -26
- package/dist/entities/base-item-resolver.js +1 -11
- package/dist/entities/registry-revision.d.ts +10 -0
- package/dist/entities/registry-revision.js +1 -0
- package/dist/entities/slug.d.ts +1 -31
- package/dist/entities/slug.js +1 -12
- package/dist/entities/wikilink-display.d.ts +0 -2
- package/dist/entities/wikilink-display.js +1 -10
- package/dist/feat/feat.category-codes.d.ts +1 -26
- package/dist/feat/feat.category-codes.js +1 -14
- package/dist/feat/feat.codec.d.ts +0 -6
- package/dist/feat/feat.codec.js +1 -12
- package/dist/feat/feat.parser.js +1 -11
- package/dist/feat/feat.schema.d.ts +31 -1
- package/dist/feat/feat.schema.js +1 -10
- package/dist/feat/feat.types.d.ts +0 -6
- package/dist/index.js +45 -138113
- package/dist/inline-tag-parser.js +1 -6
- package/dist/item/item.actions-map.d.ts +4 -63
- package/dist/item/item.actions-map.js +1 -10
- package/dist/item/item.ai-schema.js +1 -6
- package/dist/item/item.attunement.d.ts +0 -14
- package/dist/item/item.attunement.js +1 -6
- package/dist/item/item.bonuses.js +1 -10
- package/dist/item/item.codec.js +1 -9
- package/dist/item/item.conditions.d.ts +0 -7
- package/dist/item/item.conditions.js +1 -11
- package/dist/item/item.conditions.types.d.ts +0 -2
- package/dist/item/item.cost.js +1 -29
- package/dist/item/item.enrichment.js +1 -9
- package/dist/item/item.icon.d.ts +0 -8
- package/dist/item/item.icon.js +1 -211
- package/dist/item/item.parser.js +1 -8
- package/dist/item/item.schema.d.ts +2 -0
- package/dist/item/item.schema.js +1 -11
- package/dist/item/item.types.d.ts +2 -28
- package/dist/monster/monster.ai-schema.js +1 -6
- package/dist/monster/monster.codec.d.ts +0 -10
- package/dist/monster/monster.enrichment.js +1 -19
- package/dist/monster/monster.format.d.ts +0 -69
- package/dist/monster/monster.format.js +1 -78
- package/dist/monster/monster.parser.d.ts +0 -4
- package/dist/monster/monster.parser.js +1 -15
- package/dist/monster/monster.resolve.d.ts +0 -4
- package/dist/monster/monster.schema.d.ts +0 -9
- package/dist/monster/monster.schema.js +1 -34
- package/dist/monster/monster.types.d.ts +0 -3
- package/dist/monster/monster.types.js +1 -1
- package/dist/optional-feature/optional-feature.codec.d.ts +0 -11
- package/dist/optional-feature/optional-feature.codec.js +1 -13
- package/dist/optional-feature/optional-feature.parser.js +1 -12
- package/dist/optional-feature/optional-feature.schema.d.ts +30 -1
- package/dist/optional-feature/optional-feature.schema.js +1 -15
- package/dist/pack.d.ts +0 -9
- package/dist/pc/conditions.constants.js +1 -6
- package/dist/pc/decision-recognizer.js +1 -8
- package/dist/pc/pc.additional-spells.d.ts +4 -14
- package/dist/pc/pc.additional-spells.js +1 -23
- package/dist/pc/pc.amount-bindings.d.ts +4 -20
- package/dist/pc/pc.amount-bindings.js +1 -23
- package/dist/pc/pc.asi-flatten.d.ts +0 -59
- package/dist/pc/pc.asi-flatten.js +1 -16
- package/dist/pc/pc.conditions.d.ts +1 -0
- package/dist/pc/pc.conditions.js +1 -6
- package/dist/pc/pc.containment.d.ts +0 -5
- package/dist/pc/pc.containment.js +1 -24
- package/dist/pc/pc.decision-engine.d.ts +4 -141
- package/dist/pc/pc.decision-engine.js +1 -52
- package/dist/pc/pc.defense-normalize.d.ts +0 -10
- package/dist/pc/pc.defense-normalize.js +1 -6
- package/dist/pc/pc.entry-overrides.d.ts +0 -58
- package/dist/pc/pc.entry-overrides.js +1 -40
- package/dist/pc/pc.equipment.d.ts +2 -22
- package/dist/pc/pc.equipment.js +1 -33
- package/dist/pc/pc.feature-effects.d.ts +23 -275
- package/dist/pc/pc.feature-effects.js +1 -26
- package/dist/pc/pc.formula-context.js +1 -11
- package/dist/pc/pc.infusions.d.ts +0 -65
- package/dist/pc/pc.infusions.js +1 -64
- package/dist/pc/pc.item-effects.d.ts +18 -0
- package/dist/pc/pc.member-choices.d.ts +18 -49
- package/dist/pc/pc.member-choices.js +1 -32
- package/dist/pc/pc.parser.js +1 -58
- package/dist/pc/pc.pools.d.ts +7 -10
- package/dist/pc/pc.pools.js +1 -26
- package/dist/pc/pc.proficiencies.d.ts +7 -33
- package/dist/pc/pc.proficiencies.js +1 -107
- package/dist/pc/pc.proficiency-grants.d.ts +0 -26
- package/dist/pc/pc.proficiency-normalize.d.ts +4 -25
- package/dist/pc/pc.proficiency-normalize.js +1 -12
- package/dist/pc/pc.proficiency-query.d.ts +0 -13
- package/dist/pc/pc.proficiency-query.js +1 -27
- package/dist/pc/pc.recalc.d.ts +7 -131
- package/dist/pc/pc.recalc.js +1 -946
- package/dist/pc/pc.resolver.d.ts +0 -104
- package/dist/pc/pc.resolver.js +1 -59
- package/dist/pc/pc.resource-seed.d.ts +0 -8
- package/dist/pc/pc.resource-seed.js +1 -42
- package/dist/pc/pc.resources.d.ts +1 -59
- package/dist/pc/pc.resources.js +1 -23
- package/dist/pc/pc.rest.d.ts +1 -20
- package/dist/pc/pc.rest.js +1 -230
- package/dist/pc/pc.schema.d.ts +19 -2
- package/dist/pc/pc.schema.js +1 -9
- package/dist/pc/pc.slotting.d.ts +0 -29
- package/dist/pc/pc.slotting.js +1 -28
- package/dist/pc/pc.speeds.d.ts +19 -0
- package/dist/pc/pc.spell-scope.d.ts +6 -0
- package/dist/pc/pc.spellcasting.d.ts +0 -70
- package/dist/pc/pc.spellcasting.js +1 -28
- package/dist/pc/pc.table-column.d.ts +0 -22
- package/dist/pc/pc.table-column.js +1 -18
- package/dist/pc/pc.tool-picks.d.ts +0 -27
- package/dist/pc/pc.tool-picks.js +1 -18
- package/dist/pc/pc.types.d.ts +85 -344
- package/dist/pc/pc.weapon-grant.d.ts +0 -6
- package/dist/pc/pool-layout.d.ts +0 -39
- package/dist/pc/pool-layout.js +1 -18
- package/dist/pc/resource-equivalents.d.ts +2 -40
- package/dist/pc/roll-scope.js +1 -8
- package/dist/pc/roll-tag-labels.d.ts +0 -32
- package/dist/pc/roll-tag-labels.js +1 -17
- package/dist/pc/spell-source.d.ts +0 -11
- package/dist/pc/spell-source.js +1 -8
- package/dist/race/race.codec.d.ts +0 -6
- package/dist/race/race.codec.js +1 -15
- package/dist/race/race.parser.js +1 -14
- package/dist/race/race.schema.d.ts +0 -8
- package/dist/race/race.schema.js +1 -14
- package/dist/race/race.structural.d.ts +0 -6
- package/dist/race/race.structural.js +1 -6
- package/dist/race/race.types.d.ts +0 -8
- package/dist/schemas/attack-schema.d.ts +5 -0
- package/dist/schemas/caster-type-schema.d.ts +1 -6
- package/dist/schemas/caster-type-schema.js +1 -6
- package/dist/schemas/choice-schema.js +1 -7
- package/dist/schemas/duration-schema.d.ts +0 -2
- package/dist/schemas/duration-schema.js +1 -6
- package/dist/schemas/entity-extras-schema.d.ts +0 -30
- package/dist/schemas/entity-extras-schema.js +1 -10
- package/dist/schemas/equipment-grant-schema.d.ts +0 -2
- package/dist/schemas/equipment-grant-schema.js +1 -12
- package/dist/schemas/feature-alias.d.ts +0 -27
- package/dist/schemas/feature-effect-schema.d.ts +30 -1
- package/dist/schemas/feature-effect-schema.js +1 -6
- package/dist/schemas/feature-schema.d.ts +0 -6
- package/dist/schemas/feature-schema.js +1 -12
- package/dist/schemas/resource-schema.d.ts +1 -34
- package/dist/schemas/resource-schema.js +1 -12
- package/dist/schemas/selection-pool-schema.js +1 -10
- package/dist/spell/casting-time.d.ts +0 -15
- package/dist/spell/casting-time.js +1 -6
- package/dist/spell/spell.access.d.ts +0 -6
- package/dist/spell/spell.access.js +1 -45
- package/dist/spell/spell.ai-schema.js +1 -6
- package/dist/spell/spell.codec.js +1 -9
- package/dist/spell/spell.enrichment.js +1 -9
- package/dist/spell/spell.filter.d.ts +0 -5
- package/dist/spell/spell.filter.js +1 -75
- package/dist/spell/spell.parser.d.ts +0 -31
- package/dist/spell/spell.parser.js +1 -16
- package/dist/spell/spell.scaling.d.ts +0 -46
- package/dist/spell/spell.scaling.js +1 -79
- package/dist/spell/spell.schema.js +1 -7
- package/dist/spell/spell.types.d.ts +0 -7
- package/dist/srd/retired-items.d.ts +0 -4
- package/dist/srd/retired-items.js +1 -11
- package/dist/srd-store.d.ts +0 -33
- package/dist/subclass/subclass.codec.d.ts +0 -8
- package/dist/subclass/subclass.codec.js +1 -17
- package/dist/subclass/subclass.parser.js +1 -16
- package/dist/subclass/subclass.schema.d.ts +2 -1
- package/dist/subclass/subclass.schema.js +1 -14
- package/dist/subclass/subclass.types.d.ts +0 -3
- package/dist/types/attack.d.ts +2 -0
- package/dist/types/casting-option.d.ts +0 -4
- package/dist/types/choice.d.ts +1 -72
- package/dist/types/choice.js +1 -24
- package/dist/types/edition.d.ts +0 -3
- package/dist/types/equipment-grant.d.ts +1 -27
- package/dist/types/equipment-grant.js +1 -12
- package/dist/types/feature-effect.d.ts +14 -14
- package/dist/types/feature.d.ts +0 -22
- package/dist/types/optional-feature.types.d.ts +1 -31
- package/dist/types/resource.d.ts +1 -21
- package/dist/types/selection-pool.d.ts +0 -24
- package/dist/weapon/weapon-mastery.d.ts +0 -1
- package/dist/weapon/weapon.classify.d.ts +0 -11
- package/dist/weapon/weapon.classify.js +1 -7
- package/dist/weapon/weapon.codec.d.ts +0 -9
- package/dist/weapon/weapon.codec.js +1 -9
- package/dist/weapon/weapon.parser.js +1 -8
- package/dist/weapon/weapon.schema.js +1 -7
- package/dist/weapon/weapon.types.d.ts +0 -3
- package/package.json +3 -3
- package/src/data-srd/ATTRIBUTION.md +1 -1
- package/dist/chunk-2FRUSVZS.js +0 -489
- package/dist/chunk-2JSQE3DD.js +0 -206
- package/dist/chunk-2LULMQTF.js +0 -14
- package/dist/chunk-2UDSN6VW.js +0 -18
- package/dist/chunk-3LWMFYKS.js +0 -57
- package/dist/chunk-3MGQFFNE.js +0 -110
- package/dist/chunk-3TM34RSJ.js +0 -23
- package/dist/chunk-3VZZDKRA.js +0 -1014
- package/dist/chunk-4U55VNC7.js +0 -22
- package/dist/chunk-5GKJAUMX.js +0 -59
- package/dist/chunk-5MXFW4O3.js +0 -71
- package/dist/chunk-656QCX4U.js +0 -22
- package/dist/chunk-6EI737IO.js +0 -19
- package/dist/chunk-6GNXYAYP.js +0 -25
- package/dist/chunk-6PXTNCBP.js +0 -133
- package/dist/chunk-6X2NV665.js +0 -33
- package/dist/chunk-7ATNGKBS.js +0 -178
- package/dist/chunk-7Q2VPKCD.js +0 -181
- package/dist/chunk-7QN7XSAK.js +0 -19
- package/dist/chunk-A54HHCWW.js +0 -67
- package/dist/chunk-AZRGFUSR.js +0 -18
- package/dist/chunk-B3DP42OM.js +0 -55
- package/dist/chunk-CJYCVNW2.js +0 -7
- package/dist/chunk-CM5CWO4K.js +0 -735
- package/dist/chunk-DEEHHLAP.js +0 -271
- package/dist/chunk-DOXSFYLH.js +0 -158
- package/dist/chunk-DPUJDOKV.js +0 -365
- package/dist/chunk-EJP263OP.js +0 -186
- package/dist/chunk-EVMUJYUD.js +0 -195
- package/dist/chunk-EYX4JMAU.js +0 -101
- package/dist/chunk-FANQVQ3D.js +0 -89
- package/dist/chunk-FC4IGH5Y.js +0 -18
- package/dist/chunk-G6MHJDVT.js +0 -41
- package/dist/chunk-G6PBI2BU.js +0 -18
- package/dist/chunk-H5PTKYXL.js +0 -101
- package/dist/chunk-HHBD4SQ6.js +0 -24
- package/dist/chunk-HS6FIOLP.js +0 -52
- package/dist/chunk-HTYMW5CH.js +0 -228
- package/dist/chunk-IHE6KVC3.js +0 -13
- package/dist/chunk-IN4M4X7P.js +0 -34
- package/dist/chunk-IUAAXXNO.js +0 -58
- package/dist/chunk-JCMUVZIK.js +0 -133
- package/dist/chunk-JSM6JFZR.js +0 -709
- package/dist/chunk-K5NJBTE2.js +0 -18
- package/dist/chunk-KR6JF3BF.js +0 -14
- package/dist/chunk-KSTV7J2U.js +0 -112
- package/dist/chunk-KU3YLF6D.js +0 -106
- package/dist/chunk-LBEXLN6I.js +0 -91
- package/dist/chunk-LF5AGJA4.js +0 -81
- package/dist/chunk-LHZXYFBU.js +0 -94
- package/dist/chunk-LSLSG67V.js +0 -31
- package/dist/chunk-LVQLWRCU.js +0 -15
- package/dist/chunk-MBX25B6D.js +0 -18
- package/dist/chunk-MYY2C5MB.js +0 -233
- package/dist/chunk-OFCSP6MT.js +0 -23
- package/dist/chunk-ONTGZR5T.js +0 -1806
- package/dist/chunk-OOSRUJBI.js +0 -19
- package/dist/chunk-PDJSUH24.js +0 -110
- package/dist/chunk-PKX6TGRE.js +0 -93
- package/dist/chunk-PQZ4LM4Z.js +0 -19
- package/dist/chunk-PTXBIDG7.js +0 -63
- package/dist/chunk-PVCEA4HZ.js +0 -6
- package/dist/chunk-PXVNAY7T.js +0 -84
- package/dist/chunk-QH36K2PU.js +0 -158
- package/dist/chunk-QS5L5YTJ.js +0 -24
- package/dist/chunk-QYZV2MQA.js +0 -97
- package/dist/chunk-QZSWN2KT.js +0 -18
- package/dist/chunk-RLGQ5PZZ.js +0 -16
- package/dist/chunk-RYLXAYIQ.js +0 -18
- package/dist/chunk-S3YUXDSC.js +0 -278
- package/dist/chunk-S7REMWW4.js +0 -21
- package/dist/chunk-T6QIF5XR.js +0 -348
- package/dist/chunk-TOM66P2P.js +0 -38
- package/dist/chunk-TULQ4FFX.js +0 -353
- package/dist/chunk-UA5KS2PL.js +0 -26
- package/dist/chunk-UUBJCNQU.js +0 -187
- package/dist/chunk-UZXG6QSY.js +0 -58
- package/dist/chunk-VPYBK2MG.js +0 -18
- package/dist/chunk-VRV3NNTA.js +0 -161
- package/dist/chunk-VTTA2ALZ.js +0 -16
- package/dist/chunk-W6GC6OKK.js +0 -16
- package/dist/chunk-WELIKLZF.js +0 -256
- package/dist/chunk-WSVMLNTO.js +0 -31
- package/dist/chunk-WYGD2UGN.js +0 -14
- package/dist/chunk-XCFC7LGF.js +0 -122
- package/dist/chunk-XJ2F2WO6.js +0 -8
- package/dist/chunk-Y5VVP73C.js +0 -23
- package/dist/chunk-YBLDE5CG.js +0 -42
- package/dist/chunk-YD2VAHA6.js +0 -159
- package/dist/chunk-YDGMBMYI.js +0 -25
- package/dist/chunk-YHYTW5QA.js +0 -20
- package/dist/chunk-YKL6SHRJ.js +0 -23
- package/dist/chunk-ZCTUYGNV.js +0 -26
- package/dist/chunk-ZDAEGJH4.js +0 -102
- package/dist/chunk-ZJXSXVFP.js +0 -58
- package/dist/chunk-ZUQW5VBZ.js +0 -89
package/dist/chunk-4U55VNC7.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// src/schemas/feature-alias.ts
|
|
2
|
-
function aliasFeatureActionCost(f) {
|
|
3
|
-
if (f.action === void 0 && typeof f.action_cost === "string") f.action = f.action_cost;
|
|
4
|
-
}
|
|
5
|
-
function aliasFeatureListActionCost(list) {
|
|
6
|
-
if (Array.isArray(list)) {
|
|
7
|
-
for (const f of list) if (f && typeof f === "object") aliasFeatureActionCost(f);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
function aliasFeaturesByLevelActionCost(byLevel) {
|
|
11
|
-
if (byLevel && typeof byLevel === "object")
|
|
12
|
-
for (const list of Object.values(byLevel)) aliasFeatureListActionCost(list);
|
|
13
|
-
}
|
|
14
|
-
function withResolvedActionCost(f) {
|
|
15
|
-
return f.action === void 0 && typeof f.action_cost === "string" ? { ...f, action: f.action_cost } : f;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export {
|
|
19
|
-
aliasFeatureListActionCost,
|
|
20
|
-
aliasFeaturesByLevelActionCost,
|
|
21
|
-
withResolvedActionCost
|
|
22
|
-
};
|
package/dist/chunk-5GKJAUMX.js
DELETED
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
imageField
|
|
3
|
-
} from "./chunk-UA5KS2PL.js";
|
|
4
|
-
|
|
5
|
-
// src/weapon/weapon.schema.ts
|
|
6
|
-
import { z } from "zod";
|
|
7
|
-
var conditionalPropertySchema = z.object({
|
|
8
|
-
kind: z.literal("conditional"),
|
|
9
|
-
uid: z.string(),
|
|
10
|
-
note: z.string()
|
|
11
|
-
});
|
|
12
|
-
var propertySchema = z.union([z.string(), conditionalPropertySchema]);
|
|
13
|
-
var editionEnum = z.enum(["2014", "2024"]);
|
|
14
|
-
var weaponEntitySchema = z.object({
|
|
15
|
-
name: z.string().min(1),
|
|
16
|
-
slug: z.string().min(1),
|
|
17
|
-
category: z.string(),
|
|
18
|
-
damage: z.object({
|
|
19
|
-
dice: z.string(),
|
|
20
|
-
type: z.string(),
|
|
21
|
-
versatile_dice: z.string().optional()
|
|
22
|
-
}),
|
|
23
|
-
properties: z.array(propertySchema).default([]),
|
|
24
|
-
range: z.object({
|
|
25
|
-
normal: z.number().int().nonnegative(),
|
|
26
|
-
long: z.number().int().nonnegative()
|
|
27
|
-
}).optional(),
|
|
28
|
-
reload: z.number().int().nonnegative().optional(),
|
|
29
|
-
mastery: z.array(z.string()).optional(),
|
|
30
|
-
type_tags: z.array(z.string()).optional(),
|
|
31
|
-
ammo_type: z.string().optional(),
|
|
32
|
-
weight: z.union([z.number(), z.string()]).optional(),
|
|
33
|
-
cost: z.string().optional(),
|
|
34
|
-
source: z.string().optional(),
|
|
35
|
-
page: z.number().int().optional(),
|
|
36
|
-
edition: editionEnum,
|
|
37
|
-
entries: z.array(z.unknown()).optional(),
|
|
38
|
-
// Root extras the converter and the SRD bundle emit on more than one root (spec §5).
|
|
39
|
-
// Carrier counts measured on the G1b close census. `rendering_hint` is ALWAYS the empty
|
|
40
|
-
// string today, so `.min(1)` is forbidden here.
|
|
41
|
-
rendering_hint: z.string().optional(),
|
|
42
|
-
// 98
|
|
43
|
-
// The icon key (I3): a key of the renderer's icon set or a Lucide name; itemIconKey reads it first.
|
|
44
|
-
icon: z.string().optional(),
|
|
45
|
-
has_fluff: z.boolean().optional(),
|
|
46
|
-
// 1
|
|
47
|
-
has_fluff_images: z.boolean().optional(),
|
|
48
|
-
// 39
|
|
49
|
-
// Already `.optional()` at its source — never append a second one.
|
|
50
|
-
image: imageField,
|
|
51
|
-
// 0 today (images-OFF tree)
|
|
52
|
-
raw: z.record(z.string(), z.unknown()).optional()
|
|
53
|
-
// `weapon :: value_rarity :: duplicated` (8) is deliberately NOT declared: it is
|
|
54
|
-
// converter-owned and stays a named expected residual (spec §10.3).
|
|
55
|
-
}).loose();
|
|
56
|
-
|
|
57
|
-
export {
|
|
58
|
-
weaponEntitySchema
|
|
59
|
-
};
|
package/dist/chunk-5MXFW4O3.js
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
featureEffectSchema
|
|
3
|
-
} from "./chunk-2JSQE3DD.js";
|
|
4
|
-
|
|
5
|
-
// src/schemas/choice-schema.ts
|
|
6
|
-
import { z } from "zod";
|
|
7
|
-
var abilityEnum = z.enum(["str", "dex", "con", "int", "wis", "cha"]);
|
|
8
|
-
var entityFilterSchema = z.object({
|
|
9
|
-
feature_type: z.string().min(1).optional(),
|
|
10
|
-
category: z.string().min(1).optional(),
|
|
11
|
-
parent_class: z.literal("self").optional(),
|
|
12
|
-
available_to: z.literal("self").optional(),
|
|
13
|
-
weapon_category: z.enum(["simple", "martial"]).optional(),
|
|
14
|
-
armor_category: z.enum(["light", "medium", "heavy", "shield"]).optional(),
|
|
15
|
-
item_type: z.array(z.string().min(1)).nonempty().optional(),
|
|
16
|
-
mundane: z.boolean().optional(),
|
|
17
|
-
list: z.string().min(1).optional(),
|
|
18
|
-
level: z.number().int().min(0).max(9).optional(),
|
|
19
|
-
edition: z.string().min(1).optional(),
|
|
20
|
-
// D2b-A (design §2.2 step 1): Pact of the Tome's "level 1 ritual spells".
|
|
21
|
-
ritual: z.boolean().optional()
|
|
22
|
-
}).strict();
|
|
23
|
-
var inlineOptionSchema = z.lazy(() => z.object({
|
|
24
|
-
value: z.string().min(1),
|
|
25
|
-
label: z.string().min(1),
|
|
26
|
-
description: z.string().optional(),
|
|
27
|
-
effects: z.array(featureEffectSchema).optional(),
|
|
28
|
-
choices: z.array(choiceSchema).optional()
|
|
29
|
-
}).strict());
|
|
30
|
-
var choiceSchema = z.lazy(() => z.discriminatedUnion("kind", [
|
|
31
|
-
z.object({
|
|
32
|
-
kind: z.literal("select-inline"),
|
|
33
|
-
id: z.string().min(1),
|
|
34
|
-
label: z.string().optional(),
|
|
35
|
-
count: z.number().int().positive().optional(),
|
|
36
|
-
options: z.array(inlineOptionSchema).nonempty()
|
|
37
|
-
}).strict(),
|
|
38
|
-
z.object({
|
|
39
|
-
kind: z.literal("select-entity"),
|
|
40
|
-
id: z.string().min(1),
|
|
41
|
-
label: z.string().optional(),
|
|
42
|
-
count: z.number().int().positive().optional(),
|
|
43
|
-
entity_type: z.string().min(1),
|
|
44
|
-
from: z.array(z.string().min(1)).nonempty().optional(),
|
|
45
|
-
where: entityFilterSchema.optional(),
|
|
46
|
-
// D2b-A: a pick that names a target (a blast's cantrip), never a grant.
|
|
47
|
-
target: z.literal(true).optional()
|
|
48
|
-
}).strict(),
|
|
49
|
-
z.object({
|
|
50
|
-
kind: z.literal("select-proficiency"),
|
|
51
|
-
id: z.string().min(1),
|
|
52
|
-
label: z.string().optional(),
|
|
53
|
-
count: z.number().int().positive(),
|
|
54
|
-
domain: z.enum(["skill", "tool", "language", "save"]),
|
|
55
|
-
from: z.array(z.string().min(1)).nonempty().optional(),
|
|
56
|
-
from_proficient: z.boolean().optional(),
|
|
57
|
-
expertise: z.boolean().optional()
|
|
58
|
-
}).strict(),
|
|
59
|
-
z.object({
|
|
60
|
-
kind: z.literal("ability-points"),
|
|
61
|
-
id: z.string().min(1),
|
|
62
|
-
label: z.string().optional(),
|
|
63
|
-
points: z.number().int().positive(),
|
|
64
|
-
max_per: z.number().int().positive(),
|
|
65
|
-
pool: z.array(abilityEnum).nonempty().optional()
|
|
66
|
-
}).strict()
|
|
67
|
-
]));
|
|
68
|
-
|
|
69
|
-
export {
|
|
70
|
-
choiceSchema
|
|
71
|
-
};
|
package/dist/chunk-656QCX4U.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// src/spell/spell.ai-schema.ts
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
var spellInputSchema = z.object({
|
|
4
|
-
name: z.string().describe("Spell name"),
|
|
5
|
-
level: z.number().min(0).max(9).describe("Spell level (0 for cantrips)"),
|
|
6
|
-
school: z.enum(["abjuration", "conjuration", "divination", "enchantment", "evocation", "illusion", "necromancy", "transmutation"]),
|
|
7
|
-
casting_time: z.string().describe('e.g., "1 action", "1 bonus action"'),
|
|
8
|
-
range: z.string().describe('e.g., "Touch", "120 feet", "Self"'),
|
|
9
|
-
components: z.string().describe('e.g., "V, S", "V, S, M (diamond worth 100 gp)"'),
|
|
10
|
-
duration: z.string().describe('e.g., "Instantaneous", "Concentration, up to 1 minute"'),
|
|
11
|
-
description: z.array(z.string()).describe(
|
|
12
|
-
"Spell description paragraphs. Use inline formula tags for damage and save DCs: `damage:DICE` for damage rolls (e.g. `damage:8d6`), `dc:ABILITY` for save DCs (e.g. `dc:WIS`). Valid abilities: STR, DEX, CON, INT, WIS, CHA."
|
|
13
|
-
),
|
|
14
|
-
at_higher_levels: z.array(z.string()).optional(),
|
|
15
|
-
classes: z.array(z.string()).optional(),
|
|
16
|
-
ritual: z.boolean().optional(),
|
|
17
|
-
concentration: z.boolean().optional()
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
export {
|
|
21
|
-
spellInputSchema
|
|
22
|
-
};
|
package/dist/chunk-6EI737IO.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
backgroundEntitySchema
|
|
3
|
-
} from "./chunk-3MGQFFNE.js";
|
|
4
|
-
|
|
5
|
-
// src/background/background.parser.ts
|
|
6
|
-
import { parseYaml } from "@archivist-gg/core";
|
|
7
|
-
function parseBackground(source) {
|
|
8
|
-
const raw = parseYaml(source, ["name", "slug"]);
|
|
9
|
-
if (!raw.success) return raw;
|
|
10
|
-
const result = backgroundEntitySchema.safeParse({ edition: "2014", ...raw.data });
|
|
11
|
-
if (!result.success) {
|
|
12
|
-
return { success: false, error: `background schema validation failed: ${result.error.message}` };
|
|
13
|
-
}
|
|
14
|
-
return { success: true, data: result.data };
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export {
|
|
18
|
-
parseBackground
|
|
19
|
-
};
|
package/dist/chunk-6GNXYAYP.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
STATIC_FALLBACK_CONTEXT,
|
|
3
|
-
convertDescToTags
|
|
4
|
-
} from "./chunk-DEEHHLAP.js";
|
|
5
|
-
|
|
6
|
-
// src/item/item.enrichment.ts
|
|
7
|
-
function enrichItem(raw) {
|
|
8
|
-
var _a, _b, _c;
|
|
9
|
-
const enriched = {
|
|
10
|
-
...raw,
|
|
11
|
-
source: (_a = raw.source) != null ? _a : "Homebrew",
|
|
12
|
-
attunement: (_b = raw.attunement) != null ? _b : false,
|
|
13
|
-
curse: (_c = raw.curse) != null ? _c : false
|
|
14
|
-
};
|
|
15
|
-
if (Array.isArray(enriched.entries)) {
|
|
16
|
-
enriched.entries = enriched.entries.map(
|
|
17
|
-
(e) => convertDescToTags(e, STATIC_FALLBACK_CONTEXT)
|
|
18
|
-
);
|
|
19
|
-
}
|
|
20
|
-
return enriched;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export {
|
|
24
|
-
enrichItem
|
|
25
|
-
};
|
package/dist/chunk-6PXTNCBP.js
DELETED
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
convertDescToTags,
|
|
3
|
-
detectSpellcastingAbility
|
|
4
|
-
} from "./chunk-DEEHHLAP.js";
|
|
5
|
-
import {
|
|
6
|
-
abilityModifier
|
|
7
|
-
} from "./chunk-PDJSUH24.js";
|
|
8
|
-
|
|
9
|
-
// src/monster/monster.enrichment.ts
|
|
10
|
-
import { toStringSafe } from "@archivist-gg/core";
|
|
11
|
-
var CR_TO_XP = {
|
|
12
|
-
"0": 10,
|
|
13
|
-
"1/8": 25,
|
|
14
|
-
"1/4": 50,
|
|
15
|
-
"1/2": 100,
|
|
16
|
-
"1": 200,
|
|
17
|
-
"2": 450,
|
|
18
|
-
"3": 700,
|
|
19
|
-
"4": 1100,
|
|
20
|
-
"5": 1800,
|
|
21
|
-
"6": 2300,
|
|
22
|
-
"7": 2900,
|
|
23
|
-
"8": 3900,
|
|
24
|
-
"9": 5e3,
|
|
25
|
-
"10": 5900,
|
|
26
|
-
"11": 7200,
|
|
27
|
-
"12": 8400,
|
|
28
|
-
"13": 1e4,
|
|
29
|
-
"14": 11500,
|
|
30
|
-
"15": 13e3,
|
|
31
|
-
"16": 15e3,
|
|
32
|
-
"17": 18e3,
|
|
33
|
-
"18": 2e4,
|
|
34
|
-
"19": 22e3,
|
|
35
|
-
"20": 25e3,
|
|
36
|
-
"21": 33e3,
|
|
37
|
-
"22": 41e3,
|
|
38
|
-
"23": 5e4,
|
|
39
|
-
"24": 62e3,
|
|
40
|
-
"25": 75e3,
|
|
41
|
-
"26": 9e4,
|
|
42
|
-
"27": 105e3,
|
|
43
|
-
"28": 12e4,
|
|
44
|
-
"29": 135e3,
|
|
45
|
-
"30": 155e3
|
|
46
|
-
};
|
|
47
|
-
function parseCR(cr) {
|
|
48
|
-
if (!cr) return 0;
|
|
49
|
-
if (cr.includes("/")) {
|
|
50
|
-
const [num, denom] = cr.split("/").map(Number);
|
|
51
|
-
return num / denom;
|
|
52
|
-
}
|
|
53
|
-
return Number(cr) || 0;
|
|
54
|
-
}
|
|
55
|
-
function getChallengeRatingXP(cr) {
|
|
56
|
-
var _a;
|
|
57
|
-
return (_a = CR_TO_XP[cr]) != null ? _a : 0;
|
|
58
|
-
}
|
|
59
|
-
function getProficiencyBonus(cr) {
|
|
60
|
-
const v = parseCR(cr);
|
|
61
|
-
if (v < 5) return 2;
|
|
62
|
-
if (v < 9) return 3;
|
|
63
|
-
if (v < 13) return 4;
|
|
64
|
-
if (v < 17) return 5;
|
|
65
|
-
if (v < 21) return 6;
|
|
66
|
-
if (v < 25) return 7;
|
|
67
|
-
if (v < 29) return 8;
|
|
68
|
-
return 9;
|
|
69
|
-
}
|
|
70
|
-
function enrichMonster(raw) {
|
|
71
|
-
var _a, _b, _c;
|
|
72
|
-
const cr = toStringSafe((_a = raw.cr) != null ? _a : "0");
|
|
73
|
-
const abilities = raw.abilities;
|
|
74
|
-
const wisdomMod = abilities ? abilityModifier(abilities.wis) : 0;
|
|
75
|
-
const passivePerception = (_b = raw.passive_perception) != null ? _b : 10 + wisdomMod;
|
|
76
|
-
const languages = ((_c = raw.languages) == null ? void 0 : _c.length) ? raw.languages : ["---"];
|
|
77
|
-
const enriched = {
|
|
78
|
-
...raw,
|
|
79
|
-
cr,
|
|
80
|
-
xp: getChallengeRatingXP(cr),
|
|
81
|
-
proficiency_bonus: getProficiencyBonus(cr),
|
|
82
|
-
passive_perception: passivePerception,
|
|
83
|
-
languages
|
|
84
|
-
};
|
|
85
|
-
convertMonsterEntries(enriched, cr);
|
|
86
|
-
return enriched;
|
|
87
|
-
}
|
|
88
|
-
var MONSTER_SECTIONS = [
|
|
89
|
-
["traits", "trait"],
|
|
90
|
-
["actions", "action"],
|
|
91
|
-
["reactions", "reaction"],
|
|
92
|
-
["legendary_actions", "legendary"]
|
|
93
|
-
];
|
|
94
|
-
function convertMonsterEntries(monster, cr) {
|
|
95
|
-
var _a;
|
|
96
|
-
const abilities = monster.abilities;
|
|
97
|
-
if (!abilities) return;
|
|
98
|
-
const profBonus = getProficiencyBonus(cr);
|
|
99
|
-
const spellAbility = detectSpellcastingAbility(
|
|
100
|
-
((_a = monster.traits) != null ? _a : []).map((f) => {
|
|
101
|
-
var _a2;
|
|
102
|
-
return { name: f.name, entries: (_a2 = f.entries) != null ? _a2 : [] };
|
|
103
|
-
})
|
|
104
|
-
);
|
|
105
|
-
for (const [key, category] of MONSTER_SECTIONS) {
|
|
106
|
-
const features = monster[key];
|
|
107
|
-
if (!Array.isArray(features)) continue;
|
|
108
|
-
for (const feature of features) {
|
|
109
|
-
const f = feature;
|
|
110
|
-
if (!Array.isArray(f.entries)) continue;
|
|
111
|
-
f.entries = f.entries.map((desc) => {
|
|
112
|
-
var _a2;
|
|
113
|
-
if (/\{@\w+/.test(desc)) return desc;
|
|
114
|
-
return convertDescToTags(desc, {
|
|
115
|
-
abilities,
|
|
116
|
-
profBonus,
|
|
117
|
-
actionName: (_a2 = f.name) != null ? _a2 : "",
|
|
118
|
-
actionCategory: category,
|
|
119
|
-
spellAbility
|
|
120
|
-
});
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
export {
|
|
127
|
-
CR_TO_XP,
|
|
128
|
-
parseCR,
|
|
129
|
-
getChallengeRatingXP,
|
|
130
|
-
getProficiencyBonus,
|
|
131
|
-
enrichMonster,
|
|
132
|
-
convertMonsterEntries
|
|
133
|
-
};
|
package/dist/chunk-6X2NV665.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
imageField
|
|
3
|
-
} from "./chunk-UA5KS2PL.js";
|
|
4
|
-
|
|
5
|
-
// src/condition/condition.parser.ts
|
|
6
|
-
import { parseYaml } from "@archivist-gg/core";
|
|
7
|
-
|
|
8
|
-
// src/condition/condition.schema.ts
|
|
9
|
-
import { z } from "zod";
|
|
10
|
-
var conditionEntitySchema = z.object({
|
|
11
|
-
slug: z.string().min(1),
|
|
12
|
-
name: z.string().min(1),
|
|
13
|
-
edition: z.enum(["2014", "2024"]),
|
|
14
|
-
source: z.string().min(1),
|
|
15
|
-
description: z.string(),
|
|
16
|
-
has_fluff_images: z.boolean().optional(),
|
|
17
|
-
image: imageField
|
|
18
|
-
});
|
|
19
|
-
|
|
20
|
-
// src/condition/condition.parser.ts
|
|
21
|
-
function parseCondition(source) {
|
|
22
|
-
const raw = parseYaml(source, ["name", "slug"]);
|
|
23
|
-
if (!raw.success) return raw;
|
|
24
|
-
const result = conditionEntitySchema.safeParse({ edition: "2014", ...raw.data });
|
|
25
|
-
if (!result.success) {
|
|
26
|
-
return { success: false, error: `condition schema validation failed: ${result.error.message}` };
|
|
27
|
-
}
|
|
28
|
-
return { success: true, data: result.data };
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
export {
|
|
32
|
-
parseCondition
|
|
33
|
-
};
|
package/dist/chunk-7ATNGKBS.js
DELETED
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
featureObjectSchema
|
|
3
|
-
} from "./chunk-YD2VAHA6.js";
|
|
4
|
-
import {
|
|
5
|
-
imageField
|
|
6
|
-
} from "./chunk-UA5KS2PL.js";
|
|
7
|
-
|
|
8
|
-
// src/monster/monster.schema.ts
|
|
9
|
-
import { z } from "zod";
|
|
10
|
-
var str = z.string();
|
|
11
|
-
var num = z.number();
|
|
12
|
-
var bool = z.boolean();
|
|
13
|
-
var strArr = z.array(z.string());
|
|
14
|
-
var damageQualifierSchema = z.object({
|
|
15
|
-
get types() {
|
|
16
|
-
return z.array(z.union([str, damageQualifierSchema])).optional();
|
|
17
|
-
},
|
|
18
|
-
note: str.optional(),
|
|
19
|
-
pre_note: str.optional(),
|
|
20
|
-
cond: bool.optional(),
|
|
21
|
-
special: str.optional()
|
|
22
|
-
});
|
|
23
|
-
var qualifierList = z.array(z.union([str, damageQualifierSchema])).optional();
|
|
24
|
-
var speedValue = z.union([num, z.object({ number: num, condition: str.optional() })]);
|
|
25
|
-
var monsterSpeedSchema = z.object({
|
|
26
|
-
walk: speedValue.optional(),
|
|
27
|
-
fly: speedValue.optional(),
|
|
28
|
-
swim: speedValue.optional(),
|
|
29
|
-
climb: speedValue.optional(),
|
|
30
|
-
burrow: speedValue.optional(),
|
|
31
|
-
hover: bool.optional(),
|
|
32
|
-
can_hover: bool.optional(),
|
|
33
|
-
alternate: z.record(str, z.array(z.object({ number: num, condition: str.optional() }))).optional(),
|
|
34
|
-
choose: z.object({ from: strArr, amount: num, note: str.optional() }).optional()
|
|
35
|
-
});
|
|
36
|
-
var monsterTypeSchema = z.object({
|
|
37
|
-
type: z.union([str, z.object({ choose: strArr })]),
|
|
38
|
-
tags: z.array(z.union([str, z.object({ tag: str, prefix: str, prefix_hidden: bool.optional() })])).optional(),
|
|
39
|
-
sidekick_type: str.optional(),
|
|
40
|
-
sidekick_tags: strArr.optional(),
|
|
41
|
-
swarm_size: str.optional(),
|
|
42
|
-
sidekick_hidden: bool.optional()
|
|
43
|
-
});
|
|
44
|
-
var monsterCRSchema = z.object({ cr: str, lair: str.optional(), coven: str.optional(), xp: num.optional(), xp_lair: num.optional() });
|
|
45
|
-
var monsterACSchema = z.object({ ac: num.optional(), from: strArr.optional(), condition: str.optional(), braces: bool.optional(), special: str.optional() });
|
|
46
|
-
var monsterHPSchema = z.object({ average: num.optional(), formula: str.optional(), special: str.optional() });
|
|
47
|
-
var alignmentEntrySchema = z.object({ alignment: strArr.optional(), chance: num.optional(), note: str.optional(), special: str.optional() });
|
|
48
|
-
var spellEntry = z.union([str, z.object({ entry: str, hidden: bool.optional() })]);
|
|
49
|
-
var spellList = z.array(spellEntry);
|
|
50
|
-
var spellLevel = z.object({ slots: num.optional(), lower: num.optional(), spells: strArr });
|
|
51
|
-
var monsterSpellcastingSchema = z.object({
|
|
52
|
-
name: str.optional(),
|
|
53
|
-
type: str.optional(),
|
|
54
|
-
headerEntries: strArr.optional(),
|
|
55
|
-
footerEntries: strArr.optional(),
|
|
56
|
-
ability: str.optional(),
|
|
57
|
-
displayAs: str.optional(),
|
|
58
|
-
hidden: strArr.optional(),
|
|
59
|
-
spells: z.record(str, spellLevel).optional(),
|
|
60
|
-
will: spellList.optional(),
|
|
61
|
-
ritual: spellList.optional(),
|
|
62
|
-
daily: z.record(str, spellList).optional(),
|
|
63
|
-
rest: z.record(str, spellList).optional(),
|
|
64
|
-
restLong: z.record(str, spellList).optional(),
|
|
65
|
-
recharge: z.record(str, spellList).optional(),
|
|
66
|
-
legendary: z.record(str, spellList).optional(),
|
|
67
|
-
charges: z.record(str, spellList).optional(),
|
|
68
|
-
chargesItem: str.optional()
|
|
69
|
-
});
|
|
70
|
-
var initiativeSchema = z.union([num, z.object({ proficiency: num.optional(), advantage_mode: str.optional() })]);
|
|
71
|
-
var gearEntrySchema = z.union([str, z.object({ item: str, quantity: num.optional(), displayName: str.optional() })]);
|
|
72
|
-
var featureArr = z.array(featureObjectSchema).optional();
|
|
73
|
-
var monsterSchema = z.object({
|
|
74
|
-
name: str.min(1),
|
|
75
|
-
size: z.union([str, strArr]).optional(),
|
|
76
|
-
size_note: str.optional(),
|
|
77
|
-
type: z.union([str, monsterTypeSchema]).optional(),
|
|
78
|
-
subtype: str.optional(),
|
|
79
|
-
alignment: z.union([str, z.array(z.union([str, alignmentEntrySchema]))]).optional(),
|
|
80
|
-
alignment_prefix: str.optional(),
|
|
81
|
-
cr: z.union([str, monsterCRSchema]).optional(),
|
|
82
|
-
pb_note: str.optional(),
|
|
83
|
-
ac: z.array(monsterACSchema).optional(),
|
|
84
|
-
hp: monsterHPSchema.optional(),
|
|
85
|
-
speed: monsterSpeedSchema.optional(),
|
|
86
|
-
abilities: z.object({ str: num, dex: num, con: num, int: num, wis: num, cha: num }).optional(),
|
|
87
|
-
saves: z.record(str, num).optional(),
|
|
88
|
-
skills: z.record(str, num).optional(),
|
|
89
|
-
skills_other: z.array(z.unknown()).optional(),
|
|
90
|
-
senses: strArr.nullable().optional(),
|
|
91
|
-
passive_perception: num.optional(),
|
|
92
|
-
languages: strArr.nullable().optional(),
|
|
93
|
-
damage_vulnerabilities: qualifierList,
|
|
94
|
-
damage_resistances: qualifierList,
|
|
95
|
-
damage_immunities: qualifierList,
|
|
96
|
-
condition_immunities: qualifierList,
|
|
97
|
-
traits: featureArr,
|
|
98
|
-
actions: featureArr,
|
|
99
|
-
bonus_actions: featureArr,
|
|
100
|
-
reactions: featureArr,
|
|
101
|
-
legendary_actions: featureArr,
|
|
102
|
-
mythic: featureArr,
|
|
103
|
-
mythic_header: strArr.optional(),
|
|
104
|
-
legendary_action_uses: num.optional(),
|
|
105
|
-
legendary_resistance: num.optional(),
|
|
106
|
-
legendary_actions_lair_count: num.optional(),
|
|
107
|
-
section_headers: z.array(z.object({ section: str, header: strArr })).optional(),
|
|
108
|
-
action_note: str.optional(),
|
|
109
|
-
reaction_note: str.optional(),
|
|
110
|
-
spellcasting: z.array(monsterSpellcastingSchema).optional(),
|
|
111
|
-
legendary_group: z.object({ name: str, source: str }).optional(),
|
|
112
|
-
lair_actions: z.array(z.unknown()).optional(),
|
|
113
|
-
regional_actions: z.array(z.unknown()).optional(),
|
|
114
|
-
variant: z.array(z.unknown()).optional(),
|
|
115
|
-
initiative: initiativeSchema.optional(),
|
|
116
|
-
gear: z.array(gearEntrySchema).optional(),
|
|
117
|
-
is_named_creature: bool.optional(),
|
|
118
|
-
is_npc: bool.optional(),
|
|
119
|
-
familiar: bool.optional(),
|
|
120
|
-
short_name: z.union([str, bool]).optional(),
|
|
121
|
-
level: num.optional(),
|
|
122
|
-
dragon_age: str.optional(),
|
|
123
|
-
dragon_casting_color: str.optional(),
|
|
124
|
-
environment: strArr.optional(),
|
|
125
|
-
treasure: strArr.optional(),
|
|
126
|
-
attached_items: strArr.optional(),
|
|
127
|
-
group: strArr.nullable().optional(),
|
|
128
|
-
summoned_by_spell: str.optional(),
|
|
129
|
-
summoned_by_spell_level: num.optional(),
|
|
130
|
-
summoned_by_class: str.optional(),
|
|
131
|
-
trait_tags: strArr.optional(),
|
|
132
|
-
action_tags: strArr.optional(),
|
|
133
|
-
sense_tags: strArr.optional(),
|
|
134
|
-
language_tags: strArr.optional(),
|
|
135
|
-
spellcasting_tags: strArr.optional(),
|
|
136
|
-
misc_tags: strArr.optional(),
|
|
137
|
-
damage_tags: strArr.optional(),
|
|
138
|
-
damage_tags_spell: strArr.optional(),
|
|
139
|
-
damage_tags_legendary: strArr.optional(),
|
|
140
|
-
condition_inflict: strArr.optional(),
|
|
141
|
-
condition_inflict_spell: strArr.optional(),
|
|
142
|
-
condition_inflict_legendary: strArr.optional(),
|
|
143
|
-
saving_throw_forced: strArr.optional(),
|
|
144
|
-
saving_throw_forced_spell: strArr.optional(),
|
|
145
|
-
saving_throw_forced_legendary: strArr.optional(),
|
|
146
|
-
has_fluff: bool.optional(),
|
|
147
|
-
has_fluff_images: bool.optional(),
|
|
148
|
-
has_token: bool.optional(),
|
|
149
|
-
token_credit: str.optional(),
|
|
150
|
-
token_custom: bool.optional(),
|
|
151
|
-
foundry_token_scale: num.optional(),
|
|
152
|
-
sound_clip: z.object({ type: str, path: str }).optional(),
|
|
153
|
-
alt_art: z.array(z.object({ name: str, source: str.optional(), page: num.optional() })).optional(),
|
|
154
|
-
image: imageField,
|
|
155
|
-
thumbnail: imageField,
|
|
156
|
-
rendering_hint: str.optional(),
|
|
157
|
-
columns: num.optional(),
|
|
158
|
-
slug: str.optional(),
|
|
159
|
-
edition: str.optional(),
|
|
160
|
-
source: str.optional(),
|
|
161
|
-
raw: z.record(str, z.unknown()).optional()
|
|
162
|
-
});
|
|
163
|
-
var MONSTER_KNOWN_KEYS = new Set(Object.keys(monsterSchema.shape));
|
|
164
|
-
|
|
165
|
-
export {
|
|
166
|
-
damageQualifierSchema,
|
|
167
|
-
monsterSpeedSchema,
|
|
168
|
-
monsterTypeSchema,
|
|
169
|
-
monsterCRSchema,
|
|
170
|
-
monsterACSchema,
|
|
171
|
-
monsterHPSchema,
|
|
172
|
-
alignmentEntrySchema,
|
|
173
|
-
monsterSpellcastingSchema,
|
|
174
|
-
initiativeSchema,
|
|
175
|
-
gearEntrySchema,
|
|
176
|
-
monsterSchema,
|
|
177
|
-
MONSTER_KNOWN_KEYS
|
|
178
|
-
};
|