@archivist-gg/dnd5e 0.3.19 → 0.3.26
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-2NUDWOFG.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-4SYAKWY4.js +1 -0
- package/dist/chunk-56JK6VCL.js +1 -0
- package/dist/chunk-5XDCM6YK.js +1 -0
- package/dist/chunk-63YJPWTM.js +1 -0
- package/dist/chunk-6R46KYGU.js +1 -0
- package/dist/chunk-6W253VHH.js +1 -0
- package/dist/chunk-72PRMZRD.js +1 -0
- package/dist/chunk-757KM22B.js +1 -0
- package/dist/chunk-7EL3GWWJ.js +1 -0
- package/dist/chunk-7FPQJDFD.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-BREHZNTL.js +1 -0
- package/dist/chunk-BZ6BGGZS.js +1 -0
- package/dist/chunk-CAPYNIGK.js +1 -0
- package/dist/chunk-CCAVZANF.js +1 -0
- package/dist/chunk-CCFIINBA.js +1 -0
- package/dist/chunk-CEHL7PPC.js +1 -0
- package/dist/chunk-CMIEZQL4.js +1 -0
- package/dist/chunk-CNMHADNV.js +1 -0
- package/dist/chunk-CSTAQQGX.js +1 -0
- package/dist/chunk-DTB7YBMZ.js +1 -0
- package/dist/chunk-DVUXUIPV.js +1 -0
- package/dist/chunk-DZITM5AG.js +1 -0
- package/dist/chunk-E3MS4M3N.js +1 -0
- package/dist/chunk-E7KFJLDR.js +1 -0
- package/dist/chunk-EAARMPCW.js +1 -0
- package/dist/chunk-EPA24PVZ.js +1 -0
- package/dist/chunk-ETDMOGFO.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-GD7WRCNH.js +1 -0
- package/dist/chunk-GGQDQSIF.js +1 -0
- package/dist/chunk-GIQLIBC7.js +1 -0
- package/dist/chunk-HX7WBOKR.js +1 -0
- package/dist/chunk-I26FHSI6.js +1 -0
- package/dist/chunk-IHPLT2ZT.js +1 -0
- package/dist/chunk-J3RP5C7L.js +1 -0
- package/dist/chunk-J5GL6FLP.js +1 -0
- package/dist/chunk-JXDX2DKF.js +1 -0
- package/dist/chunk-KEXSF3CH.js +1 -0
- package/dist/chunk-KM75CC6Q.js +1 -0
- package/dist/chunk-L2DXF7YS.js +1 -0
- package/dist/chunk-LHH5XSEA.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-MGGKZGLG.js +1 -0
- package/dist/chunk-NEMX7QGG.js +1 -0
- package/dist/chunk-NIWLD33X.js +1 -0
- package/dist/chunk-NU2Z7MTS.js +1 -0
- package/dist/chunk-NYPH7RQN.js +1 -0
- package/dist/chunk-NYTR6NJS.js +1 -0
- package/dist/chunk-O2QZ73GA.js +1 -0
- package/dist/chunk-O776WL7O.js +1 -0
- package/dist/chunk-ONCXJMJM.js +1 -0
- package/dist/chunk-OTRH62HY.js +1 -0
- package/dist/chunk-PFQPP77Q.js +1 -0
- package/dist/chunk-PKIMOVQG.js +1 -0
- package/dist/chunk-PZ3ZZ5H5.js +1 -0
- package/dist/chunk-PZ4L2EEG.js +1 -0
- package/dist/chunk-QMEKQTUT.js +1 -0
- package/dist/chunk-QVWT67WA.js +1 -0
- package/dist/chunk-RE5Z5RNK.js +1 -0
- package/dist/chunk-RHIEOYDX.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-SFK57JAA.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-UBUKCRZ3.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-VVJXZZ4Z.js +1 -0
- package/dist/chunk-WAUNLUFQ.js +1 -0
- package/dist/chunk-X22SISGM.js +1 -0
- package/dist/chunk-XKJXT2PN.js +1 -0
- package/dist/chunk-XPF53K54.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/chunk-ZS5BMNXC.js +1 -0
- package/dist/chunk-ZVL5FXXO.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 +4 -3
- 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 +3 -30
- package/dist/dnd/amount-text.js +1 -15
- 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 +0 -15
- package/dist/entities/registry-revision.js +1 -10
- 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 +46 -4
- package/dist/feat/feat.schema.js +1 -10
- package/dist/feat/feat.types.d.ts +0 -6
- package/dist/index.js +45 -141495
- 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 +5 -0
- package/dist/item/item.schema.js +1 -11
- package/dist/item/item.types.d.ts +5 -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 +44 -3
- 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 +0 -24
- package/dist/pc/pc.additional-spells.js +1 -26
- package/dist/pc/pc.amount-bindings.d.ts +3 -28
- package/dist/pc/pc.amount-bindings.js +1 -28
- 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 +6 -145
- package/dist/pc/pc.decision-engine.js +1 -55
- 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 +19 -58
- package/dist/pc/pc.entry-overrides.js +1 -41
- package/dist/pc/pc.equipment.d.ts +2 -22
- package/dist/pc/pc.equipment.js +1 -34
- package/dist/pc/pc.feature-effects.d.ts +27 -281
- package/dist/pc/pc.feature-effects.js +1 -39
- 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 -65
- package/dist/pc/pc.item-effects.d.ts +19 -0
- package/dist/pc/pc.item-effects.js +1 -0
- package/dist/pc/pc.member-choices.d.ts +3 -66
- package/dist/pc/pc.member-choices.js +1 -39
- package/dist/pc/pc.parser.js +1 -58
- package/dist/pc/pc.pools.d.ts +7 -10
- package/dist/pc/pc.pools.js +1 -27
- package/dist/pc/pc.proficiencies.d.ts +0 -40
- package/dist/pc/pc.proficiencies.js +1 -156
- package/dist/pc/pc.proficiency-grants.d.ts +3 -27
- package/dist/pc/pc.proficiency-normalize.d.ts +0 -35
- package/dist/pc/pc.proficiency-normalize.js +1 -18
- 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 +8 -131
- package/dist/pc/pc.recalc.js +1 -1042
- package/dist/pc/pc.resolver.d.ts +9 -107
- package/dist/pc/pc.resolver.js +1 -60
- 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 -231
- package/dist/pc/pc.schema.d.ts +20 -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 +36 -0
- package/dist/pc/pc.spell-scope.d.ts +0 -16
- 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 +3 -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 +59 -374
- 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 +44 -3
- 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 +11 -23
- 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-2LULMQTF.js +0 -14
- package/dist/chunk-3LWMFYKS.js +0 -57
- package/dist/chunk-3SFGWFVQ.js +0 -19
- package/dist/chunk-3SIUAFDQ.js +0 -18
- package/dist/chunk-3TM34RSJ.js +0 -23
- package/dist/chunk-4J6DS3EJ.js +0 -30
- package/dist/chunk-4U55VNC7.js +0 -22
- package/dist/chunk-5GKJAUMX.js +0 -59
- package/dist/chunk-5JXFJ5AU.js +0 -26
- package/dist/chunk-64VNLMSG.js +0 -375
- package/dist/chunk-656QCX4U.js +0 -22
- package/dist/chunk-6GNXYAYP.js +0 -25
- package/dist/chunk-6PXTNCBP.js +0 -133
- package/dist/chunk-6X2NV665.js +0 -33
- package/dist/chunk-7Q2VPKCD.js +0 -181
- package/dist/chunk-7XJHI5H5.js +0 -709
- package/dist/chunk-A54HHCWW.js +0 -67
- package/dist/chunk-B2QHP6UF.js +0 -159
- package/dist/chunk-B3DP42OM.js +0 -55
- package/dist/chunk-BJGOSM76.js +0 -18
- package/dist/chunk-BJWSOQUC.js +0 -133
- package/dist/chunk-CJYCVNW2.js +0 -7
- package/dist/chunk-CM5CWO4K.js +0 -735
- package/dist/chunk-DEEHHLAP.js +0 -271
- package/dist/chunk-DPUJDOKV.js +0 -365
- package/dist/chunk-EJD47JHL.js +0 -1838
- package/dist/chunk-EJP263OP.js +0 -186
- package/dist/chunk-EVMUJYUD.js +0 -195
- package/dist/chunk-EYX4JMAU.js +0 -101
- package/dist/chunk-FC4IGH5Y.js +0 -18
- package/dist/chunk-FJYBLXV7.js +0 -89
- package/dist/chunk-FMUD3LDV.js +0 -19
- package/dist/chunk-FMYWORTP.js +0 -93
- package/dist/chunk-FVXLP7P3.js +0 -18
- package/dist/chunk-G6MHJDVT.js +0 -41
- package/dist/chunk-GVWEFECG.js +0 -18
- package/dist/chunk-HHBD4SQ6.js +0 -24
- package/dist/chunk-HS6FIOLP.js +0 -52
- package/dist/chunk-HY2SRSVM.js +0 -23
- package/dist/chunk-IHE6KVC3.js +0 -13
- package/dist/chunk-IN4M4X7P.js +0 -34
- package/dist/chunk-IUAAXXNO.js +0 -58
- package/dist/chunk-JXWNXIIZ.js +0 -219
- 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-LHZXYFBU.js +0 -94
- package/dist/chunk-LICYHPI3.js +0 -237
- package/dist/chunk-LNT64X7C.js +0 -81
- package/dist/chunk-LSLSG67V.js +0 -31
- package/dist/chunk-LVQLWRCU.js +0 -15
- package/dist/chunk-MYY2C5MB.js +0 -233
- package/dist/chunk-NKZMQV2C.js +0 -19
- package/dist/chunk-NTU2DXNG.js +0 -355
- package/dist/chunk-NXUY5XQN.js +0 -1062
- package/dist/chunk-NZO7M5GV.js +0 -18
- package/dist/chunk-OOL4KMG2.js +0 -71
- package/dist/chunk-OOSRUJBI.js +0 -19
- package/dist/chunk-PDJSUH24.js +0 -110
- package/dist/chunk-PTXBIDG7.js +0 -63
- package/dist/chunk-PVCEA4HZ.js +0 -6
- package/dist/chunk-QA3YCOML.js +0 -101
- package/dist/chunk-QFWQKS3M.js +0 -110
- package/dist/chunk-QS5L5YTJ.js +0 -24
- package/dist/chunk-QYZV2MQA.js +0 -97
- package/dist/chunk-RD2MID3M.js +0 -292
- package/dist/chunk-S3YUXDSC.js +0 -278
- package/dist/chunk-S7REMWW4.js +0 -21
- package/dist/chunk-TOM66P2P.js +0 -38
- package/dist/chunk-TRBGC4ZG.js +0 -112
- package/dist/chunk-UA5KS2PL.js +0 -26
- package/dist/chunk-UJCK5IW4.js +0 -187
- package/dist/chunk-UNYR5GLI.js +0 -23
- package/dist/chunk-UZXG6QSY.js +0 -58
- package/dist/chunk-VN5DLURA.js +0 -158
- package/dist/chunk-VP5TIXDK.js +0 -178
- package/dist/chunk-VPYBK2MG.js +0 -18
- package/dist/chunk-VTTA2ALZ.js +0 -16
- package/dist/chunk-W6GC6OKK.js +0 -16
- package/dist/chunk-WELIKLZF.js +0 -256
- package/dist/chunk-WOHX7YTH.js +0 -165
- 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-XTEFPUSN.js +0 -23
- package/dist/chunk-YBLDE5CG.js +0 -42
- package/dist/chunk-YDGMBMYI.js +0 -25
- package/dist/chunk-YHYTW5QA.js +0 -20
- package/dist/chunk-ZCTUYGNV.js +0 -26
- package/dist/chunk-ZDAEGJH4.js +0 -102
- package/dist/chunk-ZJXSXVFP.js +0 -58
- package/dist/chunk-ZOWKWMD2.js +0 -18
- package/dist/chunk-ZUQW5VBZ.js +0 -89
|
@@ -4,13 +4,7 @@ import type { ActionCost, ResetTrigger, ResourceConsumption } from "./resource.j
|
|
|
4
4
|
import type { Duration } from "../schemas/duration-schema.js";
|
|
5
5
|
import type { Edition } from "./edition.js";
|
|
6
6
|
import type { AdditionalSpellsEntry, ProgressionEntry } from "../schemas/entity-extras-schema.js";
|
|
7
|
-
|
|
8
|
-
* Documentation-only union of the canonical SRD feature types. The
|
|
9
|
-
* `feature_type` field is now an open string (see {@link OptionalFeatureEntity})
|
|
10
|
-
* so homebrew categories parse; this union is kept purely as a reference list.
|
|
11
|
-
*/
|
|
12
|
-
export type OptionalFeatureKind = "invocation" | "fighting_style" | "metamagic" | "maneuver" | "infusion" | "artificer_plan" | "pact_boon";
|
|
13
|
-
/** A class/subclass named reference carried by a level prerequisite; mirrors namedRefSchema. */
|
|
7
|
+
export type OptionalFeatureKind = "invocation" | "fighting_style" | "metamagic" | "maneuver" | "infusion" | "pact_boon";
|
|
14
8
|
export type OptionalFeatureNamedRef = {
|
|
15
9
|
name: string;
|
|
16
10
|
source?: string;
|
|
@@ -46,7 +40,6 @@ export type OptionalFeaturePrerequisite = {
|
|
|
46
40
|
entry?: string;
|
|
47
41
|
entry_summary?: string;
|
|
48
42
|
};
|
|
49
|
-
/** ART-a (spec §4.2). */
|
|
50
43
|
export interface FilterSpec {
|
|
51
44
|
rarity: string[];
|
|
52
45
|
types?: string[];
|
|
@@ -89,7 +82,6 @@ export interface InfuseItem {
|
|
|
89
82
|
recharge_amount?: string;
|
|
90
83
|
};
|
|
91
84
|
action?: ActionCost;
|
|
92
|
-
/** ART-c1 (R-3 a): the Actions row's range ("Self"); absent draws no range. */
|
|
93
85
|
range?: string;
|
|
94
86
|
}
|
|
95
87
|
export interface InfuseTarget {
|
|
@@ -121,53 +113,31 @@ export interface OptionalFeatureEntity {
|
|
|
121
113
|
name: string;
|
|
122
114
|
edition: Edition;
|
|
123
115
|
source: string;
|
|
124
|
-
/** Open string category (e.g. "invocation"); see {@link OptionalFeatureKind} for canonical SRD values. */
|
|
125
116
|
feature_type: string;
|
|
126
117
|
description: string;
|
|
127
118
|
prerequisites: OptionalFeaturePrerequisite[];
|
|
128
|
-
/** Wikilinks to classes/subclasses that can pick this option. */
|
|
129
119
|
available_to: string[];
|
|
130
|
-
/** Mechanical effects mirrored on Feat — same shape. */
|
|
131
120
|
effects: FeatureEffect[];
|
|
132
|
-
/** Optional action economy when the option grants an active ability. */
|
|
133
121
|
action_cost?: ActionCost | null;
|
|
134
|
-
/** Optional uses tracker. */
|
|
135
122
|
uses?: {
|
|
136
123
|
max: number | string;
|
|
137
124
|
recharge: ResetTrigger;
|
|
138
125
|
} | null;
|
|
139
|
-
/** Resource cost to use this option (e.g. burn a Seal). */
|
|
140
126
|
consumes?: ResourceConsumption | null;
|
|
141
|
-
/** How long the granted effect lasts (rendered as a label in Phase 2). */
|
|
142
127
|
duration?: Duration | null;
|
|
143
|
-
/** Always-on marker; renders a "Passive" tag. */
|
|
144
128
|
passive?: boolean;
|
|
145
|
-
/** Phase 3 activatable buffs: when true, the boon's effects fold only while its
|
|
146
|
-
* slug is present in `Character.state.active_buffs` (toggled in the PoolTab). */
|
|
147
129
|
activatable?: boolean;
|
|
148
|
-
/** Converter extras declared by optional-feature.schema.ts §2.5; all optional.
|
|
149
|
-
* `rendering_hint` is the ONE of these whose VALUES are load-bearing (88 records carry a
|
|
150
|
-
* real marker such as `dice-pool`); reading it is G4's row, declaring it is this one's. */
|
|
151
130
|
rendering_hint?: string;
|
|
152
|
-
/** `band` = also drawn in the header strip. Absent/`tab` = the Resources tab only. */
|
|
153
131
|
surface?: "band" | "tab";
|
|
154
132
|
additional_spells?: AdditionalSpellsEntry[];
|
|
155
133
|
is_class_feature_variant?: boolean;
|
|
156
134
|
has_fluff_images?: boolean;
|
|
157
135
|
feat_progression?: ProgressionEntry[];
|
|
158
136
|
optionalfeature_progression?: ProgressionEntry[];
|
|
159
|
-
/** One wikilink, or an array of them for the multi-fluff-image emit. */
|
|
160
137
|
image?: string | string[];
|
|
161
|
-
/** ART-a (spec §4.1): a pick is a COPY `<note slug>#<param>`; needs `options` and `item_choice`. */
|
|
162
138
|
repeatable?: true;
|
|
163
|
-
/** `learn`: the param is the item's FULL slug (TCE); `create`: the param is a row key, the item chosen at Create (EFA). */
|
|
164
139
|
item_choice?: "learn" | "create";
|
|
165
|
-
/** The table a copy's param must satisfy (spec §4.2). */
|
|
166
140
|
options?: OptionRow[];
|
|
167
|
-
/** This member infuses an existing object; its effect is an item-vocabulary overlay (spec §4.2). */
|
|
168
141
|
infuse?: InfuseBlock;
|
|
169
|
-
/** D2b-A (design §2.2 step 1): the member's OWN choices (Lessons of the First Ones' Origin feat, Superior Technique's
|
|
170
|
-
* maneuver, Pact of the Tome's cantrips and rituals), in the same `Choice` vocabulary features and feats use. Absent,
|
|
171
|
-
* the engine derives them from the raw keys the note already carries (`memberChoices`, `pc.member-choices.ts`). */
|
|
172
142
|
choices?: Choice[];
|
|
173
143
|
}
|
package/dist/types/resource.d.ts
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
/** `either` = recovered by a short OR a long rest (R4-G3a §8.2; the 43 "short or
|
|
2
|
-
* long rest" rows). Kept in step with `resetTriggerEnum` in schemas/resource-schema.ts. */
|
|
3
1
|
export type ResetTrigger = "short-rest" | "long-rest" | "either" | "dawn" | "dusk" | "turn" | "round" | "custom";
|
|
4
2
|
export type ActionCost = "action" | "bonus-action" | "reaction" | "free" | "special";
|
|
5
3
|
export interface ResourceDie {
|
|
@@ -13,17 +11,6 @@ export interface ResourceRecovery {
|
|
|
13
11
|
action?: ActionCost;
|
|
14
12
|
uses?: number;
|
|
15
13
|
reset: ResetTrigger;
|
|
16
|
-
/** The recovery KIND; absent = `uses` (R4-G4 §7, UR2), applied by the RESOLVER
|
|
17
|
-
* (pc/pc.resources.ts `resolveRecovery`) and never by a schema default, because
|
|
18
|
-
* the sheet reads RAW entities. The CARRIERS, re-measured 2026-09-05 after R4-G4
|
|
19
|
-
* T2b's regen shipped the bundle (this sentence was authored at T2, BEFORE that
|
|
20
|
-
* regen, and said ZERO, which it no longer is): `grep -rl "restores:" --include='*.md'`
|
|
21
|
-
* returns the TWO bundle Wizard notes (`SRD 2024/Classes/Wizard.md` and
|
|
22
|
-
* `SRD 5e/Classes/Wizard.md`), whose Arcane Recovery rows T2b's overlay stamps
|
|
23
|
-
* `spell-slots` and which §7.1 measured as the only spell-slot recoveries in shipped
|
|
24
|
-
* data; the embedded `.compendium-bundle/index.json` carries the key on one line for
|
|
25
|
-
* the same two rows; the converter corpus carries it on NO note. Kept in step with
|
|
26
|
-
* `resourceSchema.recovery` in schemas/resource-schema.ts. */
|
|
27
14
|
restores?: "uses" | "spell-slots";
|
|
28
15
|
}
|
|
29
16
|
export interface ResourceScaleStep {
|
|
@@ -41,24 +28,17 @@ export interface Resource {
|
|
|
41
28
|
scales_at?: ResourceScaleStep[];
|
|
42
29
|
die?: ResourceDie;
|
|
43
30
|
reset: ResetTrigger;
|
|
44
|
-
/** Presentation, carried and never interpreted by the engine: which control draws this resource.
|
|
45
|
-
* The renderer owns the hint → component table. */
|
|
46
31
|
rendering_hint?: string;
|
|
47
|
-
/** `band` = also drawn in the header strip; absent = the Resources tab alone. */
|
|
48
32
|
surface?: "band" | "tab";
|
|
49
33
|
consumes?: ResourceConsumesLink;
|
|
50
34
|
recovery?: ResourceRecovery[];
|
|
35
|
+
equivalent_ids?: string[];
|
|
51
36
|
}
|
|
52
37
|
export interface ResourceConsumption {
|
|
53
38
|
source?: "resource" | "class-column" | "attack-dice" | "spell-slots";
|
|
54
39
|
resource?: string;
|
|
55
40
|
column?: string;
|
|
56
|
-
/** The MINIMUM spend when `amount_max` is present, otherwise the exact spend. */
|
|
57
41
|
amount: number;
|
|
58
|
-
/** Upper bound of a RANGE spend (`amount` .. `amount_max`), int and positive.
|
|
59
|
-
* DECLARED only in R4-G3a §9: zero emitted carriers, zero readers; spending a
|
|
60
|
-
* range is G4's. Kept in step with `resourceConsumptionSchema` in
|
|
61
|
-
* schemas/resource-schema.ts, whose refine is undefined-safe. */
|
|
62
42
|
amount_max?: number;
|
|
63
43
|
expend_condition?: "roll_succeeds" | "roll_fails" | "target_takes_damage" | "always";
|
|
64
44
|
free_uses?: {
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/** ART-a (spec §4.5): the at-once counter of an item-bound pool; its defaults are applied at read (`poolActiveWords`). */
|
|
2
1
|
export interface PoolActive {
|
|
3
2
|
column: string;
|
|
4
3
|
label: string;
|
|
@@ -7,8 +6,6 @@ export interface PoolActive {
|
|
|
7
6
|
create_label?: string;
|
|
8
7
|
create_verb?: string;
|
|
9
8
|
}
|
|
10
|
-
/** A (sub)class-declared selectable pool (e.g. Interdict Boons). The engine is
|
|
11
|
-
* generic: every game-specific string lives here in data, never in code. */
|
|
12
9
|
export interface SelectionPool {
|
|
13
10
|
id: string;
|
|
14
11
|
label: string;
|
|
@@ -19,19 +16,14 @@ export interface SelectionPool {
|
|
|
19
16
|
available_to: "self";
|
|
20
17
|
};
|
|
21
18
|
};
|
|
22
|
-
/** Pick count read from the owning class table column at the current level. `label` is the known-counter word,
|
|
23
|
-
* read through `poolCountLabel` (absent reads "Known", ART-a spec §4.5). */
|
|
24
19
|
count: {
|
|
25
20
|
column: string;
|
|
26
21
|
label?: string;
|
|
27
22
|
};
|
|
28
23
|
replaceable?: boolean;
|
|
29
|
-
/** ART-a (spec §4.5): the at-once counter (Infused Items, Magic Items). */
|
|
30
24
|
active?: PoolActive;
|
|
31
|
-
/** ART-a (spec §4.5): a resource id the tab head shows when the pool spends none of its own. */
|
|
32
25
|
head_resource?: string;
|
|
33
26
|
}
|
|
34
|
-
/** Subclass auto-grants that extend a named pool and do NOT count toward picks. */
|
|
35
27
|
export interface PoolGrant {
|
|
36
28
|
pool: string;
|
|
37
29
|
grants: Array<{
|
|
@@ -39,24 +31,8 @@ export interface PoolGrant {
|
|
|
39
31
|
at_level: number;
|
|
40
32
|
}>;
|
|
41
33
|
}
|
|
42
|
-
/** Presentation hint for a data-declared tab. `dice-pool` / `point-pool` are DERIVED from the
|
|
43
|
-
* members' `rendering_hint` at resolve time onto `ResolvedPool.layout` (pc/pool-layout.ts), and that
|
|
44
|
-
* derivation is UNCONDITIONAL: it runs whether or not the declaration carries a `layout`. R4-G4 T5
|
|
45
|
-
* LANDED the precedence in the plugin: `TabsContainer`'s dynamic-pool-tab loop reads the AUTHORED
|
|
46
|
-
* value first, then `ResolvedPool.layout`. Since PT (spec §9) every pool tab draws one table and the value
|
|
47
|
-
* picks only the tab's HEAD (`poolPresentation`); `spell-like` and `blocks` still parse and are ignored.
|
|
48
|
-
* R4-G5 CLOSED that list, and NOT by adding values: `pool-selection` and `stance` never get a layout value
|
|
49
|
-
* (measured, spec §10: the three `stance`-hinted documents are field-identical to three unhinted siblings, and
|
|
50
|
-
* `pool-selection`'s meaning is delivered by `spell-like` plus the §5 head), and `granted-die-to-ally` is a
|
|
51
|
-
* PER-ROW affordance (`EntryAffordance` below), never a pool layout: mapping it here would bury four maneuvers
|
|
52
|
-
* under 39 on one vote of 43. This union keeps its four members and `RENDERING_HINT_LAYOUT` its two keys. */
|
|
53
34
|
export type PoolLayout = "spell-like" | "blocks" | "dice-pool" | "point-pool";
|
|
54
|
-
/** A PER-ENTRY affordance derived from ONE optional feature's own `rendering_hint` (R4-G5 §4.2.1). The sibling of
|
|
55
|
-
* `PoolLayout`, and deliberately not part of it: a layout is a POOL-level MAJORITY vote, so a hint carried by
|
|
56
|
-
* four of 43 maneuvers could never win one, and mapping it would be a monotone loss for the other 39. The table,
|
|
57
|
-
* the derivation and the caption live in `pc/pool-layout.ts`. ONE member today. */
|
|
58
35
|
export type EntryAffordance = "granted-die";
|
|
59
|
-
/** A data-declared tab that renders a pool (one generic pool-tab per declaration). */
|
|
60
36
|
export interface TabDecl {
|
|
61
37
|
id: string;
|
|
62
38
|
label: string;
|
|
@@ -4,7 +4,6 @@ export declare const MASTERY: Record<string, {
|
|
|
4
4
|
gist: string;
|
|
5
5
|
}>;
|
|
6
6
|
export declare function masteryLabel(slug: string): string | undefined;
|
|
7
|
-
/** One-line effect gist for a mastery slug (or undefined for an unknown slug). */
|
|
8
7
|
export declare function masteryGist(slug: string): string | undefined;
|
|
9
8
|
export declare function masteryDerived(slug: string, abilityMod: number, proficiencyBonus: number): {
|
|
10
9
|
label: string;
|
|
@@ -1,15 +1,4 @@
|
|
|
1
1
|
import type { WeaponEntity } from "./weapon.types.js";
|
|
2
|
-
/** The two attack modes a weapon supports, derived from data the SRD pipeline
|
|
3
|
-
* actually preserves. Since dnd5e 0.3.13 the SRD data files the throwable
|
|
4
|
-
* MELEE weapons (dagger/spear/handaxe/javelin/light hammer/trident) as
|
|
5
|
-
* `*-melee`, but older SRD data, imported records and homebrew can still file
|
|
6
|
-
* them as `*-ranged` (by their thrown range), so the melee/ranged split is
|
|
7
|
-
* reconstructed here instead of trusted: a category-ranged weapon is PURE
|
|
8
|
-
* ranged only when it needs ammunition or loading, or is one of the two
|
|
9
|
-
* genuinely-ranged thrown weapons (dart, net: a closed SRD set; a homebrew
|
|
10
|
-
* weapon whose bare slug is exactly "dart"/"net" is force-classified pure
|
|
11
|
-
* ranged). Everything else category-ranged is a throwable melee weapon.
|
|
12
|
-
* `reach` is 5 ft., +5 with the reach property. */
|
|
13
2
|
export interface WeaponRangeModes {
|
|
14
3
|
melee: {
|
|
15
4
|
reach: number;
|
|
@@ -1,12 +1,3 @@
|
|
|
1
1
|
import type { DocCodec } from "@archivist-gg/core";
|
|
2
2
|
import type { WeaponEntity } from "./weapon.types.js";
|
|
3
|
-
/**
|
|
4
|
-
* Normalizing codec (0c.1a). `parse` delegates to `parseWeapon`, which lifts
|
|
5
|
-
* embedded-string `properties` (e.g. `versatile (1d10)`, `thrown (range
|
|
6
|
-
* 20/60)`) into structured fields, validates against `weaponEntitySchema`
|
|
7
|
-
* (injecting the `properties: []` default), and captures any unknown top-level
|
|
8
|
-
* keys into `entity.raw`. `serialize` stays `yaml.dump` (the edit-save path
|
|
9
|
-
* uses obsidian's separate serializer; gate (d) verifies `yaml.dump`
|
|
10
|
-
* round-trips through `parseWeapon`).
|
|
11
|
-
*/
|
|
12
3
|
export declare const weaponCodec: DocCodec<WeaponEntity>;
|
|
@@ -1,9 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
weaponCodec
|
|
3
|
-
} from "../chunk-K5NJBTE2.js";
|
|
4
|
-
import "../chunk-XCFC7LGF.js";
|
|
5
|
-
import "../chunk-5GKJAUMX.js";
|
|
6
|
-
import "../chunk-UA5KS2PL.js";
|
|
7
|
-
export {
|
|
8
|
-
weaponCodec
|
|
9
|
-
};
|
|
1
|
+
import{weaponCodec}from"../chunk-4GN3GYMP.js";import"../chunk-BZ6BGGZS.js";import"../chunk-LJNT3PJP.js";import"../chunk-I26FHSI6.js";export{weaponCodec};
|
|
@@ -1,8 +1 @@
|
|
|
1
|
-
import
|
|
2
|
-
parseWeapon
|
|
3
|
-
} from "../chunk-XCFC7LGF.js";
|
|
4
|
-
import "../chunk-5GKJAUMX.js";
|
|
5
|
-
import "../chunk-UA5KS2PL.js";
|
|
6
|
-
export {
|
|
7
|
-
parseWeapon
|
|
8
|
-
};
|
|
1
|
+
import{parseWeapon}from"../chunk-BZ6BGGZS.js";import"../chunk-LJNT3PJP.js";import"../chunk-I26FHSI6.js";export{parseWeapon};
|
|
@@ -34,13 +34,10 @@ export interface WeaponEntity {
|
|
|
34
34
|
page?: number;
|
|
35
35
|
edition: Edition;
|
|
36
36
|
entries?: unknown[];
|
|
37
|
-
/** Carried as the empty string on every converter weapon carrier today (98). */
|
|
38
37
|
rendering_hint?: string;
|
|
39
|
-
/** The icon key (I3): a key of the renderer's icon set or a Lucide name. */
|
|
40
38
|
icon?: string;
|
|
41
39
|
has_fluff?: boolean;
|
|
42
40
|
has_fluff_images?: boolean;
|
|
43
|
-
/** One wikilink, or an array for >= 2 fluff images (images-ON emit). */
|
|
44
41
|
image?: z.infer<typeof imageField>;
|
|
45
42
|
raw?: Record<string, unknown>;
|
|
46
43
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@archivist-gg/dnd5e",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"license": "
|
|
3
|
+
"version": "0.3.26",
|
|
4
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"access": "public"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
}
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@archivist-gg/core": "^0.1.
|
|
21
|
+
"@archivist-gg/core": "^0.1.1",
|
|
22
22
|
"js-yaml": "^4.1.0",
|
|
23
23
|
"zod": "^4.3.6"
|
|
24
24
|
},
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
The files in this directory are **SRD 5.1 / 5.2 content under CC-BY-4.0,
|
|
1
|
+
The files in this directory are **SRD 5.1 / 5.2 content under CC-BY-4.0, not under the package's own licence.**
|
|
2
2
|
See [/LICENSES/SRD.md](../../LICENSES/SRD.md) for the required attribution.
|