From 5cf42354268802de59be86270dc6614e2b059025 Mon Sep 17 00:00:00 2001 From: Lector Date: Sun, 31 May 2026 11:59:35 +0200 Subject: [PATCH 1/3] Added an optional maximum to the SkillsOptions --- src/types/Profession.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/types/Profession.ts b/src/types/Profession.ts index be9f1d66..6715ce0e 100644 --- a/src/types/Profession.ts +++ b/src/types/Profession.ts @@ -747,6 +747,10 @@ const SkillsOptions = DB.TypeAlias(import.meta.url, { comment: "The AP value you can buy skills for.", type: DB.Integer({ minimum: 1 }), }), + maximum: DB.Optional({ + comment: "If specified, you can only improve a single skill up to that many times with the provided AP value.", + type: DB.Integer({ minimum: 1 }), + }), }), customConstraints: ({ instanceContent, getInstanceById }) => [ From 10bee6c2d181f6adaa867b2625fa00347a3c1b7d Mon Sep 17 00:00:00 2001 From: Lector Date: Sun, 31 May 2026 12:06:04 +0200 Subject: [PATCH 2/3] prettier --- src/types/Profession.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/types/Profession.ts b/src/types/Profession.ts index 6715ce0e..6ecf1985 100644 --- a/src/types/Profession.ts +++ b/src/types/Profession.ts @@ -748,7 +748,8 @@ const SkillsOptions = DB.TypeAlias(import.meta.url, { type: DB.Integer({ minimum: 1 }), }), maximum: DB.Optional({ - comment: "If specified, you can only improve a single skill up to that many times with the provided AP value.", + comment: + "If specified, you can only improve a single skill up to that many times with the provided AP value.", type: DB.Integer({ minimum: 1 }), }), }), From fcf0a4e785becbac5b868599e26296d4583cf7d3 Mon Sep 17 00:00:00 2001 From: Lector Date: Sun, 31 May 2026 12:17:46 +0200 Subject: [PATCH 3/3] Corrected description of new maximum field --- src/types/Profession.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/types/Profession.ts b/src/types/Profession.ts index 6ecf1985..84a0ccff 100644 --- a/src/types/Profession.ts +++ b/src/types/Profession.ts @@ -749,7 +749,7 @@ const SkillsOptions = DB.TypeAlias(import.meta.url, { }), maximum: DB.Optional({ comment: - "If specified, you can only improve a single skill up to that many times with the provided AP value.", + "If specified, you can only improve a single skill to that maximum with the provided AP value.", type: DB.Integer({ minimum: 1 }), }), }),