@optolith/database-schema 0.99.0 → 0.101.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/CHANGELOG.md +40 -0
- package/gen/types.d.ts +628 -123
- package/lib/main.js +1 -0
- package/lib/types/Culture.d.ts +312 -152
- package/lib/types/Locale.d.ts +8 -1
- package/lib/types/Locale.js +5 -0
- package/lib/types/Profession.d.ts +807 -466
- package/lib/types/Profession.js +20 -0
- package/lib/types/Race.d.ts +624 -304
- package/lib/types/_ActivatableAdvanced.d.ts +28 -0
- package/lib/types/_ActivatableAdvanced.js +57 -1
- package/lib/types/_ActivatableCombat.d.ts +45 -41
- package/lib/types/_ActivatableCombat.js +71 -77
- package/lib/types/_CommonnessRatedAdvantageDisadvantage.d.ts +80 -2
- package/lib/types/_CommonnessRatedAdvantageDisadvantage.js +58 -3
- package/lib/types/_Identifier.d.ts +1 -0
- package/lib/types/_Identifier.js +2 -0
- package/lib/types/_IdentifierGroup.d.ts +1 -0
- package/lib/types/_IdentifierGroup.js +2 -1
- package/lib/types/equipment/EquipmentPackage.d.ts +1 -0
- package/lib/types/equipment/item/ItemComponent.d.ts +128 -0
- package/lib/types/equipment/item/ItemComponent.js +316 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.js +1 -0
- package/lib/types/prerequisites/PrerequisiteGroups.d.ts +80 -5
- package/lib/types/prerequisites/PrerequisiteGroups.js +5 -1
- package/lib/types/prerequisites/single/RatedMinimumNumberPrerequisite.js +2 -2
- package/lib/types/prerequisites/single/RatedMinimumNumberPrerequisiteForProfession.d.ts +150 -0
- package/lib/types/prerequisites/single/RatedMinimumNumberPrerequisiteForProfession.js +53 -0
- package/lib/types/specialAbility/AdvancedCombatSpecialAbility.d.ts +42 -41
- package/lib/types/specialAbility/BrawlingSpecialAbility.d.ts +42 -41
- package/lib/types/specialAbility/CombatSpecialAbility.d.ts +42 -41
- package/lib/types/specialAbility/CombatStyleSpecialAbility.d.ts +70 -41
- package/lib/types/specialAbility/CommandSpecialAbility.d.ts +42 -41
- package/lib/types/specialAbility/LiturgicalStyleSpecialAbility.d.ts +28 -0
- package/lib/types/specialAbility/MagicStyleSpecialAbility.d.ts +28 -0
- package/lib/types/specialAbility/MagicalTradition.d.ts +1 -0
- package/lib/types/specialAbility/MagicalTradition.js +5 -1
- package/lib/types/specialAbility/SkillStyleSpecialAbility.d.ts +28 -0
- package/package.json +2 -2
package/lib/types/Profession.js
CHANGED
|
@@ -514,6 +514,9 @@ const ProfessionPackageOptions = DB.TypeAlias(import.meta.url, {
|
|
|
514
514
|
liturgies: DB.Optional({
|
|
515
515
|
type: DB.IncludeIdentifier(LiturgiesOptions),
|
|
516
516
|
}),
|
|
517
|
+
lockAdventurePoints: DB.Optional({
|
|
518
|
+
type: DB.IncludeIdentifier(LockAdventurePointsOption),
|
|
519
|
+
}),
|
|
517
520
|
}, { minProperties: 1 }),
|
|
518
521
|
});
|
|
519
522
|
const ProfessionVariantPackageOptions = DB.TypeAlias(import.meta.url, {
|
|
@@ -768,6 +771,23 @@ const SpecialAbilitiesForAdventurePointsOption = DB.TypeAlias(import.meta.url, {
|
|
|
768
771
|
}),
|
|
769
772
|
}),
|
|
770
773
|
});
|
|
774
|
+
const LockAdventurePointsOption = DB.TypeAlias(import.meta.url, {
|
|
775
|
+
name: "LockAdventurePointsOption",
|
|
776
|
+
comment: `Keep AP for use after character creation to buy or improve entries.`,
|
|
777
|
+
type: () => DB.Object({
|
|
778
|
+
apValue: DB.Required({
|
|
779
|
+
comment: "The AP value that is going to be locked for later use.",
|
|
780
|
+
type: DB.Integer({ minimum: 1 }),
|
|
781
|
+
}),
|
|
782
|
+
entries: DB.Required({
|
|
783
|
+
comment: "The entries the AP can be used for.",
|
|
784
|
+
type: DB.Array(DB.IncludeIdentifier(SpellworkIdentifier), {
|
|
785
|
+
minItems: 1,
|
|
786
|
+
uniqueItems: true,
|
|
787
|
+
}),
|
|
788
|
+
}),
|
|
789
|
+
}),
|
|
790
|
+
});
|
|
771
791
|
const ProfessionName = DB.TypeAlias(import.meta.url, {
|
|
772
792
|
name: "ProfessionName",
|
|
773
793
|
comment: "The name of the profession that may have sex-specific names. Useful if the term in generell is different (i.e. actor/actress) or if the language uses gendered nouns. The default name is also used in case neither the male nor female name strictly applies.",
|