Compare commits

...

2 Commits

Author SHA1 Message Date
Lector 755b559ea4 Changed minimum of arithmethic to 1 2026-06-10 22:02:58 +02:00
Lector 8afbc750c3 Added "Add" and "Subtract" to the arithmethic options. 2026-06-10 21:57:06 +02:00
@@ -14,6 +14,8 @@ const CheckResultArithmetic = DB.Enum(import.meta.url, {
name: "CheckResultArithmetic",
comment: "Defines how the the `value` is set off against the check result.",
values: () => ({
Add: DB.EnumCase({ type: null }),
Subtract: DB.EnumCase({ type: null }),
Multiply: DB.EnumCase({ type: null }),
Divide: DB.EnumCase({ type: null }),
}),
@@ -29,7 +31,7 @@ export const CheckResultBasedModifier = DB.TypeAlias(import.meta.url, {
}),
value: DB.Required({
comment: "The value that is applied to the `base` using the defined `arithmetic`.",
type: DB.Integer({ minimum: 2 }),
type: DB.Integer({ minimum: 1 }),
}),
}),
})