@archivist-gg/dnd5e 0.1.0
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 +21 -0
- package/LICENSES/SRD.md +37 -0
- package/README.md +65 -0
- package/dist/armor/armor.codec.d.ts +10 -0
- package/dist/armor/armor.codec.js +8 -0
- package/dist/armor/armor.entity-type.d.ts +2 -0
- package/dist/armor/armor.parser.d.ts +3 -0
- package/dist/armor/armor.parser.js +7 -0
- package/dist/armor/armor.schema.d.ts +25 -0
- package/dist/armor/armor.schema.js +6 -0
- package/dist/armor/armor.types.d.ts +26 -0
- package/dist/armor/armor.types.js +0 -0
- package/dist/background/background.codec.d.ts +9 -0
- package/dist/background/background.codec.js +11 -0
- package/dist/background/background.entity-type.d.ts +2 -0
- package/dist/background/background.parser.d.ts +3 -0
- package/dist/background/background.parser.js +10 -0
- package/dist/background/background.schema.d.ts +74 -0
- package/dist/background/background.schema.js +9 -0
- package/dist/background/background.types.d.ts +52 -0
- package/dist/background/background.types.js +0 -0
- package/dist/chunk-24GFQU7T.js +18 -0
- package/dist/chunk-3DZ74AKK.js +28 -0
- package/dist/chunk-3TM34RSJ.js +23 -0
- package/dist/chunk-3TRGRSCH.js +8 -0
- package/dist/chunk-4C2KOKLF.js +185 -0
- package/dist/chunk-4F6AIZ36.js +19 -0
- package/dist/chunk-4SSDYJS2.js +86 -0
- package/dist/chunk-4TIJKN6O.js +37 -0
- package/dist/chunk-537BHVSH.js +18 -0
- package/dist/chunk-5INR4NSL.js +18 -0
- package/dist/chunk-5XUXXAQJ.js +30 -0
- package/dist/chunk-656QCX4U.js +22 -0
- package/dist/chunk-66XXW2Z2.js +133 -0
- package/dist/chunk-6NK2MUD3.js +114 -0
- package/dist/chunk-6PXE7T7C.js +79 -0
- package/dist/chunk-7P65Q426.js +158 -0
- package/dist/chunk-A7T5L7SS.js +83 -0
- package/dist/chunk-AFKTJXRA.js +39 -0
- package/dist/chunk-B7UXKNLD.js +46 -0
- package/dist/chunk-BAXWWGFJ.js +45 -0
- package/dist/chunk-BH6AMZVY.js +25 -0
- package/dist/chunk-CDW7R2QT.js +62 -0
- package/dist/chunk-DABBCYTT.js +68 -0
- package/dist/chunk-DC74TZNA.js +46 -0
- package/dist/chunk-DNAJRMNN.js +68 -0
- package/dist/chunk-DRNZJNJP.js +19 -0
- package/dist/chunk-FEOB24KP.js +18 -0
- package/dist/chunk-FFULAF2P.js +63 -0
- package/dist/chunk-FUK7QSN5.js +19 -0
- package/dist/chunk-GIOH5JB5.js +19 -0
- package/dist/chunk-GJOI2GHP.js +25 -0
- package/dist/chunk-GZ46OVGZ.js +31 -0
- package/dist/chunk-HCP3GMHS.js +44 -0
- package/dist/chunk-IDTDACM6.js +19 -0
- package/dist/chunk-IKSMX4TN.js +0 -0
- package/dist/chunk-IXZXFFFW.js +269 -0
- package/dist/chunk-J2RYSZMQ.js +16 -0
- package/dist/chunk-JEYQU3JT.js +36 -0
- package/dist/chunk-LSLSG67V.js +31 -0
- package/dist/chunk-LWFTHJIE.js +24 -0
- package/dist/chunk-MDEJHMKK.js +52 -0
- package/dist/chunk-N2JE7BWL.js +81 -0
- package/dist/chunk-NAEPSZAM.js +88 -0
- package/dist/chunk-NXR3BD2V.js +90 -0
- package/dist/chunk-PKC77VZP.js +18 -0
- package/dist/chunk-PMADYMUI.js +19 -0
- package/dist/chunk-PTXBIDG7.js +63 -0
- package/dist/chunk-PZOWBI3B.js +49 -0
- package/dist/chunk-QQ5W2AZP.js +515 -0
- package/dist/chunk-QS5L5YTJ.js +24 -0
- package/dist/chunk-QYZV2MQA.js +97 -0
- package/dist/chunk-R2ZV233X.js +233 -0
- package/dist/chunk-RAWJTA45.js +271 -0
- package/dist/chunk-RSDRMH54.js +18 -0
- package/dist/chunk-RVYYKYFL.js +18 -0
- package/dist/chunk-SSXBYF3P.js +18 -0
- package/dist/chunk-TJCNX6UZ.js +521 -0
- package/dist/chunk-TZK36BU7.js +38 -0
- package/dist/chunk-UC4FE5X3.js +65 -0
- package/dist/chunk-WP2CX2JO.js +235 -0
- package/dist/chunk-WYGD2UGN.js +14 -0
- package/dist/chunk-XJNECUPT.js +31 -0
- package/dist/chunk-XURS6Q6Q.js +127 -0
- package/dist/chunk-Y4I74YEG.js +33 -0
- package/dist/chunk-Z4TL2V7S.js +18 -0
- package/dist/chunk-Z6GXV2GO.js +121 -0
- package/dist/chunk-ZLG6FQFB.js +237 -0
- package/dist/chunk-ZMR77DDL.js +18 -0
- package/dist/class/class.codec.d.ts +10 -0
- package/dist/class/class.codec.js +15 -0
- package/dist/class/class.entity-type.d.ts +2 -0
- package/dist/class/class.parser.d.ts +3 -0
- package/dist/class/class.parser.js +14 -0
- package/dist/class/class.schema.d.ts +202 -0
- package/dist/class/class.schema.js +13 -0
- package/dist/class/class.slug.d.ts +11 -0
- package/dist/class/class.slug.js +8 -0
- package/dist/class/class.types.d.ts +74 -0
- package/dist/class/class.types.js +0 -0
- package/dist/data-srd/index.generated.d.ts +7 -0
- package/dist/data-srd/index.generated.js +146 -0
- package/dist/dnd/constants.d.ts +16 -0
- package/dist/dnd/constants.js +36 -0
- package/dist/dnd/formula-tags.d.ts +16 -0
- package/dist/dnd/formula-tags.js +119 -0
- package/dist/dnd/math.d.ts +24 -0
- package/dist/dnd/math.js +35 -0
- package/dist/dnd/prose-tags.d.ts +16 -0
- package/dist/dnd/prose-tags.js +18 -0
- package/dist/dnd/resource-die.d.ts +6 -0
- package/dist/dnd/resource-die.js +17 -0
- package/dist/dnd/resource-formula.d.ts +41 -0
- package/dist/dnd/resource-formula.js +159 -0
- package/dist/dnd/srd-tag-converter.d.ts +44 -0
- package/dist/dnd/srd-tag-converter.js +12 -0
- package/dist/dnd/tag-grammar.d.ts +19 -0
- package/dist/dnd/tag-grammar.js +12 -0
- package/dist/encounter/encounter.ai-schema.d.ts +29 -0
- package/dist/encounter/encounter.ai-schema.js +8 -0
- package/dist/encounter/encounter.entity-type.d.ts +2 -0
- package/dist/encounter/encounter.generatable.d.ts +2 -0
- package/dist/entities/base-item-resolver.d.ts +21 -0
- package/dist/entities/base-item-resolver.js +9 -0
- package/dist/entities/slug.d.ts +5 -0
- package/dist/entities/slug.js +6 -0
- package/dist/feat/feat.codec.d.ts +9 -0
- package/dist/feat/feat.codec.js +10 -0
- package/dist/feat/feat.entity-type.d.ts +2 -0
- package/dist/feat/feat.parser.d.ts +3 -0
- package/dist/feat/feat.parser.js +9 -0
- package/dist/feat/feat.schema.d.ts +194 -0
- package/dist/feat/feat.schema.js +8 -0
- package/dist/feat/feat.types.d.ts +42 -0
- package/dist/feat/feat.types.js +0 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.js +139149 -0
- package/dist/inline-tag-parser.d.ts +11 -0
- package/dist/inline-tag-parser.js +6 -0
- package/dist/item/item.actions-map.d.ts +41 -0
- package/dist/item/item.actions-map.js +85 -0
- package/dist/item/item.ai-schema.d.ts +35 -0
- package/dist/item/item.ai-schema.js +6 -0
- package/dist/item/item.attunement.d.ts +18 -0
- package/dist/item/item.attunement.js +12 -0
- package/dist/item/item.bonuses.d.ts +2 -0
- package/dist/item/item.bonuses.js +7 -0
- package/dist/item/item.codec.d.ts +3 -0
- package/dist/item/item.codec.js +8 -0
- package/dist/item/item.conditions.d.ts +10 -0
- package/dist/item/item.conditions.js +8 -0
- package/dist/item/item.conditions.types.d.ts +28 -0
- package/dist/item/item.conditions.types.js +0 -0
- package/dist/item/item.enrichment.d.ts +4 -0
- package/dist/item/item.enrichment.js +9 -0
- package/dist/item/item.entity-type.d.ts +2 -0
- package/dist/item/item.generatable.d.ts +2 -0
- package/dist/item/item.parser.d.ts +3 -0
- package/dist/item/item.parser.js +7 -0
- package/dist/item/item.schema.d.ts +174 -0
- package/dist/item/item.schema.js +8 -0
- package/dist/item/item.types.d.ts +108 -0
- package/dist/item/item.types.js +0 -0
- package/dist/monster/monster.ai-schema.d.ts +67 -0
- package/dist/monster/monster.ai-schema.js +6 -0
- package/dist/monster/monster.codec.d.ts +13 -0
- package/dist/monster/monster.enrichment.d.ts +10 -0
- package/dist/monster/monster.enrichment.js +19 -0
- package/dist/monster/monster.entity-type.d.ts +2 -0
- package/dist/monster/monster.generatable.d.ts +2 -0
- package/dist/monster/monster.parser.d.ts +3 -0
- package/dist/monster/monster.parser.js +6 -0
- package/dist/monster/monster.resolve.d.ts +10 -0
- package/dist/monster/monster.types.d.ts +29 -0
- package/dist/monster/monster.types.js +1 -0
- package/dist/npc/npc.ai-schema.d.ts +6 -0
- package/dist/npc/npc.entity-type.d.ts +2 -0
- package/dist/npc/npc.generatable.d.ts +2 -0
- package/dist/optional-feature/optional-feature.codec.d.ts +14 -0
- package/dist/optional-feature/optional-feature.codec.js +11 -0
- package/dist/optional-feature/optional-feature.entity-type.d.ts +2 -0
- package/dist/optional-feature/optional-feature.parser.d.ts +3 -0
- package/dist/optional-feature/optional-feature.parser.js +10 -0
- package/dist/optional-feature/optional-feature.schema.d.ts +236 -0
- package/dist/optional-feature/optional-feature.schema.js +9 -0
- package/dist/pack.d.ts +11 -0
- package/dist/pc/conditions.constants.d.ts +3 -0
- package/dist/pc/conditions.constants.js +8 -0
- package/dist/pc/decision-recognizer.d.ts +4 -0
- package/dist/pc/decision-recognizer.js +8 -0
- package/dist/pc/pc.conditions.d.ts +3 -0
- package/dist/pc/pc.conditions.js +6 -0
- package/dist/pc/pc.decision-engine.d.ts +97 -0
- package/dist/pc/pc.decision-engine.js +19 -0
- package/dist/pc/pc.equipment.d.ts +12 -0
- package/dist/pc/pc.equipment.js +15 -0
- package/dist/pc/pc.feature-effects.d.ts +95 -0
- package/dist/pc/pc.feature-effects.js +9 -0
- package/dist/pc/pc.formula-context.d.ts +4 -0
- package/dist/pc/pc.formula-context.js +11 -0
- package/dist/pc/pc.parser.d.ts +3 -0
- package/dist/pc/pc.parser.js +41 -0
- package/dist/pc/pc.pools.d.ts +12 -0
- package/dist/pc/pc.pools.js +15 -0
- package/dist/pc/pc.proficiencies.d.ts +8 -0
- package/dist/pc/pc.proficiencies.js +47 -0
- package/dist/pc/pc.proficiency-query.d.ts +11 -0
- package/dist/pc/pc.proficiency-query.js +17 -0
- package/dist/pc/pc.recalc.d.ts +105 -0
- package/dist/pc/pc.recalc.js +662 -0
- package/dist/pc/pc.resolver.d.ts +34 -0
- package/dist/pc/pc.resolver.js +267 -0
- package/dist/pc/pc.resource-seed.d.ts +10 -0
- package/dist/pc/pc.resource-seed.js +40 -0
- package/dist/pc/pc.rest.d.ts +23 -0
- package/dist/pc/pc.rest.js +128 -0
- package/dist/pc/pc.schema.d.ts +294 -0
- package/dist/pc/pc.schema.js +7 -0
- package/dist/pc/pc.slotting.d.ts +22 -0
- package/dist/pc/pc.slotting.js +20 -0
- package/dist/pc/pc.spellcasting.d.ts +56 -0
- package/dist/pc/pc.spellcasting.js +16 -0
- package/dist/pc/pc.table-column.d.ts +12 -0
- package/dist/pc/pc.table-column.js +8 -0
- package/dist/pc/pc.types.d.ts +514 -0
- package/dist/pc/pc.types.js +0 -0
- package/dist/race/race.codec.d.ts +9 -0
- package/dist/race/race.codec.js +13 -0
- package/dist/race/race.entity-type.d.ts +2 -0
- package/dist/race/race.parser.d.ts +3 -0
- package/dist/race/race.parser.js +12 -0
- package/dist/race/race.schema.d.ts +67 -0
- package/dist/race/race.schema.js +11 -0
- package/dist/race/race.types.d.ts +44 -0
- package/dist/race/race.types.js +0 -0
- package/dist/schemas/attack-schema.d.ts +38 -0
- package/dist/schemas/choice-schema.d.ts +5 -0
- package/dist/schemas/choice-schema.js +7 -0
- package/dist/schemas/duration-schema.d.ts +13 -0
- package/dist/schemas/duration-schema.js +6 -0
- package/dist/schemas/equipment-grant-schema.d.ts +6 -0
- package/dist/schemas/equipment-grant-schema.js +12 -0
- package/dist/schemas/feature-effect-schema.d.ts +131 -0
- package/dist/schemas/feature-effect-schema.js +6 -0
- package/dist/schemas/feature-schema.d.ts +2 -0
- package/dist/schemas/feature-schema.js +10 -0
- package/dist/schemas/index.d.ts +6 -0
- package/dist/schemas/resource-schema.d.ts +95 -0
- package/dist/schemas/resource-schema.js +12 -0
- package/dist/schemas/selection-pool-schema.d.ts +34 -0
- package/dist/schemas/selection-pool-schema.js +10 -0
- package/dist/spell/spell.access.d.ts +15 -0
- package/dist/spell/spell.access.js +25 -0
- package/dist/spell/spell.ai-schema.d.ts +24 -0
- package/dist/spell/spell.ai-schema.js +6 -0
- package/dist/spell/spell.codec.d.ts +3 -0
- package/dist/spell/spell.codec.js +8 -0
- package/dist/spell/spell.enrichment.d.ts +2 -0
- package/dist/spell/spell.enrichment.js +9 -0
- package/dist/spell/spell.entity-type.d.ts +2 -0
- package/dist/spell/spell.filter.d.ts +15 -0
- package/dist/spell/spell.filter.js +87 -0
- package/dist/spell/spell.generatable.d.ts +2 -0
- package/dist/spell/spell.parser.d.ts +3 -0
- package/dist/spell/spell.parser.js +7 -0
- package/dist/spell/spell.scaling.d.ts +14 -0
- package/dist/spell/spell.scaling.js +28 -0
- package/dist/spell/spell.schema.d.ts +31 -0
- package/dist/spell/spell.schema.js +6 -0
- package/dist/spell/spell.types.d.ts +25 -0
- package/dist/spell/spell.types.js +0 -0
- package/dist/srd-store.d.ts +53 -0
- package/dist/subclass/subclass.codec.d.ts +11 -0
- package/dist/subclass/subclass.codec.js +14 -0
- package/dist/subclass/subclass.entity-type.d.ts +2 -0
- package/dist/subclass/subclass.parser.d.ts +3 -0
- package/dist/subclass/subclass.parser.js +13 -0
- package/dist/subclass/subclass.schema.d.ts +118 -0
- package/dist/subclass/subclass.schema.js +12 -0
- package/dist/subclass/subclass.types.d.ts +20 -0
- package/dist/subclass/subclass.types.js +0 -0
- package/dist/types/abilities.d.ts +8 -0
- package/dist/types/abilities.js +0 -0
- package/dist/types/ac.d.ts +5 -0
- package/dist/types/attack.d.ts +22 -0
- package/dist/types/attack.js +0 -0
- package/dist/types/casting-option.d.ts +14 -0
- package/dist/types/casting-option.js +0 -0
- package/dist/types/choice.d.ts +66 -0
- package/dist/types/choice.js +6 -0
- package/dist/types/edition.d.ts +4 -0
- package/dist/types/edition.js +0 -0
- package/dist/types/equipment-grant.d.ts +41 -0
- package/dist/types/equipment-grant.js +0 -0
- package/dist/types/feature-effect.d.ts +79 -0
- package/dist/types/feature-effect.js +0 -0
- package/dist/types/feature.d.ts +41 -0
- package/dist/types/feature.js +0 -0
- package/dist/types/formula-context.d.ts +7 -0
- package/dist/types/formula-context.js +0 -0
- package/dist/types/hp.d.ts +4 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/item-conditions.types.d.ts +63 -0
- package/dist/types/item-conditions.types.js +0 -0
- package/dist/types/optional-feature.types.d.ts +60 -0
- package/dist/types/optional-feature.types.js +0 -0
- package/dist/types/resource.d.ts +44 -0
- package/dist/types/resource.js +0 -0
- package/dist/types/selection-pool.d.ts +37 -0
- package/dist/types/selection-pool.js +0 -0
- package/dist/types/speed.d.ts +8 -0
- package/dist/weapon/weapon.codec.d.ts +12 -0
- package/dist/weapon/weapon.codec.js +8 -0
- package/dist/weapon/weapon.entity-type.d.ts +2 -0
- package/dist/weapon/weapon.parser.d.ts +3 -0
- package/dist/weapon/weapon.parser.js +7 -0
- package/dist/weapon/weapon.schema.d.ts +34 -0
- package/dist/weapon/weapon.schema.js +6 -0
- package/dist/weapon/weapon.types.d.ts +36 -0
- package/dist/weapon/weapon.types.js +0 -0
- package/package.json +32 -0
- package/src/data-srd/ATTRIBUTION.md +2 -0
|
@@ -0,0 +1,235 @@
|
|
|
1
|
+
// src/dnd/constants.ts
|
|
2
|
+
var CR_PROFICIENCY = {
|
|
3
|
+
"0": 2,
|
|
4
|
+
"1/8": 2,
|
|
5
|
+
"1/4": 2,
|
|
6
|
+
"1/2": 2,
|
|
7
|
+
"1": 2,
|
|
8
|
+
"2": 2,
|
|
9
|
+
"3": 2,
|
|
10
|
+
"4": 2,
|
|
11
|
+
"5": 3,
|
|
12
|
+
"6": 3,
|
|
13
|
+
"7": 3,
|
|
14
|
+
"8": 3,
|
|
15
|
+
"9": 4,
|
|
16
|
+
"10": 4,
|
|
17
|
+
"11": 4,
|
|
18
|
+
"12": 4,
|
|
19
|
+
"13": 5,
|
|
20
|
+
"14": 5,
|
|
21
|
+
"15": 5,
|
|
22
|
+
"16": 5,
|
|
23
|
+
"17": 6,
|
|
24
|
+
"18": 6,
|
|
25
|
+
"19": 6,
|
|
26
|
+
"20": 6,
|
|
27
|
+
"21": 7,
|
|
28
|
+
"22": 7,
|
|
29
|
+
"23": 7,
|
|
30
|
+
"24": 7,
|
|
31
|
+
"25": 8,
|
|
32
|
+
"26": 8,
|
|
33
|
+
"27": 8,
|
|
34
|
+
"28": 8,
|
|
35
|
+
"29": 9,
|
|
36
|
+
"30": 9
|
|
37
|
+
};
|
|
38
|
+
var CR_XP = {
|
|
39
|
+
"0": 10,
|
|
40
|
+
"1/8": 25,
|
|
41
|
+
"1/4": 50,
|
|
42
|
+
"1/2": 100,
|
|
43
|
+
"1": 200,
|
|
44
|
+
"2": 450,
|
|
45
|
+
"3": 700,
|
|
46
|
+
"4": 1100,
|
|
47
|
+
"5": 1800,
|
|
48
|
+
"6": 2300,
|
|
49
|
+
"7": 2900,
|
|
50
|
+
"8": 3900,
|
|
51
|
+
"9": 5e3,
|
|
52
|
+
"10": 5900,
|
|
53
|
+
"11": 7200,
|
|
54
|
+
"12": 8400,
|
|
55
|
+
"13": 1e4,
|
|
56
|
+
"14": 11500,
|
|
57
|
+
"15": 13e3,
|
|
58
|
+
"16": 15e3,
|
|
59
|
+
"17": 18e3,
|
|
60
|
+
"18": 2e4,
|
|
61
|
+
"19": 22e3,
|
|
62
|
+
"20": 25e3,
|
|
63
|
+
"21": 33e3,
|
|
64
|
+
"22": 41e3,
|
|
65
|
+
"23": 5e4,
|
|
66
|
+
"24": 62e3,
|
|
67
|
+
"25": 75e3,
|
|
68
|
+
"26": 9e4,
|
|
69
|
+
"27": 105e3,
|
|
70
|
+
"28": 12e4,
|
|
71
|
+
"29": 135e3,
|
|
72
|
+
"30": 155e3
|
|
73
|
+
};
|
|
74
|
+
var ALL_CR_VALUES = [
|
|
75
|
+
"0",
|
|
76
|
+
"1/8",
|
|
77
|
+
"1/4",
|
|
78
|
+
"1/2",
|
|
79
|
+
"1",
|
|
80
|
+
"2",
|
|
81
|
+
"3",
|
|
82
|
+
"4",
|
|
83
|
+
"5",
|
|
84
|
+
"6",
|
|
85
|
+
"7",
|
|
86
|
+
"8",
|
|
87
|
+
"9",
|
|
88
|
+
"10",
|
|
89
|
+
"11",
|
|
90
|
+
"12",
|
|
91
|
+
"13",
|
|
92
|
+
"14",
|
|
93
|
+
"15",
|
|
94
|
+
"16",
|
|
95
|
+
"17",
|
|
96
|
+
"18",
|
|
97
|
+
"19",
|
|
98
|
+
"20",
|
|
99
|
+
"21",
|
|
100
|
+
"22",
|
|
101
|
+
"23",
|
|
102
|
+
"24",
|
|
103
|
+
"25",
|
|
104
|
+
"26",
|
|
105
|
+
"27",
|
|
106
|
+
"28",
|
|
107
|
+
"29",
|
|
108
|
+
"30"
|
|
109
|
+
];
|
|
110
|
+
var SIZE_HIT_DICE = {
|
|
111
|
+
tiny: 4,
|
|
112
|
+
small: 6,
|
|
113
|
+
medium: 8,
|
|
114
|
+
large: 10,
|
|
115
|
+
huge: 12,
|
|
116
|
+
gargantuan: 20
|
|
117
|
+
};
|
|
118
|
+
var ALL_SIZES = ["Tiny", "Small", "Medium", "Large", "Huge", "Gargantuan"];
|
|
119
|
+
var SKILL_ABILITY = {
|
|
120
|
+
"acrobatics": "dex",
|
|
121
|
+
"animal handling": "wis",
|
|
122
|
+
"arcana": "int",
|
|
123
|
+
"athletics": "str",
|
|
124
|
+
"deception": "cha",
|
|
125
|
+
"history": "int",
|
|
126
|
+
"insight": "wis",
|
|
127
|
+
"intimidation": "cha",
|
|
128
|
+
"investigation": "int",
|
|
129
|
+
"medicine": "wis",
|
|
130
|
+
"nature": "int",
|
|
131
|
+
"perception": "wis",
|
|
132
|
+
"performance": "cha",
|
|
133
|
+
"persuasion": "cha",
|
|
134
|
+
"religion": "int",
|
|
135
|
+
"sleight of hand": "dex",
|
|
136
|
+
"stealth": "dex",
|
|
137
|
+
"survival": "wis"
|
|
138
|
+
};
|
|
139
|
+
var ALL_SKILLS = [
|
|
140
|
+
"Acrobatics",
|
|
141
|
+
"Animal Handling",
|
|
142
|
+
"Arcana",
|
|
143
|
+
"Athletics",
|
|
144
|
+
"Deception",
|
|
145
|
+
"History",
|
|
146
|
+
"Insight",
|
|
147
|
+
"Intimidation",
|
|
148
|
+
"Investigation",
|
|
149
|
+
"Medicine",
|
|
150
|
+
"Nature",
|
|
151
|
+
"Perception",
|
|
152
|
+
"Performance",
|
|
153
|
+
"Persuasion",
|
|
154
|
+
"Religion",
|
|
155
|
+
"Sleight of Hand",
|
|
156
|
+
"Stealth",
|
|
157
|
+
"Survival"
|
|
158
|
+
];
|
|
159
|
+
var ABILITY_KEYS = ["str", "dex", "con", "int", "wis", "cha"];
|
|
160
|
+
var ABILITY_NAMES = {
|
|
161
|
+
str: "STR",
|
|
162
|
+
dex: "DEX",
|
|
163
|
+
con: "CON",
|
|
164
|
+
int: "INT",
|
|
165
|
+
wis: "WIS",
|
|
166
|
+
cha: "CHA"
|
|
167
|
+
};
|
|
168
|
+
var DAMAGE_TYPES = [
|
|
169
|
+
"Acid",
|
|
170
|
+
"Bludgeoning",
|
|
171
|
+
"Cold",
|
|
172
|
+
"Fire",
|
|
173
|
+
"Force",
|
|
174
|
+
"Lightning",
|
|
175
|
+
"Necrotic",
|
|
176
|
+
"Piercing",
|
|
177
|
+
"Poison",
|
|
178
|
+
"Psychic",
|
|
179
|
+
"Radiant",
|
|
180
|
+
"Slashing",
|
|
181
|
+
"Thunder"
|
|
182
|
+
];
|
|
183
|
+
var DAMAGE_NONMAGICAL_VARIANTS = [
|
|
184
|
+
"Bludgeoning, Piercing, and Slashing from Nonmagical Attacks",
|
|
185
|
+
"Bludgeoning, Piercing, and Slashing from Nonmagical Attacks not made with Silvered Weapons",
|
|
186
|
+
"Bludgeoning, Piercing, and Slashing from Nonmagical Attacks not made with Adamantine Weapons"
|
|
187
|
+
];
|
|
188
|
+
var CONDITIONS = [
|
|
189
|
+
"Blinded",
|
|
190
|
+
"Charmed",
|
|
191
|
+
"Deafened",
|
|
192
|
+
"Exhaustion",
|
|
193
|
+
"Frightened",
|
|
194
|
+
"Grappled",
|
|
195
|
+
"Incapacitated",
|
|
196
|
+
"Invisible",
|
|
197
|
+
"Paralyzed",
|
|
198
|
+
"Petrified",
|
|
199
|
+
"Poisoned",
|
|
200
|
+
"Prone",
|
|
201
|
+
"Restrained",
|
|
202
|
+
"Stunned",
|
|
203
|
+
"Unconscious"
|
|
204
|
+
];
|
|
205
|
+
var STANDARD_SENSES = ["Blindsight", "Darkvision", "Tremorsense", "Truesight"];
|
|
206
|
+
var ALIGNMENT_ETHICAL = ["Lawful", "Neutral", "Chaotic", "Unaligned", "Any"];
|
|
207
|
+
var ALIGNMENT_MORAL = ["Good", "Neutral", "Evil"];
|
|
208
|
+
var ALL_SECTIONS = [
|
|
209
|
+
"Traits",
|
|
210
|
+
"Actions",
|
|
211
|
+
"Reactions",
|
|
212
|
+
"Bonus Actions",
|
|
213
|
+
"Legendary Actions",
|
|
214
|
+
"Lair Actions",
|
|
215
|
+
"Mythic Actions"
|
|
216
|
+
];
|
|
217
|
+
|
|
218
|
+
export {
|
|
219
|
+
CR_PROFICIENCY,
|
|
220
|
+
CR_XP,
|
|
221
|
+
ALL_CR_VALUES,
|
|
222
|
+
SIZE_HIT_DICE,
|
|
223
|
+
ALL_SIZES,
|
|
224
|
+
SKILL_ABILITY,
|
|
225
|
+
ALL_SKILLS,
|
|
226
|
+
ABILITY_KEYS,
|
|
227
|
+
ABILITY_NAMES,
|
|
228
|
+
DAMAGE_TYPES,
|
|
229
|
+
DAMAGE_NONMAGICAL_VARIANTS,
|
|
230
|
+
CONDITIONS,
|
|
231
|
+
STANDARD_SENSES,
|
|
232
|
+
ALIGNMENT_ETHICAL,
|
|
233
|
+
ALIGNMENT_MORAL,
|
|
234
|
+
ALL_SECTIONS
|
|
235
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
// src/schemas/duration-schema.ts
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
var durationSchema = z.union([
|
|
4
|
+
z.literal("instantaneous"),
|
|
5
|
+
z.literal("until-dispelled"),
|
|
6
|
+
z.object({
|
|
7
|
+
amount: z.number().int().positive(),
|
|
8
|
+
unit: z.enum(["round", "minute", "hour", "day"])
|
|
9
|
+
}).strict()
|
|
10
|
+
]);
|
|
11
|
+
|
|
12
|
+
export {
|
|
13
|
+
durationSchema
|
|
14
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
// src/armor/armor.schema.ts
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
var acSchema = z.object({
|
|
4
|
+
base: z.number().int(),
|
|
5
|
+
flat: z.number().int().default(0),
|
|
6
|
+
add_dex: z.boolean().default(false),
|
|
7
|
+
dex_max: z.number().int().nonnegative().optional(),
|
|
8
|
+
add_con: z.boolean().default(false),
|
|
9
|
+
add_wis: z.boolean().default(false),
|
|
10
|
+
description: z.string().optional()
|
|
11
|
+
});
|
|
12
|
+
var armorEntitySchema = z.object({
|
|
13
|
+
name: z.string().min(1),
|
|
14
|
+
slug: z.string().min(1),
|
|
15
|
+
category: z.string(),
|
|
16
|
+
ac: acSchema,
|
|
17
|
+
strength_requirement: z.number().int().optional(),
|
|
18
|
+
stealth_disadvantage: z.boolean().optional(),
|
|
19
|
+
weight: z.union([z.number(), z.string()]).optional(),
|
|
20
|
+
cost: z.string().optional(),
|
|
21
|
+
rarity: z.string().optional(),
|
|
22
|
+
source: z.string().optional(),
|
|
23
|
+
page: z.number().int().optional(),
|
|
24
|
+
edition: z.string().optional(),
|
|
25
|
+
entries: z.array(z.unknown()).optional(),
|
|
26
|
+
raw: z.record(z.string(), z.unknown()).optional()
|
|
27
|
+
}).loose();
|
|
28
|
+
|
|
29
|
+
export {
|
|
30
|
+
armorEntitySchema
|
|
31
|
+
};
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ABILITY_KEYS
|
|
3
|
+
} from "./chunk-WP2CX2JO.js";
|
|
4
|
+
|
|
5
|
+
// src/pc/pc.feature-effects.ts
|
|
6
|
+
function emptyFeatureEffectTotals() {
|
|
7
|
+
return {
|
|
8
|
+
initiative_bonus: 0,
|
|
9
|
+
hp_per_level_bonus: 0,
|
|
10
|
+
speed_walk_bonus: 0,
|
|
11
|
+
speed_walk_set: 0,
|
|
12
|
+
senses: { darkvision: 0, blindsight: 0, tremorsense: 0, truesight: 0 },
|
|
13
|
+
ac_terms: [],
|
|
14
|
+
resistances: [],
|
|
15
|
+
condition_immunities: [],
|
|
16
|
+
proficiencies: { skills: [], tools: [], languages: [], saves: [], armor: [], weapons: [] },
|
|
17
|
+
weaponAbility: null,
|
|
18
|
+
rollModifiers: [],
|
|
19
|
+
critRange: 20,
|
|
20
|
+
extraAttack: 0,
|
|
21
|
+
attackNotes: []
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
var ABILITY_NAME_TO_KEY = {
|
|
25
|
+
strength: "str",
|
|
26
|
+
dexterity: "dex",
|
|
27
|
+
constitution: "con",
|
|
28
|
+
intelligence: "int",
|
|
29
|
+
wisdom: "wis",
|
|
30
|
+
charisma: "cha"
|
|
31
|
+
};
|
|
32
|
+
function normalizeAbility(value) {
|
|
33
|
+
var _a;
|
|
34
|
+
const k = value.trim().toLowerCase();
|
|
35
|
+
if (ABILITY_KEYS.includes(k)) return k;
|
|
36
|
+
return (_a = ABILITY_NAME_TO_KEY[k]) != null ? _a : null;
|
|
37
|
+
}
|
|
38
|
+
function pushUnique(list, value) {
|
|
39
|
+
const key = value.trim().toLowerCase();
|
|
40
|
+
if (!key) return;
|
|
41
|
+
if (!list.some((v) => v.trim().toLowerCase() === key)) list.push(value.trim());
|
|
42
|
+
}
|
|
43
|
+
function computeFeatureEffects(features, opts) {
|
|
44
|
+
var _a, _b, _c;
|
|
45
|
+
const out = emptyFeatureEffectTotals();
|
|
46
|
+
for (const rf of features) {
|
|
47
|
+
if (rf.feature.activatable === true) {
|
|
48
|
+
const id = rf.feature.id;
|
|
49
|
+
if (!id || !((_a = opts == null ? void 0 : opts.activeBuffs) == null ? void 0 : _a.has(id))) continue;
|
|
50
|
+
}
|
|
51
|
+
for (const eff of (_b = rf.feature.effects) != null ? _b : []) {
|
|
52
|
+
applyEffect(out, eff, (_c = rf.feature.name) != null ? _c : "Feature");
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return out;
|
|
56
|
+
}
|
|
57
|
+
function applyEffect(out, eff, label) {
|
|
58
|
+
var _a;
|
|
59
|
+
switch (eff.kind) {
|
|
60
|
+
case "initiative-bonus":
|
|
61
|
+
out.initiative_bonus += eff.value;
|
|
62
|
+
break;
|
|
63
|
+
case "hp-per-level-bonus":
|
|
64
|
+
out.hp_per_level_bonus += eff.value;
|
|
65
|
+
break;
|
|
66
|
+
case "speed-bonus":
|
|
67
|
+
if (eff.mode === "walk") {
|
|
68
|
+
if (eff.set) out.speed_walk_set = Math.max(out.speed_walk_set, eff.value);
|
|
69
|
+
else out.speed_walk_bonus += eff.value;
|
|
70
|
+
}
|
|
71
|
+
break;
|
|
72
|
+
case "sense":
|
|
73
|
+
out.senses[eff.type] = Math.max(out.senses[eff.type], eff.range);
|
|
74
|
+
break;
|
|
75
|
+
case "resistance":
|
|
76
|
+
pushUnique(out.resistances, eff.damage_type);
|
|
77
|
+
break;
|
|
78
|
+
case "immune-condition":
|
|
79
|
+
if (!eff.while) pushUnique(out.condition_immunities, eff.condition);
|
|
80
|
+
break;
|
|
81
|
+
case "proficiency": {
|
|
82
|
+
if (eff.proficiency_type === "skill") {
|
|
83
|
+
pushUnique(out.proficiencies.skills, eff.value.toLowerCase().replace(/\s+/g, "-"));
|
|
84
|
+
} else if (eff.proficiency_type === "tool") {
|
|
85
|
+
pushUnique(out.proficiencies.tools, eff.value);
|
|
86
|
+
} else if (eff.proficiency_type === "language") {
|
|
87
|
+
pushUnique(out.proficiencies.languages, eff.value);
|
|
88
|
+
} else if (eff.proficiency_type === "armor") {
|
|
89
|
+
pushUnique(out.proficiencies.armor, eff.value.toLowerCase());
|
|
90
|
+
} else if (eff.proficiency_type === "weapon") {
|
|
91
|
+
pushUnique(out.proficiencies.weapons, eff.value.toLowerCase());
|
|
92
|
+
} else {
|
|
93
|
+
const ab = normalizeAbility(eff.value);
|
|
94
|
+
if (ab && !out.proficiencies.saves.includes(ab)) out.proficiencies.saves.push(ab);
|
|
95
|
+
}
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
case "ac-bonus":
|
|
99
|
+
out.ac_terms.push({ value: eff.value, requires_armor: eff.requires_armor === true, label });
|
|
100
|
+
break;
|
|
101
|
+
case "weapon-ability":
|
|
102
|
+
if (out.weaponAbility === null && eff.ability !== "spellcasting") out.weaponAbility = eff.ability;
|
|
103
|
+
break;
|
|
104
|
+
case "roll-modifier":
|
|
105
|
+
out.rollModifiers.push({ mode: eff.mode, roll: eff.roll, scope: eff.scope, condition: eff.condition, label });
|
|
106
|
+
break;
|
|
107
|
+
case "crit-range":
|
|
108
|
+
if (((_a = eff.applies_to) != null ? _a : "weapon") !== "spell") out.critRange = Math.min(out.critRange, eff.min_roll);
|
|
109
|
+
break;
|
|
110
|
+
case "extra-attack":
|
|
111
|
+
out.extraAttack = Math.max(out.extraAttack, eff.count);
|
|
112
|
+
break;
|
|
113
|
+
case "reroll-damage":
|
|
114
|
+
out.attackNotes.push(`Reroll ${eff.max_reroll}s${eff.once_per_die ? " (once/die)" : ""}`);
|
|
115
|
+
break;
|
|
116
|
+
case "attack-rule":
|
|
117
|
+
if (eff.flag === "no-ranged-in-melee-disadvantage") out.attackNotes.push("No disadvantage firing in melee");
|
|
118
|
+
break;
|
|
119
|
+
default:
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export {
|
|
125
|
+
emptyFeatureEffectTotals,
|
|
126
|
+
computeFeatureEffects
|
|
127
|
+
};
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// src/spell/spell.schema.ts
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
var castingOptionSchema = z.object({
|
|
4
|
+
type: z.string(),
|
|
5
|
+
damage_roll: z.string().optional(),
|
|
6
|
+
target_count: z.number().optional(),
|
|
7
|
+
duration: z.string().optional(),
|
|
8
|
+
range: z.number().optional(),
|
|
9
|
+
concentration: z.boolean().optional(),
|
|
10
|
+
shape_size: z.number().optional(),
|
|
11
|
+
desc: z.string().optional()
|
|
12
|
+
});
|
|
13
|
+
var spellEntitySchema = z.object({
|
|
14
|
+
name: z.string().min(1),
|
|
15
|
+
level: z.number().int().min(0).optional(),
|
|
16
|
+
school: z.string().optional(),
|
|
17
|
+
casting_time: z.string().optional(),
|
|
18
|
+
range: z.string().optional(),
|
|
19
|
+
components: z.string().optional(),
|
|
20
|
+
duration: z.string().optional(),
|
|
21
|
+
concentration: z.boolean().optional(),
|
|
22
|
+
ritual: z.boolean().optional(),
|
|
23
|
+
classes: z.array(z.string()).optional(),
|
|
24
|
+
description: z.string().optional(),
|
|
25
|
+
at_higher_levels: z.array(z.string()).optional(),
|
|
26
|
+
damage: z.object({ types: z.array(z.string()) }).optional(),
|
|
27
|
+
saving_throw: z.object({ ability: z.string() }).optional(),
|
|
28
|
+
casting_options: z.array(castingOptionSchema).optional()
|
|
29
|
+
}).strict();
|
|
30
|
+
|
|
31
|
+
export {
|
|
32
|
+
spellEntitySchema
|
|
33
|
+
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import {
|
|
2
|
+
parseBackground
|
|
3
|
+
} from "./chunk-DRNZJNJP.js";
|
|
4
|
+
|
|
5
|
+
// src/background/background.codec.ts
|
|
6
|
+
import yaml from "js-yaml";
|
|
7
|
+
var backgroundCodec = {
|
|
8
|
+
parse(doc) {
|
|
9
|
+
return parseBackground(doc.body);
|
|
10
|
+
},
|
|
11
|
+
serialize(entity) {
|
|
12
|
+
return yaml.dump(entity, { lineWidth: -1, sortKeys: false });
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export {
|
|
17
|
+
backgroundCodec
|
|
18
|
+
};
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import {
|
|
2
|
+
poolGrantSchema,
|
|
3
|
+
selectionPoolSchema,
|
|
4
|
+
tabDeclSchema
|
|
5
|
+
} from "./chunk-4TIJKN6O.js";
|
|
6
|
+
import {
|
|
7
|
+
featureSchema
|
|
8
|
+
} from "./chunk-DABBCYTT.js";
|
|
9
|
+
import {
|
|
10
|
+
resourceSchema
|
|
11
|
+
} from "./chunk-PZOWBI3B.js";
|
|
12
|
+
import {
|
|
13
|
+
startingEquipmentEntrySchema,
|
|
14
|
+
startingGoldSchema
|
|
15
|
+
} from "./chunk-3DZ74AKK.js";
|
|
16
|
+
|
|
17
|
+
// src/class/class.schema.ts
|
|
18
|
+
import { z } from "zod";
|
|
19
|
+
var abilityEnum = z.enum(["str", "dex", "con", "int", "wis", "cha"]);
|
|
20
|
+
var skillEnum = z.enum([
|
|
21
|
+
"acrobatics",
|
|
22
|
+
"animal-handling",
|
|
23
|
+
"arcana",
|
|
24
|
+
"athletics",
|
|
25
|
+
"deception",
|
|
26
|
+
"history",
|
|
27
|
+
"insight",
|
|
28
|
+
"intimidation",
|
|
29
|
+
"investigation",
|
|
30
|
+
"medicine",
|
|
31
|
+
"nature",
|
|
32
|
+
"perception",
|
|
33
|
+
"performance",
|
|
34
|
+
"persuasion",
|
|
35
|
+
"religion",
|
|
36
|
+
"sleight-of-hand",
|
|
37
|
+
"stealth",
|
|
38
|
+
"survival"
|
|
39
|
+
]);
|
|
40
|
+
var armorCategoryEnum = z.enum(["light", "medium", "heavy", "shield"]);
|
|
41
|
+
var weaponCategoryEnum = z.enum(["simple", "martial"]);
|
|
42
|
+
var hitDieEnum = z.enum(["d6", "d8", "d10", "d12"]);
|
|
43
|
+
var editionEnum = z.enum(["2014", "2024"]);
|
|
44
|
+
var weaponProficiencySchema = z.object({
|
|
45
|
+
fixed: z.array(z.string()).optional(),
|
|
46
|
+
categories: z.array(weaponCategoryEnum).optional(),
|
|
47
|
+
conditional: z.array(z.object({
|
|
48
|
+
category: weaponCategoryEnum,
|
|
49
|
+
where_property: z.array(z.string()).nonempty()
|
|
50
|
+
})).optional()
|
|
51
|
+
}).refine(
|
|
52
|
+
(w) => {
|
|
53
|
+
var _a, _b, _c, _d, _e, _f;
|
|
54
|
+
return ((_b = (_a = w.fixed) == null ? void 0 : _a.length) != null ? _b : 0) + ((_d = (_c = w.categories) == null ? void 0 : _c.length) != null ? _d : 0) + ((_f = (_e = w.conditional) == null ? void 0 : _e.length) != null ? _f : 0) > 0;
|
|
55
|
+
},
|
|
56
|
+
{ message: "weapon proficiency must declare at least one of fixed/categories/conditional" }
|
|
57
|
+
);
|
|
58
|
+
var toolProficiencySchema = z.object({
|
|
59
|
+
fixed: z.array(z.string()).optional(),
|
|
60
|
+
choice: z.object({
|
|
61
|
+
count: z.number().int().positive(),
|
|
62
|
+
from: z.array(z.string()).nonempty()
|
|
63
|
+
}).optional()
|
|
64
|
+
}).refine((t) => {
|
|
65
|
+
var _a, _b;
|
|
66
|
+
return ((_b = (_a = t.fixed) == null ? void 0 : _a.length) != null ? _b : 0) > 0 || t.choice !== void 0;
|
|
67
|
+
}, {
|
|
68
|
+
message: "tool proficiency must declare fixed or choice"
|
|
69
|
+
});
|
|
70
|
+
var casterTypeEnum = z.enum(["full", "half", "third", "pact"]);
|
|
71
|
+
var spellcastingSchema = z.object({
|
|
72
|
+
caster_type: casterTypeEnum,
|
|
73
|
+
ability: abilityEnum,
|
|
74
|
+
preparation: z.enum(["known", "prepared"]),
|
|
75
|
+
spell_list: z.string().min(1)
|
|
76
|
+
});
|
|
77
|
+
var weaponMasterySchema = z.object({
|
|
78
|
+
starting_count: z.number().int().nonnegative(),
|
|
79
|
+
scaling: z.record(z.string(), z.number().int().nonnegative()).optional()
|
|
80
|
+
});
|
|
81
|
+
var classTableRowSchema = z.object({
|
|
82
|
+
prof_bonus: z.number().int().positive(),
|
|
83
|
+
columns: z.record(z.string(), z.union([z.string(), z.number()])).optional(),
|
|
84
|
+
feature_ids: z.array(z.string())
|
|
85
|
+
});
|
|
86
|
+
var classEntitySchema = z.object({
|
|
87
|
+
slug: z.string().min(1),
|
|
88
|
+
name: z.string().min(1),
|
|
89
|
+
edition: editionEnum,
|
|
90
|
+
source: z.string().min(1),
|
|
91
|
+
description: z.string(),
|
|
92
|
+
hit_die: hitDieEnum,
|
|
93
|
+
primary_abilities: z.array(abilityEnum).nonempty(),
|
|
94
|
+
saving_throws: z.array(abilityEnum).length(2),
|
|
95
|
+
proficiencies: z.object({
|
|
96
|
+
armor: z.array(armorCategoryEnum),
|
|
97
|
+
weapons: weaponProficiencySchema,
|
|
98
|
+
tools: toolProficiencySchema.optional()
|
|
99
|
+
}),
|
|
100
|
+
skill_choices: z.object({
|
|
101
|
+
count: z.number().int().positive(),
|
|
102
|
+
from: z.array(skillEnum).nonempty()
|
|
103
|
+
}),
|
|
104
|
+
starting_equipment: z.array(startingEquipmentEntrySchema),
|
|
105
|
+
starting_gold: startingGoldSchema.optional(),
|
|
106
|
+
spellcasting: spellcastingSchema.nullable(),
|
|
107
|
+
subclass_level: z.number().int().positive(),
|
|
108
|
+
subclass_feature_name: z.string().min(1),
|
|
109
|
+
weapon_mastery: weaponMasterySchema.nullable(),
|
|
110
|
+
epic_boon_level: z.number().int().positive().nullable(),
|
|
111
|
+
table: z.record(z.string(), classTableRowSchema),
|
|
112
|
+
features_by_level: z.record(z.string(), z.array(featureSchema)),
|
|
113
|
+
resources: z.array(resourceSchema),
|
|
114
|
+
selection_pools: z.array(selectionPoolSchema).optional(),
|
|
115
|
+
pool_grants: z.array(poolGrantSchema).optional(),
|
|
116
|
+
tabs: z.array(tabDeclSchema).optional()
|
|
117
|
+
});
|
|
118
|
+
|
|
119
|
+
export {
|
|
120
|
+
classEntitySchema
|
|
121
|
+
};
|