@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-QZSWN2KT.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
parseSubclass
|
|
3
|
-
} from "./chunk-OFCSP6MT.js";
|
|
4
|
-
|
|
5
|
-
// src/subclass/subclass.codec.ts
|
|
6
|
-
import yaml from "js-yaml";
|
|
7
|
-
var subclassCodec = {
|
|
8
|
-
parse(doc) {
|
|
9
|
-
return parseSubclass(doc.body);
|
|
10
|
-
},
|
|
11
|
-
serialize(entity) {
|
|
12
|
-
return yaml.dump(entity, { lineWidth: -1, sortKeys: false });
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
subclassCodec
|
|
18
|
-
};
|
package/dist/chunk-RLGQ5PZZ.js
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
// src/pc/pc.proficiency-normalize.ts
|
|
2
|
-
var normKey = (s) => s.toLowerCase().replace(/[^a-z0-9]+/g, " ").trim().split(/\s+/).filter(Boolean).map((w) => w.endsWith("s") ? w.slice(0, -1) : w).sort().join(" ");
|
|
3
|
-
var toProfSlug = (s) => s.toLowerCase().replace(/’/g, "'").trim().replace(/\s+/g, "-");
|
|
4
|
-
var humanizeProficiency = (s) => s.replace(/-/g, " ").replace(/(^|\s)\w/g, (c) => c.toUpperCase());
|
|
5
|
-
var proficiencyLabel = (raw) => {
|
|
6
|
-
const text = raw.replace(/’/g, "'").trim().replace(/\s+/g, " ");
|
|
7
|
-
if (!/\s/.test(text) || text === text.toLowerCase()) return humanizeProficiency(toProfSlug(raw));
|
|
8
|
-
return text.charAt(0).toUpperCase() + text.slice(1);
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
export {
|
|
12
|
-
normKey,
|
|
13
|
-
toProfSlug,
|
|
14
|
-
humanizeProficiency,
|
|
15
|
-
proficiencyLabel
|
|
16
|
-
};
|
package/dist/chunk-RYLXAYIQ.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
parseFeat
|
|
3
|
-
} from "./chunk-7QN7XSAK.js";
|
|
4
|
-
|
|
5
|
-
// src/feat/feat.codec.ts
|
|
6
|
-
import yaml from "js-yaml";
|
|
7
|
-
var featCodec = {
|
|
8
|
-
parse(doc) {
|
|
9
|
-
return parseFeat(doc.body);
|
|
10
|
-
},
|
|
11
|
-
serialize(entity) {
|
|
12
|
-
return yaml.dump(entity, { lineWidth: -1, sortKeys: false });
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
featCodec
|
|
18
|
-
};
|
package/dist/chunk-S3YUXDSC.js
DELETED
|
@@ -1,278 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
imageField
|
|
3
|
-
} from "./chunk-UA5KS2PL.js";
|
|
4
|
-
|
|
5
|
-
// src/item/item.schema.ts
|
|
6
|
-
import { z } from "zod";
|
|
7
|
-
var tier1Conditions = [
|
|
8
|
-
z.object({ kind: z.literal("no_armor") }),
|
|
9
|
-
z.object({ kind: z.literal("no_shield") }),
|
|
10
|
-
z.object({ kind: z.literal("wielding_two_handed") }),
|
|
11
|
-
z.object({ kind: z.literal("is_class"), value: z.string() }),
|
|
12
|
-
z.object({ kind: z.literal("is_race"), value: z.string() }),
|
|
13
|
-
z.object({ kind: z.literal("is_subclass"), value: z.string() })
|
|
14
|
-
];
|
|
15
|
-
var tier2Conditions = [
|
|
16
|
-
z.object({ kind: z.literal("vs_creature_type"), value: z.string() }),
|
|
17
|
-
z.object({ kind: z.literal("vs_attack_type"), value: z.enum(["ranged", "melee"]) }),
|
|
18
|
-
z.object({ kind: z.literal("on_attack_type"), value: z.enum(["ranged", "melee"]) }),
|
|
19
|
-
z.object({ kind: z.literal("with_weapon_property"), value: z.string() }),
|
|
20
|
-
z.object({ kind: z.literal("vs_spell_save") })
|
|
21
|
-
];
|
|
22
|
-
var tier3Conditions = [
|
|
23
|
-
z.object({ kind: z.literal("lighting"), value: z.enum(["dim", "bright", "daylight", "darkness"]) }),
|
|
24
|
-
z.object({ kind: z.literal("underwater") }),
|
|
25
|
-
z.object({ kind: z.literal("movement_state"), value: z.enum(["flying", "swimming", "climbing", "mounted"]) })
|
|
26
|
-
];
|
|
27
|
-
var tier4Conditions = [
|
|
28
|
-
z.object({ kind: z.literal("has_condition"), value: z.string() }),
|
|
29
|
-
z.object({ kind: z.literal("is_concentrating") }),
|
|
30
|
-
z.object({ kind: z.literal("bloodied") })
|
|
31
|
-
];
|
|
32
|
-
var rawCondition = z.object({ kind: z.literal("raw"), text: z.string() });
|
|
33
|
-
var conditionSchema = z.lazy(
|
|
34
|
-
() => z.discriminatedUnion("kind", [
|
|
35
|
-
...tier1Conditions,
|
|
36
|
-
...tier2Conditions,
|
|
37
|
-
...tier3Conditions,
|
|
38
|
-
...tier4Conditions,
|
|
39
|
-
rawCondition,
|
|
40
|
-
z.object({ kind: z.literal("any_of"), conditions: z.array(conditionSchema) })
|
|
41
|
-
])
|
|
42
|
-
);
|
|
43
|
-
var conditionalBonusSchema = z.object({
|
|
44
|
-
value: z.number().int(),
|
|
45
|
-
when: z.array(conditionSchema)
|
|
46
|
-
});
|
|
47
|
-
var numberOrConditional = z.union([z.number().int(), conditionalBonusSchema]);
|
|
48
|
-
var abilityEnum = z.enum(["str", "dex", "con", "int", "wis", "cha"]);
|
|
49
|
-
var bonusesSchema = z.object({
|
|
50
|
-
ac: numberOrConditional.optional(),
|
|
51
|
-
weapon_attack: numberOrConditional.optional(),
|
|
52
|
-
weapon_damage: numberOrConditional.optional(),
|
|
53
|
-
spell_attack: numberOrConditional.optional(),
|
|
54
|
-
spell_save_dc: numberOrConditional.optional(),
|
|
55
|
-
saving_throws: numberOrConditional.optional(),
|
|
56
|
-
// Converter-measured (spec §4): 24 / 3 / 2 / 1 carriers. Same numberOrConditional
|
|
57
|
-
// shape as the six above, so a conditional arm is legal on these too.
|
|
58
|
-
spell_damage: numberOrConditional.optional(),
|
|
59
|
-
ability_check: numberOrConditional.optional(),
|
|
60
|
-
proficiency_bonus: numberOrConditional.optional(),
|
|
61
|
-
saving_throw_concentration: numberOrConditional.optional(),
|
|
62
|
-
ability_scores: z.object({
|
|
63
|
-
// partial: each ability is independently optional. z.record(enum, …) in
|
|
64
|
-
// Zod v4 treats every enum key as required, which doesn't match the
|
|
65
|
-
// data (e.g. Amulet of Health only sets `con: 19`).
|
|
66
|
-
static: z.object({
|
|
67
|
-
str: z.number().int().optional(),
|
|
68
|
-
dex: z.number().int().optional(),
|
|
69
|
-
con: z.number().int().optional(),
|
|
70
|
-
int: z.number().int().optional(),
|
|
71
|
-
wis: z.number().int().optional(),
|
|
72
|
-
cha: z.number().int().optional()
|
|
73
|
-
}).optional(),
|
|
74
|
-
bonus: z.object({
|
|
75
|
-
str: numberOrConditional.optional(),
|
|
76
|
-
dex: numberOrConditional.optional(),
|
|
77
|
-
con: numberOrConditional.optional(),
|
|
78
|
-
int: numberOrConditional.optional(),
|
|
79
|
-
wis: numberOrConditional.optional(),
|
|
80
|
-
cha: numberOrConditional.optional()
|
|
81
|
-
}).optional(),
|
|
82
|
-
// "choose `count` of `from`, each +`amount`" (6 measured leaves). `amount` is
|
|
83
|
-
// OPTIONAL: Lost Laboratory of Kwalish/Deck of Several Things carries
|
|
84
|
-
// {from: [all six], count: 1} with NO amount, and a required `amount` would
|
|
85
|
-
// refuse that document outright.
|
|
86
|
-
choose: z.array(z.strictObject({
|
|
87
|
-
from: z.array(abilityEnum),
|
|
88
|
-
count: z.number().int().positive(),
|
|
89
|
-
amount: z.number().int().optional()
|
|
90
|
-
})).optional()
|
|
91
|
-
}).optional(),
|
|
92
|
-
speed: z.object({
|
|
93
|
-
walk: numberOrConditional.optional(),
|
|
94
|
-
fly: z.union([numberOrConditional, z.literal("walk")]).optional(),
|
|
95
|
-
swim: numberOrConditional.optional(),
|
|
96
|
-
climb: numberOrConditional.optional()
|
|
97
|
-
}).optional()
|
|
98
|
-
});
|
|
99
|
-
var chargesSchema = z.object({
|
|
100
|
-
max: z.number().int(),
|
|
101
|
-
// Dice regained per recharge, e.g. "1d4 - 1" (68 carriers). Distinct from
|
|
102
|
-
// `recharge_amount`, which the canonical pipeline also emits as a string.
|
|
103
|
-
dice: z.string().optional(),
|
|
104
|
-
recharge: z.string().optional(),
|
|
105
|
-
recharge_amount: z.string().optional(),
|
|
106
|
-
destroy_on_empty: z.object({
|
|
107
|
-
roll: z.string(),
|
|
108
|
-
threshold: z.number().int(),
|
|
109
|
-
effect: z.string().optional()
|
|
110
|
-
}).optional()
|
|
111
|
-
});
|
|
112
|
-
var attachedSpellsSchema = z.object({
|
|
113
|
-
charges: z.record(z.string(), z.array(z.string())).optional(),
|
|
114
|
-
daily: z.record(z.string(), z.array(z.string())).optional(),
|
|
115
|
-
will: z.array(z.string()).optional(),
|
|
116
|
-
rest: z.record(z.string(), z.array(z.string())).optional(),
|
|
117
|
-
// `limited` = total uses with no recharge (item often consumed when empty).
|
|
118
|
-
// Distinct from `charges` (cost-per-cast) and `daily` (resets per day).
|
|
119
|
-
// Source canonical pipeline emits this for Necklace of Fireballs, Helm of
|
|
120
|
-
// Brilliance, Candle of Invocation, Efreeti Bottle. Key is total available
|
|
121
|
-
// uses (e.g. "9": ["fireball"] for the necklace's 9 beads).
|
|
122
|
-
limited: z.record(z.string(), z.array(z.string())).optional(),
|
|
123
|
-
// Converter-measured (spec §4): spells the item lists without a cost model (18),
|
|
124
|
-
// the casting ability for the item's attached spells (10), and ritual-only
|
|
125
|
-
// spells (1).
|
|
126
|
-
other: z.array(z.string()).optional(),
|
|
127
|
-
ability: z.string().optional(),
|
|
128
|
-
ritual: z.array(z.string()).optional()
|
|
129
|
-
});
|
|
130
|
-
var attunementTagSchema = z.union([
|
|
131
|
-
z.object({
|
|
132
|
-
class: z.string(),
|
|
133
|
-
subclass: z.string().optional(),
|
|
134
|
-
alignment: z.union([z.string(), z.array(z.string())]).optional()
|
|
135
|
-
}),
|
|
136
|
-
// alignment can be a single string OR an array of alignment-letter codes
|
|
137
|
-
// (e.g. ["G"] for good, ["L", "G"] for lawful good).
|
|
138
|
-
z.object({
|
|
139
|
-
alignment: z.union([z.string(), z.array(z.string())]),
|
|
140
|
-
race: z.string().optional()
|
|
141
|
-
}),
|
|
142
|
-
z.object({
|
|
143
|
-
race: z.string(),
|
|
144
|
-
alignment: z.union([z.string(), z.array(z.string())]).optional()
|
|
145
|
-
}),
|
|
146
|
-
z.object({ creature_type: z.string(), size: z.string().optional() }),
|
|
147
|
-
z.object({ spellcasting: z.boolean() }),
|
|
148
|
-
z.object({ background: z.string() }),
|
|
149
|
-
z.object({ psionics: z.boolean() }),
|
|
150
|
-
z.object({ int: z.number().int() }),
|
|
151
|
-
z.object({ skill_proficiency: z.array(z.string()) }),
|
|
152
|
-
z.object({ language_proficiency: z.array(z.string()) })
|
|
153
|
-
]);
|
|
154
|
-
var attunementCanonicalSchema = z.object({
|
|
155
|
-
required: z.boolean(),
|
|
156
|
-
restriction: z.string().optional(),
|
|
157
|
-
tags: z.array(attunementTagSchema).optional()
|
|
158
|
-
});
|
|
159
|
-
var grantsSchema = z.object({
|
|
160
|
-
proficiency: z.boolean().optional(),
|
|
161
|
-
languages: z.union([z.boolean(), z.array(z.string())]).optional(),
|
|
162
|
-
senses: z.object({
|
|
163
|
-
darkvision: z.number().optional(),
|
|
164
|
-
tremorsense: z.number().optional(),
|
|
165
|
-
truesight: z.number().optional(),
|
|
166
|
-
blindsight: z.number().optional()
|
|
167
|
-
}).optional()
|
|
168
|
-
});
|
|
169
|
-
var containerCapacitySchema = z.strictObject({
|
|
170
|
-
weight: z.array(z.number()).optional(),
|
|
171
|
-
item: z.array(z.record(z.string(), z.number())).optional(),
|
|
172
|
-
weightless: z.boolean().optional(),
|
|
173
|
-
volume: z.array(z.number()).optional()
|
|
174
|
-
});
|
|
175
|
-
var containerSchema = z.object({
|
|
176
|
-
capacity_weight: z.number().optional(),
|
|
177
|
-
holds_items: z.boolean().optional(),
|
|
178
|
-
pack_contents: z.array(z.string()).optional(),
|
|
179
|
-
pack_atomic: z.boolean().optional(),
|
|
180
|
-
capacity: containerCapacitySchema.optional()
|
|
181
|
-
});
|
|
182
|
-
var lightSchema = z.object({
|
|
183
|
-
bright_radius: z.number(),
|
|
184
|
-
dim_radius: z.number()
|
|
185
|
-
});
|
|
186
|
-
var lightEntrySchema = z.strictObject({
|
|
187
|
-
bright: z.number().optional(),
|
|
188
|
-
dim: z.number().optional(),
|
|
189
|
-
shape: z.string().optional()
|
|
190
|
-
});
|
|
191
|
-
var itemEntitySchema = z.object({
|
|
192
|
-
name: z.string().min(1),
|
|
193
|
-
slug: z.string().optional(),
|
|
194
|
-
type: z.string().optional(),
|
|
195
|
-
rarity: z.string().optional(),
|
|
196
|
-
base_item: z.string().optional(),
|
|
197
|
-
bonuses: bonusesSchema.optional(),
|
|
198
|
-
resist: z.array(z.string()).optional(),
|
|
199
|
-
immune: z.array(z.string()).optional(),
|
|
200
|
-
vulnerable: z.array(z.string()).optional(),
|
|
201
|
-
condition_immune: z.array(z.string()).optional(),
|
|
202
|
-
charges: z.union([chargesSchema, z.number().int().nonnegative()]).optional(),
|
|
203
|
-
attached_spells: attachedSpellsSchema.optional(),
|
|
204
|
-
attunement: z.union([attunementCanonicalSchema, z.boolean(), z.string()]).optional(),
|
|
205
|
-
grants: grantsSchema.optional(),
|
|
206
|
-
container: containerSchema.optional(),
|
|
207
|
-
light: z.union([lightSchema, z.array(lightEntrySchema).nonempty()]).optional(),
|
|
208
|
-
cursed: z.boolean().optional(),
|
|
209
|
-
sentient: z.boolean().optional(),
|
|
210
|
-
tattoo: z.boolean().optional(),
|
|
211
|
-
// 54 docs carry a LIST of classes that may use the item as a focus
|
|
212
|
-
// (e.g. ["Druid", "Ranger"]); 26 carry a single string, 2 a boolean.
|
|
213
|
-
focus: z.union([z.boolean(), z.string(), z.array(z.string())]).optional(),
|
|
214
|
-
tier: z.enum(["major", "minor"]).optional(),
|
|
215
|
-
damage: z.union([
|
|
216
|
-
z.object({
|
|
217
|
-
dice: z.string(),
|
|
218
|
-
type: z.string(),
|
|
219
|
-
versatile_dice: z.string().optional()
|
|
220
|
-
}),
|
|
221
|
-
z.string()
|
|
222
|
-
]).optional(),
|
|
223
|
-
weapon_category: z.string().optional(),
|
|
224
|
-
armor_category: z.string().optional(),
|
|
225
|
-
weight: z.union([z.number(), z.string()]).optional(),
|
|
226
|
-
cost: z.string().optional(),
|
|
227
|
-
source: z.string().optional(),
|
|
228
|
-
page: z.number().int().optional(),
|
|
229
|
-
edition: z.string().optional(),
|
|
230
|
-
description: z.string().optional(),
|
|
231
|
-
entries: z.array(z.unknown()).optional(),
|
|
232
|
-
effects: z.array(z.unknown()).optional(),
|
|
233
|
-
damage_riders: z.array(z.object({
|
|
234
|
-
amount: z.string(),
|
|
235
|
-
damage_type: z.string(),
|
|
236
|
-
applies_to: z.enum(["weapon", "spell", "all"]).optional(),
|
|
237
|
-
condition: z.string().optional()
|
|
238
|
-
})).optional(),
|
|
239
|
-
// Scroll & unidentified-item markers (Phase 4). Declared here so they survive
|
|
240
|
-
// parse (the schema strips undeclared keys) and are ALSO listed in the
|
|
241
|
-
// parser's KNOWN_KEYS so they are not additionally copied into `raw`.
|
|
242
|
-
scroll_level: z.number().optional(),
|
|
243
|
-
unidentified: z.boolean().optional(),
|
|
244
|
-
masked_category: z.string().optional(),
|
|
245
|
-
// Converter-modelled top-level keys (spec §4). Declared here so they survive
|
|
246
|
-
// parse AND listed in the parser's KNOWN_KEYS so they are not additionally
|
|
247
|
-
// copied into `raw` — the schema and the raw-bag are independent gates.
|
|
248
|
-
// `modify_speed` (124 carriers): equal 101 (string-valued, e.g. {fly: "walk"}) ·
|
|
249
|
-
// static 20 · multiply 3 · bonus 1 (keyed "*").
|
|
250
|
-
modify_speed: z.strictObject({
|
|
251
|
-
equal: z.record(z.string(), z.string()).optional(),
|
|
252
|
-
static: z.record(z.string(), z.number()).optional(),
|
|
253
|
-
multiply: z.record(z.string(), z.number()).optional(),
|
|
254
|
-
bonus: z.record(z.string(), z.number()).optional()
|
|
255
|
-
}).optional(),
|
|
256
|
-
// Carried by all 6,046 converter item docs, ALWAYS as the empty string today:
|
|
257
|
-
// `.min(1)` is forbidden here.
|
|
258
|
-
rendering_hint: z.string().optional(),
|
|
259
|
-
// The icon key (I3): a key of the renderer's icon set or a Lucide name; itemIconKey reads it first.
|
|
260
|
-
icon: z.string().optional(),
|
|
261
|
-
has_fluff: z.boolean().optional(),
|
|
262
|
-
has_fluff_images: z.boolean().optional(),
|
|
263
|
-
// Already `.optional()` at its source — never append a second one.
|
|
264
|
-
image: imageField,
|
|
265
|
-
raw: z.record(z.string(), z.unknown()).optional(),
|
|
266
|
-
// Legacy fields preserved
|
|
267
|
-
damage_dice: z.string().optional(),
|
|
268
|
-
damage_type: z.string().optional(),
|
|
269
|
-
properties: z.array(z.string()).optional(),
|
|
270
|
-
recharge: z.string().optional(),
|
|
271
|
-
curse: z.boolean().optional()
|
|
272
|
-
});
|
|
273
|
-
|
|
274
|
-
export {
|
|
275
|
-
conditionSchema,
|
|
276
|
-
containerSchema,
|
|
277
|
-
itemEntitySchema
|
|
278
|
-
};
|
package/dist/chunk-S7REMWW4.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// src/pc/conditions.constants.ts
|
|
2
|
-
var CONDITION_SLUGS = [
|
|
3
|
-
"blinded",
|
|
4
|
-
"charmed",
|
|
5
|
-
"deafened",
|
|
6
|
-
"frightened",
|
|
7
|
-
"grappled",
|
|
8
|
-
"incapacitated",
|
|
9
|
-
"invisible",
|
|
10
|
-
"paralyzed",
|
|
11
|
-
"petrified",
|
|
12
|
-
"poisoned",
|
|
13
|
-
"prone",
|
|
14
|
-
"restrained",
|
|
15
|
-
"stunned",
|
|
16
|
-
"unconscious"
|
|
17
|
-
];
|
|
18
|
-
|
|
19
|
-
export {
|
|
20
|
-
CONDITION_SLUGS
|
|
21
|
-
};
|