@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-7Q2VPKCD.js
DELETED
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
spellEntitySchema
|
|
3
|
-
} from "./chunk-ZDAEGJH4.js";
|
|
4
|
-
|
|
5
|
-
// src/spell/spell.parser.ts
|
|
6
|
-
import { parseYaml, toStringSafe } from "@archivist-gg/core";
|
|
7
|
-
var KNOWN_KEYS = /* @__PURE__ */ new Set([
|
|
8
|
-
"name",
|
|
9
|
-
"level",
|
|
10
|
-
"school",
|
|
11
|
-
"casting_time",
|
|
12
|
-
"range",
|
|
13
|
-
"components",
|
|
14
|
-
"duration",
|
|
15
|
-
"concentration",
|
|
16
|
-
"ritual",
|
|
17
|
-
"classes",
|
|
18
|
-
"description",
|
|
19
|
-
"at_higher_levels",
|
|
20
|
-
"damage",
|
|
21
|
-
"damage_roll",
|
|
22
|
-
"saving_throw",
|
|
23
|
-
"casting_options",
|
|
24
|
-
// §2 · the fourteen converter keys. This gate and `spellEntitySchema` are independent: a key
|
|
25
|
-
// missing here is refused BEFORE zod ever sees it, so both must learn every new key.
|
|
26
|
-
"rendering_hint",
|
|
27
|
-
"misc_tags",
|
|
28
|
-
"area_tags",
|
|
29
|
-
"condition_inflict",
|
|
30
|
-
"affects_creature_type",
|
|
31
|
-
"spell_attack",
|
|
32
|
-
"ability_check",
|
|
33
|
-
"damage_resist",
|
|
34
|
-
"damage_immune",
|
|
35
|
-
"condition_immune",
|
|
36
|
-
"damage_vulnerable",
|
|
37
|
-
"has_fluff",
|
|
38
|
-
"image",
|
|
39
|
-
"has_fluff_images",
|
|
40
|
-
// Body-only metadata that's emitted to YAML but ignored at runtime — accept silently.
|
|
41
|
-
"slug",
|
|
42
|
-
"edition",
|
|
43
|
-
"source"
|
|
44
|
-
]);
|
|
45
|
-
var DURATION_END_WORDS = { dispel: "dispelled", trigger: "triggered" };
|
|
46
|
-
function normalizeSpellComponents(value) {
|
|
47
|
-
if (typeof value === "string") return value;
|
|
48
|
-
if (value == null || typeof value !== "object" || Array.isArray(value)) return toStringSafe(value);
|
|
49
|
-
const c = value;
|
|
50
|
-
const parts = [];
|
|
51
|
-
if (c.v === true) parts.push("V");
|
|
52
|
-
if (c.s === true) parts.push("S");
|
|
53
|
-
if (typeof c.m === "string") parts.push(`M (${c.m})`);
|
|
54
|
-
else if (c.m === true) parts.push("M");
|
|
55
|
-
else if (c.m != null && typeof c.m === "object") {
|
|
56
|
-
const text = c.m.text;
|
|
57
|
-
parts.push(typeof text === "string" ? `M (${text})` : "M");
|
|
58
|
-
}
|
|
59
|
-
if (c.r === true) parts.push("R");
|
|
60
|
-
return parts.join(", ");
|
|
61
|
-
}
|
|
62
|
-
function spellMaterialOf(value) {
|
|
63
|
-
if (value == null || typeof value !== "object" || Array.isArray(value)) return void 0;
|
|
64
|
-
const m = value.m;
|
|
65
|
-
if (m == null || typeof m !== "object" || Array.isArray(m)) return void 0;
|
|
66
|
-
const { text, cost, consume } = m;
|
|
67
|
-
if (typeof text !== "string") return void 0;
|
|
68
|
-
return {
|
|
69
|
-
text,
|
|
70
|
-
...typeof cost === "number" ? { cost } : {},
|
|
71
|
-
...typeof consume === "boolean" || typeof consume === "string" ? { consume } : {}
|
|
72
|
-
};
|
|
73
|
-
}
|
|
74
|
-
function normalizeSpellDurationEntry(entry) {
|
|
75
|
-
if (entry == null || typeof entry !== "object") return toStringSafe(entry);
|
|
76
|
-
const e = entry;
|
|
77
|
-
if (e.type === "permanent" && Array.isArray(e.ends)) {
|
|
78
|
-
return "until " + e.ends.map((w) => {
|
|
79
|
-
var _a;
|
|
80
|
-
return (_a = DURATION_END_WORDS[String(w)]) != null ? _a : String(w);
|
|
81
|
-
}).join(" or ");
|
|
82
|
-
}
|
|
83
|
-
if (e.type === "timed" && e.duration != null) {
|
|
84
|
-
const unit = e.duration.type;
|
|
85
|
-
const amount = e.duration.amount;
|
|
86
|
-
if (typeof unit === "string" && typeof amount === "number") {
|
|
87
|
-
const prefix = e.duration.up_to === true ? "up to " : "";
|
|
88
|
-
return `${prefix}${amount} ${unit}${amount > 1 ? "s" : ""}`;
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
return toStringSafe(entry);
|
|
92
|
-
}
|
|
93
|
-
function normalizeSpellDuration(value) {
|
|
94
|
-
if (typeof value === "string") return value;
|
|
95
|
-
if (!Array.isArray(value)) return toStringSafe(value);
|
|
96
|
-
return value.map((entry) => normalizeSpellDurationEntry(entry)).join("; ");
|
|
97
|
-
}
|
|
98
|
-
function mirrorSpellShapes(entity) {
|
|
99
|
-
const material = spellMaterialOf(entity.components);
|
|
100
|
-
return {
|
|
101
|
-
...entity,
|
|
102
|
-
...entity.components != null ? { components: normalizeSpellComponents(entity.components) } : {},
|
|
103
|
-
...material ? { material } : {},
|
|
104
|
-
...entity.duration != null ? { duration: normalizeSpellDuration(entity.duration) } : {}
|
|
105
|
-
};
|
|
106
|
-
}
|
|
107
|
-
function parseSpell(source) {
|
|
108
|
-
const result = parseYaml(source, ["name"]);
|
|
109
|
-
if (!result.success) return result;
|
|
110
|
-
const meta = {};
|
|
111
|
-
if (typeof result.data.source === "string") meta.source = result.data.source;
|
|
112
|
-
if (typeof result.data.edition === "string") meta.edition = result.data.edition;
|
|
113
|
-
const filtered = {};
|
|
114
|
-
for (const [k, v] of Object.entries(result.data)) {
|
|
115
|
-
if (k === "slug" || k === "edition" || k === "source") continue;
|
|
116
|
-
if (!KNOWN_KEYS.has(k)) {
|
|
117
|
-
return { success: false, error: `Unknown spell field: ${k}` };
|
|
118
|
-
}
|
|
119
|
-
filtered[k] = v;
|
|
120
|
-
}
|
|
121
|
-
const parsed = spellEntitySchema.safeParse(filtered);
|
|
122
|
-
if (!parsed.success) {
|
|
123
|
-
return { success: false, error: `spell schema validation failed: ${parsed.error.message}` };
|
|
124
|
-
}
|
|
125
|
-
const raw = parsed.data;
|
|
126
|
-
const spell = { name: raw.name };
|
|
127
|
-
if (raw.level != null) spell.level = raw.level;
|
|
128
|
-
if (raw.school != null) spell.school = toStringSafe(raw.school);
|
|
129
|
-
if (raw.casting_time != null) spell.casting_time = toStringSafe(raw.casting_time);
|
|
130
|
-
if (raw.range != null) spell.range = toStringSafe(raw.range);
|
|
131
|
-
if (raw.components != null) spell.components = normalizeSpellComponents(raw.components);
|
|
132
|
-
if (raw.duration != null) spell.duration = normalizeSpellDuration(raw.duration);
|
|
133
|
-
const material = spellMaterialOf(raw.components);
|
|
134
|
-
if (material) spell.material = material;
|
|
135
|
-
if (raw.concentration != null) spell.concentration = Boolean(raw.concentration);
|
|
136
|
-
if (raw.ritual != null) spell.ritual = Boolean(raw.ritual);
|
|
137
|
-
if (raw.classes) spell.classes = raw.classes.map(String);
|
|
138
|
-
if (raw.description) spell.description = raw.description;
|
|
139
|
-
if (raw.at_higher_levels) spell.at_higher_levels = raw.at_higher_levels.map(String);
|
|
140
|
-
if (raw.damage) spell.damage = { types: raw.damage.types.map(String) };
|
|
141
|
-
if (raw.damage_roll != null) spell.damage_roll = raw.damage_roll;
|
|
142
|
-
if (raw.saving_throw) spell.saving_throw = { ability: raw.saving_throw.ability };
|
|
143
|
-
if (raw.casting_options) {
|
|
144
|
-
spell.casting_options = raw.casting_options.map((opt) => {
|
|
145
|
-
const co = { type: opt.type };
|
|
146
|
-
if (opt.damage_roll !== void 0) co.damage_roll = opt.damage_roll;
|
|
147
|
-
if (opt.target_count !== void 0) co.target_count = opt.target_count;
|
|
148
|
-
if (opt.duration !== void 0) co.duration = opt.duration;
|
|
149
|
-
if (opt.range !== void 0) co.range = opt.range;
|
|
150
|
-
if (opt.concentration !== void 0) co.concentration = opt.concentration;
|
|
151
|
-
if (opt.shape_size !== void 0) co.shape_size = opt.shape_size;
|
|
152
|
-
if (opt.desc !== void 0) co.desc = opt.desc;
|
|
153
|
-
return co;
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
if (raw.rendering_hint != null) spell.rendering_hint = raw.rendering_hint;
|
|
157
|
-
if (raw.misc_tags != null) spell.misc_tags = raw.misc_tags;
|
|
158
|
-
if (raw.area_tags != null) spell.area_tags = raw.area_tags;
|
|
159
|
-
if (raw.condition_inflict != null) spell.condition_inflict = raw.condition_inflict;
|
|
160
|
-
if (raw.affects_creature_type != null) spell.affects_creature_type = raw.affects_creature_type;
|
|
161
|
-
if (raw.spell_attack != null) spell.spell_attack = raw.spell_attack;
|
|
162
|
-
if (raw.ability_check != null) spell.ability_check = raw.ability_check;
|
|
163
|
-
if (raw.damage_resist != null) spell.damage_resist = raw.damage_resist;
|
|
164
|
-
if (raw.damage_immune != null) spell.damage_immune = raw.damage_immune;
|
|
165
|
-
if (raw.condition_immune != null) spell.condition_immune = raw.condition_immune;
|
|
166
|
-
if (raw.damage_vulnerable != null) spell.damage_vulnerable = raw.damage_vulnerable;
|
|
167
|
-
if (raw.has_fluff != null) spell.has_fluff = raw.has_fluff;
|
|
168
|
-
if (raw.image != null) spell.image = raw.image;
|
|
169
|
-
if (raw.has_fluff_images != null) spell.has_fluff_images = raw.has_fluff_images;
|
|
170
|
-
if (meta.source) spell.source = meta.source;
|
|
171
|
-
if (meta.edition) spell.edition = meta.edition;
|
|
172
|
-
return { success: true, data: spell };
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
export {
|
|
176
|
-
normalizeSpellComponents,
|
|
177
|
-
spellMaterialOf,
|
|
178
|
-
normalizeSpellDuration,
|
|
179
|
-
mirrorSpellShapes,
|
|
180
|
-
parseSpell
|
|
181
|
-
};
|
package/dist/chunk-7QN7XSAK.js
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
featEntitySchema
|
|
3
|
-
} from "./chunk-PKX6TGRE.js";
|
|
4
|
-
|
|
5
|
-
// src/feat/feat.parser.ts
|
|
6
|
-
import { parseYaml } from "@archivist-gg/core";
|
|
7
|
-
function parseFeat(source) {
|
|
8
|
-
const raw = parseYaml(source, ["name", "slug"]);
|
|
9
|
-
if (!raw.success) return raw;
|
|
10
|
-
const result = featEntitySchema.safeParse({ edition: "2014", ...raw.data });
|
|
11
|
-
if (!result.success) {
|
|
12
|
-
return { success: false, error: `feat schema validation failed: ${result.error.message}` };
|
|
13
|
-
}
|
|
14
|
-
return { success: true, data: result.data };
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export {
|
|
18
|
-
parseFeat
|
|
19
|
-
};
|
package/dist/chunk-A54HHCWW.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
isTwoHandedWeapon
|
|
3
|
-
} from "./chunk-LHZXYFBU.js";
|
|
4
|
-
|
|
5
|
-
// src/item/item.conditions.ts
|
|
6
|
-
function unwrapSlug(maybeWiki) {
|
|
7
|
-
if (!maybeWiki) return "";
|
|
8
|
-
const m = /^\[\[([^\]]+)\]\]$/.exec(maybeWiki);
|
|
9
|
-
return (m ? m[1] : maybeWiki).toLowerCase();
|
|
10
|
-
}
|
|
11
|
-
function evaluateCondition(cond, ctx) {
|
|
12
|
-
var _a;
|
|
13
|
-
switch (cond.kind) {
|
|
14
|
-
case "no_armor":
|
|
15
|
-
return ctx.derived.equippedSlots.armor === void 0 ? "true" : "false";
|
|
16
|
-
case "no_shield":
|
|
17
|
-
return ctx.derived.equippedSlots.shield === void 0 ? "true" : "false";
|
|
18
|
-
case "wielding_two_handed":
|
|
19
|
-
return isTwoHandedWeapon((_a = ctx.derived.equippedSlots.mainhand) == null ? void 0 : _a.entity, ctx.registry) ? "true" : "false";
|
|
20
|
-
case "is_class": {
|
|
21
|
-
const target = cond.value.toLowerCase();
|
|
22
|
-
return ctx.classList.some((c) => unwrapSlug(c.name) === target) ? "true" : "false";
|
|
23
|
-
}
|
|
24
|
-
case "is_race":
|
|
25
|
-
return unwrapSlug(ctx.race) === cond.value.toLowerCase() ? "true" : "false";
|
|
26
|
-
case "is_subclass":
|
|
27
|
-
return ctx.subclasses.some((s) => s.toLowerCase() === cond.value.toLowerCase()) ? "true" : "false";
|
|
28
|
-
// Tier 2-4 - always informational in v1.
|
|
29
|
-
case "vs_creature_type":
|
|
30
|
-
case "vs_attack_type":
|
|
31
|
-
case "on_attack_type":
|
|
32
|
-
case "with_weapon_property":
|
|
33
|
-
case "vs_spell_save":
|
|
34
|
-
case "lighting":
|
|
35
|
-
case "underwater":
|
|
36
|
-
case "movement_state":
|
|
37
|
-
case "has_condition":
|
|
38
|
-
case "is_concentrating":
|
|
39
|
-
case "bloodied":
|
|
40
|
-
return "informational";
|
|
41
|
-
case "raw":
|
|
42
|
-
return "informational";
|
|
43
|
-
case "any_of": {
|
|
44
|
-
let sawInformational = false;
|
|
45
|
-
for (const branch of cond.conditions) {
|
|
46
|
-
const o = evaluateCondition(branch, ctx);
|
|
47
|
-
if (o === "true") return "true";
|
|
48
|
-
if (o === "informational") sawInformational = true;
|
|
49
|
-
}
|
|
50
|
-
return sawInformational ? "informational" : "false";
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
function evaluateConditions(conds, ctx) {
|
|
55
|
-
let sawInformational = false;
|
|
56
|
-
for (const c of conds) {
|
|
57
|
-
const o = evaluateCondition(c, ctx);
|
|
58
|
-
if (o === "false") return "false";
|
|
59
|
-
if (o === "informational") sawInformational = true;
|
|
60
|
-
}
|
|
61
|
-
return sawInformational ? "informational" : "true";
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
export {
|
|
65
|
-
evaluateCondition,
|
|
66
|
-
evaluateConditions
|
|
67
|
-
};
|
package/dist/chunk-AZRGFUSR.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
parseRace
|
|
3
|
-
} from "./chunk-Y5VVP73C.js";
|
|
4
|
-
|
|
5
|
-
// src/race/race.codec.ts
|
|
6
|
-
import yaml from "js-yaml";
|
|
7
|
-
var raceCodec = {
|
|
8
|
-
parse(doc) {
|
|
9
|
-
return parseRace(doc.body);
|
|
10
|
-
},
|
|
11
|
-
serialize(entity) {
|
|
12
|
-
return yaml.dump(entity, { lineWidth: -1, sortKeys: false });
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
raceCodec
|
|
18
|
-
};
|
package/dist/chunk-B3DP42OM.js
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
// src/pc/pool-layout.ts
|
|
2
|
-
var RENDERING_HINT_LAYOUT = {
|
|
3
|
-
"dice-pool": "dice-pool",
|
|
4
|
-
"point-pool": "point-pool"
|
|
5
|
-
};
|
|
6
|
-
function derivePoolLayout(entries) {
|
|
7
|
-
var _a, _b;
|
|
8
|
-
const votes = /* @__PURE__ */ new Map();
|
|
9
|
-
for (const e of entries) {
|
|
10
|
-
const hint = (_a = e.entity.rendering_hint) != null ? _a : "";
|
|
11
|
-
if (!Object.prototype.hasOwnProperty.call(RENDERING_HINT_LAYOUT, hint)) continue;
|
|
12
|
-
const layout = RENDERING_HINT_LAYOUT[hint];
|
|
13
|
-
votes.set(layout, ((_b = votes.get(layout)) != null ? _b : 0) + 1);
|
|
14
|
-
}
|
|
15
|
-
let best;
|
|
16
|
-
let bestN = 0;
|
|
17
|
-
let tied = false;
|
|
18
|
-
for (const [layout, n] of votes) {
|
|
19
|
-
if (n > bestN) {
|
|
20
|
-
best = layout;
|
|
21
|
-
bestN = n;
|
|
22
|
-
tied = false;
|
|
23
|
-
} else if (n === bestN) tied = true;
|
|
24
|
-
}
|
|
25
|
-
return tied ? void 0 : best;
|
|
26
|
-
}
|
|
27
|
-
function poolPresentation(authored, derived) {
|
|
28
|
-
const head = authored === "point-pool" ? "points" : authored === "dice-pool" ? "dice" : derived === "point-pool" ? "points" : "dice";
|
|
29
|
-
return { head };
|
|
30
|
-
}
|
|
31
|
-
var RENDERING_HINT_AFFORDANCE = {
|
|
32
|
-
"granted-die-to-ally": "granted-die"
|
|
33
|
-
};
|
|
34
|
-
function deriveEntryAffordance(entity) {
|
|
35
|
-
var _a;
|
|
36
|
-
const hint = (_a = entity.rendering_hint) != null ? _a : "";
|
|
37
|
-
if (!Object.prototype.hasOwnProperty.call(RENDERING_HINT_AFFORDANCE, hint)) return void 0;
|
|
38
|
-
return RENDERING_HINT_AFFORDANCE[hint];
|
|
39
|
-
}
|
|
40
|
-
var AFFORDANCE_CAPTIONS = {
|
|
41
|
-
"granted-die": "{amount}{die} to an ally"
|
|
42
|
-
};
|
|
43
|
-
function formatAffordanceCaption(affordance, values) {
|
|
44
|
-
return AFFORDANCE_CAPTIONS[affordance].replace(/\{(\w+)\}/g, (whole, key) => Object.prototype.hasOwnProperty.call(values, key) ? String(values[key]) : whole);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
export {
|
|
48
|
-
RENDERING_HINT_LAYOUT,
|
|
49
|
-
derivePoolLayout,
|
|
50
|
-
poolPresentation,
|
|
51
|
-
RENDERING_HINT_AFFORDANCE,
|
|
52
|
-
deriveEntryAffordance,
|
|
53
|
-
AFFORDANCE_CAPTIONS,
|
|
54
|
-
formatAffordanceCaption
|
|
55
|
-
};
|