@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-K5NJBTE2.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
parseWeapon
|
|
3
|
-
} from "./chunk-XCFC7LGF.js";
|
|
4
|
-
|
|
5
|
-
// src/weapon/weapon.codec.ts
|
|
6
|
-
import yaml from "js-yaml";
|
|
7
|
-
var weaponCodec = {
|
|
8
|
-
parse(doc) {
|
|
9
|
-
return parseWeapon(doc.body);
|
|
10
|
-
},
|
|
11
|
-
serialize(entity) {
|
|
12
|
-
return yaml.dump(entity, { lineWidth: -1, sortKeys: false });
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
weaponCodec
|
|
18
|
-
};
|
package/dist/chunk-KR6JF3BF.js
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// src/pc/spell-source.ts
|
|
2
|
-
var SPELL_SOURCE = {
|
|
3
|
-
class: { ownAbility: false, section: "spellbook", freeCastWhenNoSlot: false, showInPrepare: true, countsAsGranted: false },
|
|
4
|
-
feat: { ownAbility: true, section: "spellbook", freeCastWhenNoSlot: true, showInPrepare: true, countsAsGranted: true },
|
|
5
|
-
item: { ownAbility: false, section: "consumable", freeCastWhenNoSlot: false, showInPrepare: false, countsAsGranted: true },
|
|
6
|
-
race: { ownAbility: true, section: "spellbook", freeCastWhenNoSlot: true, showInPrepare: true, countsAsGranted: true },
|
|
7
|
-
domain: { ownAbility: false, section: "spellbook", freeCastWhenNoSlot: false, showInPrepare: true, countsAsGranted: false }
|
|
8
|
-
};
|
|
9
|
-
var spellSource = (s) => SPELL_SOURCE[s.source];
|
|
10
|
-
|
|
11
|
-
export {
|
|
12
|
-
SPELL_SOURCE,
|
|
13
|
-
spellSource
|
|
14
|
-
};
|
package/dist/chunk-KSTV7J2U.js
DELETED
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
resolveSpellcasting
|
|
3
|
-
} from "./chunk-DPUJDOKV.js";
|
|
4
|
-
import {
|
|
5
|
-
warnOnce
|
|
6
|
-
} from "./chunk-LVQLWRCU.js";
|
|
7
|
-
import {
|
|
8
|
-
isValidMaxFormula
|
|
9
|
-
} from "./chunk-EVMUJYUD.js";
|
|
10
|
-
|
|
11
|
-
// src/pc/pc.resources.ts
|
|
12
|
-
function resourceLevelFor(source, resolved) {
|
|
13
|
-
var _a, _b, _c, _d;
|
|
14
|
-
if (source.kind === "class") {
|
|
15
|
-
return (_b = (_a = resolved.classes.find((c) => {
|
|
16
|
-
var _a2;
|
|
17
|
-
return ((_a2 = c.entity) == null ? void 0 : _a2.slug) === source.slug;
|
|
18
|
-
})) == null ? void 0 : _a.level) != null ? _b : resolved.totalLevel;
|
|
19
|
-
}
|
|
20
|
-
if (source.kind === "subclass") {
|
|
21
|
-
return (_d = (_c = resolved.classes.find((c) => {
|
|
22
|
-
var _a2;
|
|
23
|
-
return ((_a2 = c.subclass) == null ? void 0 : _a2.slug) === source.slug;
|
|
24
|
-
})) == null ? void 0 : _c.level) != null ? _d : resolved.totalLevel;
|
|
25
|
-
}
|
|
26
|
-
return resolved.totalLevel;
|
|
27
|
-
}
|
|
28
|
-
function resolveRecovery(entry) {
|
|
29
|
-
var _a;
|
|
30
|
-
const kind = (_a = entry.restores) != null ? _a : "uses";
|
|
31
|
-
const restTriggered = (entry.reset === "short-rest" || entry.reset === "long-rest") && !entry.action;
|
|
32
|
-
const flavour = kind === "spell-slots" ? "manual" : restTriggered ? "rest" : "manual";
|
|
33
|
-
return { entry, kind, flavour };
|
|
34
|
-
}
|
|
35
|
-
function toResolvedResource(r, fallbackName, owner) {
|
|
36
|
-
var _a, _b;
|
|
37
|
-
return {
|
|
38
|
-
id: r.id,
|
|
39
|
-
name: (_a = r.name) != null ? _a : fallbackName,
|
|
40
|
-
reset: r.reset,
|
|
41
|
-
maxFormula: r.max_formula,
|
|
42
|
-
...r.die ? { die: r.die } : {},
|
|
43
|
-
...r.scales_at ? { scalesAt: r.scales_at } : {},
|
|
44
|
-
...((_b = r.recovery) == null ? void 0 : _b.length) ? { recovery: r.recovery.map(resolveRecovery) } : {},
|
|
45
|
-
...r.rendering_hint ? { renderingHint: r.rendering_hint } : {},
|
|
46
|
-
...r.surface ? { surface: r.surface } : {},
|
|
47
|
-
owner
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
function resolveFeatureResources(features) {
|
|
51
|
-
var _a, _b;
|
|
52
|
-
const out = /* @__PURE__ */ new Map();
|
|
53
|
-
for (const rf of features) {
|
|
54
|
-
for (const r of (_a = rf.feature.resources) != null ? _a : []) {
|
|
55
|
-
if (out.has(r.id)) continue;
|
|
56
|
-
const owner = { kind: "feature", featureId: (_b = rf.feature.id) != null ? _b : rf.feature.name, featureName: rf.feature.name, source: rf.source };
|
|
57
|
-
out.set(r.id, toResolvedResource(r, rf.feature.name, owner));
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
return out;
|
|
61
|
-
}
|
|
62
|
-
function pickResourceId(entry) {
|
|
63
|
-
return entry.param != null ? entry.key : entry.slug;
|
|
64
|
-
}
|
|
65
|
-
function resolveResourceIndex(resolved) {
|
|
66
|
-
var _a, _b, _c, _d, _e;
|
|
67
|
-
const out = new Map(resolveFeatureResources((_a = resolved.features) != null ? _a : []));
|
|
68
|
-
for (const pool of (_b = resolved.pools) != null ? _b : []) {
|
|
69
|
-
const rc = resolved.classes[pool.classIndex];
|
|
70
|
-
const classSlug = (_c = rc == null ? void 0 : rc.entity) == null ? void 0 : _c.slug;
|
|
71
|
-
if (!classSlug) continue;
|
|
72
|
-
for (const entry of [...(_d = pool.selected) != null ? _d : [], ...(_e = pool.grants) != null ? _e : []]) {
|
|
73
|
-
if (entry.itemBound === true) continue;
|
|
74
|
-
const uses = entry.entity.uses;
|
|
75
|
-
const id = pickResourceId(entry);
|
|
76
|
-
if (!uses || out.has(id)) continue;
|
|
77
|
-
const maxFormula = String(uses.max);
|
|
78
|
-
if (!isValidMaxFormula(maxFormula)) {
|
|
79
|
-
warnOnce(`pool-uses:${entry.slug}`, `optional feature "${entry.slug}" has a prose uses.max (${JSON.stringify(uses.max)}); no tracker`);
|
|
80
|
-
continue;
|
|
81
|
-
}
|
|
82
|
-
const pres = entry.entity;
|
|
83
|
-
out.set(id, {
|
|
84
|
-
id,
|
|
85
|
-
name: entry.entity.name,
|
|
86
|
-
reset: uses.recharge,
|
|
87
|
-
maxFormula,
|
|
88
|
-
...pres.rendering_hint ? { renderingHint: pres.rendering_hint } : {},
|
|
89
|
-
...pres.surface ? { surface: pres.surface } : {},
|
|
90
|
-
owner: { kind: "pool", poolId: pool.id, poolLabel: pool.label, source: { kind: "class", slug: classSlug, level: pool.anchorLevel } }
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
return out;
|
|
95
|
-
}
|
|
96
|
-
function poolSaveDC(resolved, derived, pool) {
|
|
97
|
-
var _a, _b;
|
|
98
|
-
const rc = resolved.classes[pool.classIndex];
|
|
99
|
-
const ability = (_b = (_a = rc == null ? void 0 : rc.subclass) == null ? void 0 : _a.spellcasting) == null ? void 0 : _b.ability;
|
|
100
|
-
if (!rc || !ability) return null;
|
|
101
|
-
if (resolveSpellcasting(rc) !== null) return null;
|
|
102
|
-
return 8 + derived.proficiencyBonus + derived.mods[ability];
|
|
103
|
-
}
|
|
104
|
-
|
|
105
|
-
export {
|
|
106
|
-
resourceLevelFor,
|
|
107
|
-
resolveRecovery,
|
|
108
|
-
resolveFeatureResources,
|
|
109
|
-
pickResourceId,
|
|
110
|
-
resolveResourceIndex,
|
|
111
|
-
poolSaveDC
|
|
112
|
-
};
|
package/dist/chunk-KU3YLF6D.js
DELETED
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
// src/types/choice.ts
|
|
2
|
-
var ALL_SKILL_SLUGS = [
|
|
3
|
-
"acrobatics",
|
|
4
|
-
"animal-handling",
|
|
5
|
-
"arcana",
|
|
6
|
-
"athletics",
|
|
7
|
-
"deception",
|
|
8
|
-
"history",
|
|
9
|
-
"insight",
|
|
10
|
-
"intimidation",
|
|
11
|
-
"investigation",
|
|
12
|
-
"medicine",
|
|
13
|
-
"nature",
|
|
14
|
-
"perception",
|
|
15
|
-
"performance",
|
|
16
|
-
"persuasion",
|
|
17
|
-
"religion",
|
|
18
|
-
"sleight-of-hand",
|
|
19
|
-
"stealth",
|
|
20
|
-
"survival"
|
|
21
|
-
];
|
|
22
|
-
var STANDARD_LANGUAGES = [
|
|
23
|
-
"common",
|
|
24
|
-
"dwarvish",
|
|
25
|
-
"elvish",
|
|
26
|
-
"giant",
|
|
27
|
-
"gnomish",
|
|
28
|
-
"goblin",
|
|
29
|
-
"halfling",
|
|
30
|
-
"orc"
|
|
31
|
-
];
|
|
32
|
-
var EXOTIC_LANGUAGES = [
|
|
33
|
-
"abyssal",
|
|
34
|
-
"celestial",
|
|
35
|
-
"deep-speech",
|
|
36
|
-
"draconic",
|
|
37
|
-
"infernal",
|
|
38
|
-
"primordial",
|
|
39
|
-
"sylvan",
|
|
40
|
-
"undercommon"
|
|
41
|
-
];
|
|
42
|
-
var SECRET_LANGUAGES = ["druidic", "thieves'-cant"];
|
|
43
|
-
var ALL_LANGUAGES = [
|
|
44
|
-
...STANDARD_LANGUAGES,
|
|
45
|
-
...EXOTIC_LANGUAGES,
|
|
46
|
-
...SECRET_LANGUAGES
|
|
47
|
-
];
|
|
48
|
-
var ARTISANS_TOOLS = [
|
|
49
|
-
"alchemist's-supplies",
|
|
50
|
-
"brewer's-supplies",
|
|
51
|
-
"calligrapher's-supplies",
|
|
52
|
-
"carpenter's-tools",
|
|
53
|
-
"cartographer's-tools",
|
|
54
|
-
"cobbler's-tools",
|
|
55
|
-
"cook's-utensils",
|
|
56
|
-
"glassblower's-tools",
|
|
57
|
-
"jeweler's-tools",
|
|
58
|
-
"leatherworker's-tools",
|
|
59
|
-
"mason's-tools",
|
|
60
|
-
"painter's-supplies",
|
|
61
|
-
"potter's-tools",
|
|
62
|
-
"smith's-tools",
|
|
63
|
-
"tinker's-tools",
|
|
64
|
-
"weaver's-tools",
|
|
65
|
-
"woodcarver's-tools"
|
|
66
|
-
];
|
|
67
|
-
var MUSICAL_INSTRUMENTS = [
|
|
68
|
-
"bagpipes",
|
|
69
|
-
"drum",
|
|
70
|
-
"dulcimer",
|
|
71
|
-
"flute",
|
|
72
|
-
"horn",
|
|
73
|
-
"lute",
|
|
74
|
-
"lyre",
|
|
75
|
-
"pan-flute",
|
|
76
|
-
"shawm",
|
|
77
|
-
"viol"
|
|
78
|
-
];
|
|
79
|
-
var GAMING_SETS = ["dice-set", "playing-cards"];
|
|
80
|
-
var OTHER_TOOLS = [
|
|
81
|
-
"disguise-kit",
|
|
82
|
-
"forgery-kit",
|
|
83
|
-
"herbalism-kit",
|
|
84
|
-
"navigator's-tools",
|
|
85
|
-
"poisoner's-kit",
|
|
86
|
-
"thieves'-tools"
|
|
87
|
-
];
|
|
88
|
-
var ALL_TOOLS = [
|
|
89
|
-
...ARTISANS_TOOLS,
|
|
90
|
-
...MUSICAL_INSTRUMENTS,
|
|
91
|
-
...GAMING_SETS,
|
|
92
|
-
...OTHER_TOOLS
|
|
93
|
-
];
|
|
94
|
-
|
|
95
|
-
export {
|
|
96
|
-
ALL_SKILL_SLUGS,
|
|
97
|
-
STANDARD_LANGUAGES,
|
|
98
|
-
EXOTIC_LANGUAGES,
|
|
99
|
-
SECRET_LANGUAGES,
|
|
100
|
-
ALL_LANGUAGES,
|
|
101
|
-
ARTISANS_TOOLS,
|
|
102
|
-
MUSICAL_INSTRUMENTS,
|
|
103
|
-
GAMING_SETS,
|
|
104
|
-
OTHER_TOOLS,
|
|
105
|
-
ALL_TOOLS
|
|
106
|
-
};
|
package/dist/chunk-LBEXLN6I.js
DELETED
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
bareEntitySlug
|
|
3
|
-
} from "./chunk-ZCTUYGNV.js";
|
|
4
|
-
import {
|
|
5
|
-
ABILITY_KEYS
|
|
6
|
-
} from "./chunk-WELIKLZF.js";
|
|
7
|
-
|
|
8
|
-
// src/pc/pc.asi-flatten.ts
|
|
9
|
-
function flattenAsiOrFeat(choice) {
|
|
10
|
-
var _a;
|
|
11
|
-
if (choice.kind !== "select-inline" || choice.id !== "asi-or-feat") return choice;
|
|
12
|
-
const featBranches = choice.options.filter((o) => {
|
|
13
|
-
var _a2;
|
|
14
|
-
return ((_a2 = o.choices) != null ? _a2 : []).some((c) => c.kind === "select-entity" && c.entity_type === "feat");
|
|
15
|
-
});
|
|
16
|
-
if (featBranches.length !== 1) return choice;
|
|
17
|
-
const inner = (_a = featBranches[0].choices) != null ? _a : [];
|
|
18
|
-
if (inner.length !== 1) return choice;
|
|
19
|
-
const only = inner[0];
|
|
20
|
-
if (only.kind !== "select-entity" || only.entity_type !== "feat") return choice;
|
|
21
|
-
return only;
|
|
22
|
-
}
|
|
23
|
-
var ASI_FEAT_BARE = "ability-score-improvement";
|
|
24
|
-
function legacyAsiBranch(block) {
|
|
25
|
-
if (!block || typeof block !== "object") return null;
|
|
26
|
-
const b = block;
|
|
27
|
-
if (typeof b.feat === "string") return null;
|
|
28
|
-
const asi = b.asi;
|
|
29
|
-
if (!asi || typeof asi !== "object" || Array.isArray(asi)) return null;
|
|
30
|
-
const out = {};
|
|
31
|
-
let any = false;
|
|
32
|
-
for (const ab of ABILITY_KEYS) {
|
|
33
|
-
const v = asi[ab];
|
|
34
|
-
if (typeof v === "number") {
|
|
35
|
-
out[ab] = v;
|
|
36
|
-
any = true;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
return any ? out : null;
|
|
40
|
-
}
|
|
41
|
-
function convertibleLegacyAsi(block) {
|
|
42
|
-
const alloc = legacyAsiBranch(block);
|
|
43
|
-
if (!alloc) return null;
|
|
44
|
-
const branch = block["asi-or-feat"];
|
|
45
|
-
return branch === void 0 || branch === "asi" ? alloc : null;
|
|
46
|
-
}
|
|
47
|
-
function resolveLegacyAsiFeat(registry, classEntity) {
|
|
48
|
-
if (!classEntity) return null;
|
|
49
|
-
const prefix = classEntity.slug.split("_")[0];
|
|
50
|
-
const ranked = [];
|
|
51
|
-
for (const e of registry.search("", "feat", Number.POSITIVE_INFINITY)) {
|
|
52
|
-
if (bareEntitySlug(e.slug) !== ASI_FEAT_BARE) continue;
|
|
53
|
-
const data = e.data;
|
|
54
|
-
const choices = Array.isArray(data == null ? void 0 : data.choices) ? data.choices : [];
|
|
55
|
-
const points = choices.find((c) => (c == null ? void 0 : c.kind) === "ability-points" && typeof c.id === "string");
|
|
56
|
-
if (!points) continue;
|
|
57
|
-
ranked.push({
|
|
58
|
-
slug: e.slug,
|
|
59
|
-
childId: points.id,
|
|
60
|
-
prefixHit: e.slug.split("_")[0] === prefix,
|
|
61
|
-
editionHit: classEntity.edition !== void 0 && (data == null ? void 0 : data.edition) === classEntity.edition
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
ranked.sort((a, b) => Number(b.prefixHit) - Number(a.prefixHit) || Number(b.editionHit) - Number(a.editionHit) || (a.slug < b.slug ? -1 : a.slug > b.slug ? 1 : 0));
|
|
65
|
-
return ranked.length ? { slug: ranked[0].slug, childId: ranked[0].childId } : null;
|
|
66
|
-
}
|
|
67
|
-
function migrateLegacyAsiLevel(block, key, value, registry, classEntity) {
|
|
68
|
-
if (key !== "feat" && !key.startsWith("feat:")) return null;
|
|
69
|
-
const alloc = convertibleLegacyAsi(block);
|
|
70
|
-
if (!alloc) return null;
|
|
71
|
-
const asi = resolveLegacyAsiFeat(registry, classEntity);
|
|
72
|
-
if (!asi) return null;
|
|
73
|
-
const childKey = `feat:${asi.childId}`;
|
|
74
|
-
const isSwitch = key === "feat" && value !== asi.slug;
|
|
75
|
-
const out = {};
|
|
76
|
-
for (const [k, v] of Object.entries(block)) {
|
|
77
|
-
if (k === "asi-or-feat" || k === "asi" || k === childKey) continue;
|
|
78
|
-
out[k] = v;
|
|
79
|
-
}
|
|
80
|
-
out.feat = asi.slug;
|
|
81
|
-
if (!isSwitch) out[childKey] = alloc;
|
|
82
|
-
return out;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export {
|
|
86
|
-
flattenAsiOrFeat,
|
|
87
|
-
legacyAsiBranch,
|
|
88
|
-
convertibleLegacyAsi,
|
|
89
|
-
resolveLegacyAsiFeat,
|
|
90
|
-
migrateLegacyAsiLevel
|
|
91
|
-
};
|
package/dist/chunk-LF5AGJA4.js
DELETED
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
poolGrantSchema,
|
|
3
|
-
selectionPoolSchema,
|
|
4
|
-
tabDeclSchema
|
|
5
|
-
} from "./chunk-G6MHJDVT.js";
|
|
6
|
-
import {
|
|
7
|
-
casterTypeEnum
|
|
8
|
-
} from "./chunk-CJYCVNW2.js";
|
|
9
|
-
import {
|
|
10
|
-
featureSchema
|
|
11
|
-
} from "./chunk-YD2VAHA6.js";
|
|
12
|
-
import {
|
|
13
|
-
resourceSchema
|
|
14
|
-
} from "./chunk-ZJXSXVFP.js";
|
|
15
|
-
import {
|
|
16
|
-
additionalSpellsEntrySchema,
|
|
17
|
-
imageField,
|
|
18
|
-
progressionSchema
|
|
19
|
-
} from "./chunk-UA5KS2PL.js";
|
|
20
|
-
|
|
21
|
-
// src/subclass/subclass.schema.ts
|
|
22
|
-
import { z } from "zod";
|
|
23
|
-
var editionEnum = z.enum(["2014", "2024"]);
|
|
24
|
-
var wikilinkRegex = /^\[\[[^[\]]+\]\]$/;
|
|
25
|
-
var abilityEnum = z.enum(["str", "dex", "con", "int", "wis", "cha"]);
|
|
26
|
-
var spellcastingSchema = z.object({
|
|
27
|
-
caster_type: casterTypeEnum.optional(),
|
|
28
|
-
ability: abilityEnum,
|
|
29
|
-
preparation: z.enum(["known", "prepared"]).optional(),
|
|
30
|
-
spell_list: z.string().min(1).optional()
|
|
31
|
-
});
|
|
32
|
-
var subclassTableRowSchema = z.object({
|
|
33
|
-
columns: z.record(z.string(), z.union([z.string(), z.number()])).optional()
|
|
34
|
-
});
|
|
35
|
-
var subclassEntitySchema = z.object({
|
|
36
|
-
slug: z.string().min(1),
|
|
37
|
-
name: z.string().min(1),
|
|
38
|
-
parent_class: z.string().regex(wikilinkRegex, "parent_class must be a wikilink like [[rogue]]"),
|
|
39
|
-
edition: editionEnum,
|
|
40
|
-
source: z.string().min(1),
|
|
41
|
-
description: z.string(),
|
|
42
|
-
spellcasting: spellcastingSchema.nullable().optional(),
|
|
43
|
-
table: z.record(z.string(), subclassTableRowSchema).optional(),
|
|
44
|
-
features_by_level: z.record(z.string(), z.array(featureSchema)),
|
|
45
|
-
resources: z.array(resourceSchema),
|
|
46
|
-
selection_pools: z.array(selectionPoolSchema).optional(),
|
|
47
|
-
pool_grants: z.array(poolGrantSchema).optional(),
|
|
48
|
-
tabs: z.array(tabDeclSchema).optional(),
|
|
49
|
-
rendering_hint: z.string().optional(),
|
|
50
|
-
// 346
|
|
51
|
-
short_name: z.string().min(1).optional(),
|
|
52
|
-
// 346
|
|
53
|
-
has_fluff: z.boolean().optional(),
|
|
54
|
-
// 50
|
|
55
|
-
has_fluff_images: z.boolean().optional(),
|
|
56
|
-
// 346
|
|
57
|
-
fluff: z.unknown().optional(),
|
|
58
|
-
// 62 docs, single key-set {_subclassFluff:{...}} — 5etools-internal
|
|
59
|
-
table_col_labels: z.array(z.string().min(1)).optional(),
|
|
60
|
-
// 8
|
|
61
|
-
cantrip_progression: z.array(z.number()).optional(),
|
|
62
|
-
// 6
|
|
63
|
-
prepared_spells_change: z.string().min(1).optional(),
|
|
64
|
-
// 2
|
|
65
|
-
prepared_spells_progression: z.array(z.number()).optional(),
|
|
66
|
-
// 2
|
|
67
|
-
spells_known_progression: z.array(z.number()).optional(),
|
|
68
|
-
// 4
|
|
69
|
-
feat_progression: z.array(progressionSchema).optional(),
|
|
70
|
-
// 1
|
|
71
|
-
optionalfeature_progression: z.array(progressionSchema).optional(),
|
|
72
|
-
// 13 carriers; featureType
|
|
73
|
-
// on all 13, required on 2
|
|
74
|
-
additional_spells: z.array(additionalSpellsEntrySchema).optional(),
|
|
75
|
-
// 212
|
|
76
|
-
image: imageField
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
export {
|
|
80
|
-
subclassEntitySchema
|
|
81
|
-
};
|
package/dist/chunk-LHZXYFBU.js
DELETED
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
resolveBaseItem
|
|
3
|
-
} from "./chunk-CM5CWO4K.js";
|
|
4
|
-
|
|
5
|
-
// src/pc/pc.slotting.ts
|
|
6
|
-
function isItemEntity(e) {
|
|
7
|
-
return !!e && typeof e === "object" && "rarity" in e;
|
|
8
|
-
}
|
|
9
|
-
function isWeaponEntity(e) {
|
|
10
|
-
if (!e || typeof e !== "object") return false;
|
|
11
|
-
if (!("damage" in e) || !("category" in e)) return false;
|
|
12
|
-
const cat = e.category;
|
|
13
|
-
return typeof cat === "string" && /melee|ranged/.test(cat);
|
|
14
|
-
}
|
|
15
|
-
function isArmorEntity(e) {
|
|
16
|
-
return !!e && typeof e === "object" && "ac" in e && "category" in e && !("damage" in e);
|
|
17
|
-
}
|
|
18
|
-
function resolveEntityForEntry(item, registry) {
|
|
19
|
-
const found = resolveBaseItem(item, registry);
|
|
20
|
-
if (!found) return { entity: null, entityType: null };
|
|
21
|
-
return {
|
|
22
|
-
entity: found.data,
|
|
23
|
-
entityType: found.entityType
|
|
24
|
-
};
|
|
25
|
-
}
|
|
26
|
-
function isShieldArmor(armor) {
|
|
27
|
-
var _a, _b;
|
|
28
|
-
if (armor.category === "shield") return true;
|
|
29
|
-
const slug = ((_a = armor.slug) != null ? _a : "").toLowerCase();
|
|
30
|
-
if (slug === "shield" || slug.endsWith("_shield") || slug.endsWith("-shield")) return true;
|
|
31
|
-
return ((_b = armor.name) != null ? _b : "").trim().toLowerCase() === "shield";
|
|
32
|
-
}
|
|
33
|
-
function effectiveArmor(entity, registry) {
|
|
34
|
-
if (isArmorEntity(entity)) return entity;
|
|
35
|
-
if (isItemEntity(entity) && typeof entity.base_item === "string") {
|
|
36
|
-
const base = resolveBaseItem(entity.base_item, registry);
|
|
37
|
-
if ((base == null ? void 0 : base.entityType) === "armor") return base.data;
|
|
38
|
-
}
|
|
39
|
-
return null;
|
|
40
|
-
}
|
|
41
|
-
function effectiveWeapon(entity, registry) {
|
|
42
|
-
if (isWeaponEntity(entity)) return entity;
|
|
43
|
-
if (isItemEntity(entity) && typeof entity.base_item === "string") {
|
|
44
|
-
const base = resolveBaseItem(entity.base_item, registry);
|
|
45
|
-
if ((base == null ? void 0 : base.entityType) === "weapon" && isWeaponEntity(base.data)) return base.data;
|
|
46
|
-
}
|
|
47
|
-
return null;
|
|
48
|
-
}
|
|
49
|
-
function isTwoHandedWeapon(entity, registry) {
|
|
50
|
-
if (!entity || typeof entity !== "object") return false;
|
|
51
|
-
const own = entity.properties;
|
|
52
|
-
if (Array.isArray(own) && own.length > 0) return own.some((p) => p === "two_handed");
|
|
53
|
-
if (!registry) return false;
|
|
54
|
-
const weapon = effectiveWeapon(entity, registry);
|
|
55
|
-
return !!weapon && Array.isArray(weapon.properties) && weapon.properties.some((p) => p === "two_handed");
|
|
56
|
-
}
|
|
57
|
-
function armorAcTerm(armor) {
|
|
58
|
-
var _a;
|
|
59
|
-
return armor.ac.base + ((_a = armor.ac.flat) != null ? _a : 0);
|
|
60
|
-
}
|
|
61
|
-
function slotAcTerms(armor, entry) {
|
|
62
|
-
var _a;
|
|
63
|
-
const bonus = (_a = entry == null ? void 0 : entry.overrides) == null ? void 0 : _a.ac_bonus;
|
|
64
|
-
return { armor: armor ? armorAcTerm(armor) : null, override: typeof bonus === "number" ? bonus : 0 };
|
|
65
|
-
}
|
|
66
|
-
function defaultSlotForType(entityType, entity, registry) {
|
|
67
|
-
if (entityType === "weapon") return "mainhand";
|
|
68
|
-
if (entityType === "armor") {
|
|
69
|
-
return isArmorEntity(entity) && isShieldArmor(entity) ? "shield" : "armor";
|
|
70
|
-
}
|
|
71
|
-
if (entityType === "item" && isItemEntity(entity) && typeof entity.base_item === "string") {
|
|
72
|
-
const base = resolveBaseItem(entity.base_item, registry);
|
|
73
|
-
if ((base == null ? void 0 : base.entityType) === "weapon") return "mainhand";
|
|
74
|
-
if ((base == null ? void 0 : base.entityType) === "armor") {
|
|
75
|
-
const armorData = base.data;
|
|
76
|
-
return isShieldArmor(armorData) ? "shield" : "armor";
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
return null;
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export {
|
|
83
|
-
isItemEntity,
|
|
84
|
-
isWeaponEntity,
|
|
85
|
-
isArmorEntity,
|
|
86
|
-
resolveEntityForEntry,
|
|
87
|
-
isShieldArmor,
|
|
88
|
-
effectiveArmor,
|
|
89
|
-
effectiveWeapon,
|
|
90
|
-
isTwoHandedWeapon,
|
|
91
|
-
armorAcTerm,
|
|
92
|
-
slotAcTerms,
|
|
93
|
-
defaultSlotForType
|
|
94
|
-
};
|
package/dist/chunk-LSLSG67V.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// src/encounter/encounter.ai-schema.ts
|
|
2
|
-
import { z } from "zod";
|
|
3
|
-
var encounterInputSchema = z.object({
|
|
4
|
-
party_size: z.number().min(1).max(10).describe("Number of players"),
|
|
5
|
-
party_level: z.number().min(1).max(20).describe("Average party level"),
|
|
6
|
-
difficulty: z.enum(["easy", "medium", "hard", "deadly"]),
|
|
7
|
-
environment: z.string().optional().describe('e.g., "swamp", "dungeon", "forest"'),
|
|
8
|
-
theme: z.string().optional().describe('e.g., "undead horde", "dragon lair"')
|
|
9
|
-
});
|
|
10
|
-
var encounterMonsterSchema = z.object({
|
|
11
|
-
name: z.string(),
|
|
12
|
-
cr: z.string(),
|
|
13
|
-
count: z.number(),
|
|
14
|
-
role: z.string()
|
|
15
|
-
});
|
|
16
|
-
var encounterOutputSchema = z.object({
|
|
17
|
-
monsters: z.array(encounterMonsterSchema),
|
|
18
|
-
tactics: z.string(),
|
|
19
|
-
terrain: z.string(),
|
|
20
|
-
notes: z.string(),
|
|
21
|
-
xp_budget: z.object({
|
|
22
|
-
target: z.number(),
|
|
23
|
-
actual: z.number(),
|
|
24
|
-
difficulty_rating: z.string()
|
|
25
|
-
})
|
|
26
|
-
});
|
|
27
|
-
|
|
28
|
-
export {
|
|
29
|
-
encounterInputSchema,
|
|
30
|
-
encounterOutputSchema
|
|
31
|
-
};
|
package/dist/chunk-LVQLWRCU.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// src/dnd/warn-once.ts
|
|
2
|
-
var seen = /* @__PURE__ */ new Set();
|
|
3
|
-
function warnOnce(key, msg) {
|
|
4
|
-
if (seen.has(key)) return;
|
|
5
|
-
seen.add(key);
|
|
6
|
-
console.warn(msg);
|
|
7
|
-
}
|
|
8
|
-
function __resetWarnOnceForTests() {
|
|
9
|
-
seen.clear();
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
export {
|
|
13
|
-
warnOnce,
|
|
14
|
-
__resetWarnOnceForTests
|
|
15
|
-
};
|
package/dist/chunk-MBX25B6D.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
parseClass
|
|
3
|
-
} from "./chunk-YKL6SHRJ.js";
|
|
4
|
-
|
|
5
|
-
// src/class/class.codec.ts
|
|
6
|
-
import yaml from "js-yaml";
|
|
7
|
-
var classCodec = {
|
|
8
|
-
parse(doc) {
|
|
9
|
-
return parseClass(doc.body);
|
|
10
|
-
},
|
|
11
|
-
serialize(entity) {
|
|
12
|
-
return yaml.dump(entity, { lineWidth: -1, sortKeys: false });
|
|
13
|
-
}
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export {
|
|
17
|
-
classCodec
|
|
18
|
-
};
|