@optolith/database-schema 0.47.3 → 0.48.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 +18 -0
- package/gen/types.d.ts +114 -202
- package/lib/types/Ceremony.d.ts +7 -80
- package/lib/types/Culture.d.ts +4 -0
- package/lib/types/Culture.js +10 -0
- package/lib/types/FamiliarsTrick.d.ts +3 -3
- package/lib/types/FamiliarsTrick.js +2 -2
- package/lib/types/LiturgicalChant.d.ts +7 -80
- package/lib/types/Ritual.d.ts +7 -80
- package/lib/types/Spell.d.ts +7 -80
- package/lib/types/_ActivatableSkill.d.ts +21 -218
- package/lib/types/_ActivatableSkill.js +15 -0
- package/lib/types/_ActivatableSkillDuration.d.ts +6 -50
- package/lib/types/_ActivatableSkillDuration.js +8 -13
- package/lib/types/_ActivatableSkillRange.d.ts +11 -22
- package/lib/types/_ActivatableSkillRange.js +7 -12
- package/lib/types/magicalActions/AnimistPower.d.ts +3 -29
- package/lib/types/magicalActions/AnimistPower.js +2 -3
- package/lib/types/magicalActions/Bannzeichen.d.ts +6 -28
- package/lib/types/magicalActions/Bannzeichen.js +4 -4
- package/lib/types/magicalActions/Curse.d.ts +6 -58
- package/lib/types/magicalActions/Curse.js +3 -5
- package/lib/types/magicalActions/DominationRitual.d.ts +6 -58
- package/lib/types/magicalActions/DominationRitual.js +3 -18
- package/lib/types/magicalActions/GeodeRitual.d.ts +3 -29
- package/lib/types/magicalActions/GeodeRitual.js +2 -3
- package/lib/types/magicalActions/GoblinRitual.d.ts +7 -33
- package/lib/types/magicalActions/GoblinRitual.js +7 -8
- package/lib/types/magicalActions/JesterTrick.d.ts +9 -87
- package/lib/types/magicalActions/JesterTrick.js +2 -16
- package/lib/types/magicalActions/MagicalRune.d.ts +6 -28
- package/lib/types/magicalActions/MagicalRune.js +3 -3
- package/lib/types/magicalActions/ZibiljaRitual.d.ts +5 -58
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
* @title Activatable Skill
|
|
3
3
|
*/
|
|
4
4
|
import * as DB from "tsondb/schema/dsl";
|
|
5
|
+
import { MathOperation } from "./_MathExpression.ts";
|
|
5
6
|
export declare const OneTimePerformanceParameters: DB.TypeAlias<"OneTimePerformanceParameters", DB.Object<{
|
|
6
7
|
casting_time: DB.MemberDecl<DB.TypeArgument<DB.Param<"CastingTime", DB.Type>>, true>;
|
|
7
8
|
cost: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"OneTimeCost", {
|
|
@@ -171,29 +172,9 @@ export declare const OneTimePerformanceParameters: DB.TypeAlias<"OneTimePerforma
|
|
|
171
172
|
Self: DB.EnumCase<null>;
|
|
172
173
|
Global: DB.EnumCase<null>;
|
|
173
174
|
Touch: DB.EnumCase<null>;
|
|
174
|
-
|
|
175
|
+
Expression: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"ExpressionBasedRange", DB.Object<{
|
|
175
176
|
is_maximum: DB.MemberDecl<DB.Boolean, false>;
|
|
176
|
-
value: DB.MemberDecl<DB.
|
|
177
|
-
unit: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"RangeUnit", {
|
|
178
|
-
Steps: DB.EnumCase<null>;
|
|
179
|
-
Miles: DB.EnumCase<null>;
|
|
180
|
-
}, []>>, true>;
|
|
181
|
-
is_radius: DB.MemberDecl<DB.Boolean, false>;
|
|
182
|
-
}>, []>>>;
|
|
183
|
-
CheckResultBased: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"CheckResultBasedRange", DB.Object<{
|
|
184
|
-
is_maximum: DB.MemberDecl<DB.Boolean, false>;
|
|
185
|
-
base: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"CheckResultValue", {
|
|
186
|
-
QualityLevels: DB.EnumCase<null>;
|
|
187
|
-
SkillPoints: DB.EnumCase<null>;
|
|
188
|
-
SkillRating: DB.EnumCase<null>;
|
|
189
|
-
}, []>>, true>;
|
|
190
|
-
modifier: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"CheckResultBasedModifier", DB.Object<{
|
|
191
|
-
arithmetic: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"CheckResultArithmetic", {
|
|
192
|
-
Multiply: DB.EnumCase<null>;
|
|
193
|
-
Divide: DB.EnumCase<null>;
|
|
194
|
-
}, []>>, true>;
|
|
195
|
-
value: DB.MemberDecl<DB.Integer, true>;
|
|
196
|
-
}>, []>>, false>;
|
|
177
|
+
value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ExpressionBasedParameterValue", DB.IncludeIdentifier<DB.Param<string, DB.Type>[], MathOperation>, []>>, true>;
|
|
197
178
|
unit: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"RangeUnit", {
|
|
198
179
|
Steps: DB.EnumCase<null>;
|
|
199
180
|
Miles: DB.EnumCase<null>;
|
|
@@ -244,42 +225,9 @@ export declare const OneTimePerformanceParameters: DB.TypeAlias<"OneTimePerforma
|
|
|
244
225
|
}>, []>>, false>;
|
|
245
226
|
}>, false>;
|
|
246
227
|
}>, []>>>;
|
|
247
|
-
|
|
248
|
-
is_maximum: DB.MemberDecl<DB.Boolean, false>;
|
|
249
|
-
value: DB.MemberDecl<DB.Integer, true>;
|
|
250
|
-
unit: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"DurationUnit", {
|
|
251
|
-
Seconds: DB.EnumCase<null>;
|
|
252
|
-
Minutes: DB.EnumCase<null>;
|
|
253
|
-
Hours: DB.EnumCase<null>;
|
|
254
|
-
Days: DB.EnumCase<null>;
|
|
255
|
-
Weeks: DB.EnumCase<null>;
|
|
256
|
-
Months: DB.EnumCase<null>;
|
|
257
|
-
Years: DB.EnumCase<null>;
|
|
258
|
-
Centuries: DB.EnumCase<null>;
|
|
259
|
-
Actions: DB.EnumCase<null>;
|
|
260
|
-
CombatRounds: DB.EnumCase<null>;
|
|
261
|
-
}, []>>, true>;
|
|
262
|
-
translations: DB.MemberDecl<DB.NestedEntityMap<"FixedDurationTranslation", {
|
|
263
|
-
replacement: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextReplace", DB.Object<{
|
|
264
|
-
full: DB.MemberDecl<DB.String, true>;
|
|
265
|
-
compressed: DB.MemberDecl<DB.String, true>;
|
|
266
|
-
}>, []>>, false>;
|
|
267
|
-
}>, false>;
|
|
268
|
-
}>, []>>>;
|
|
269
|
-
CheckResultBased: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"CheckResultBasedDuration", DB.Object<{
|
|
228
|
+
Expression: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"ExpressionBasedDuration", DB.Object<{
|
|
270
229
|
is_maximum: DB.MemberDecl<DB.Boolean, false>;
|
|
271
|
-
|
|
272
|
-
QualityLevels: DB.EnumCase<null>;
|
|
273
|
-
SkillPoints: DB.EnumCase<null>;
|
|
274
|
-
SkillRating: DB.EnumCase<null>;
|
|
275
|
-
}, []>>, true>;
|
|
276
|
-
modifier: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"CheckResultBasedModifier", DB.Object<{
|
|
277
|
-
arithmetic: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"CheckResultArithmetic", {
|
|
278
|
-
Multiply: DB.EnumCase<null>;
|
|
279
|
-
Divide: DB.EnumCase<null>;
|
|
280
|
-
}, []>>, true>;
|
|
281
|
-
value: DB.MemberDecl<DB.Integer, true>;
|
|
282
|
-
}>, []>>, false>;
|
|
230
|
+
value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ExpressionBasedParameterValue", DB.IncludeIdentifier<DB.Param<string, DB.Type>[], MathOperation>, []>>, true>;
|
|
283
231
|
unit: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"DurationUnit", {
|
|
284
232
|
Seconds: DB.EnumCase<null>;
|
|
285
233
|
Minutes: DB.EnumCase<null>;
|
|
@@ -292,7 +240,7 @@ export declare const OneTimePerformanceParameters: DB.TypeAlias<"OneTimePerforma
|
|
|
292
240
|
Actions: DB.EnumCase<null>;
|
|
293
241
|
CombatRounds: DB.EnumCase<null>;
|
|
294
242
|
}, []>>, true>;
|
|
295
|
-
translations: DB.MemberDecl<DB.NestedEntityMap<"
|
|
243
|
+
translations: DB.MemberDecl<DB.NestedEntityMap<"ExpressionBasedDurationTranslation", {
|
|
296
244
|
replacement: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextReplace", DB.Object<{
|
|
297
245
|
full: DB.MemberDecl<DB.String, true>;
|
|
298
246
|
compressed: DB.MemberDecl<DB.String, true>;
|
|
@@ -479,29 +427,9 @@ export declare const FastPerformanceParameters: DB.Enum<"FastPerformanceParamete
|
|
|
479
427
|
Self: DB.EnumCase<null>;
|
|
480
428
|
Global: DB.EnumCase<null>;
|
|
481
429
|
Touch: DB.EnumCase<null>;
|
|
482
|
-
|
|
483
|
-
is_maximum: DB.MemberDecl<DB.Boolean, false>;
|
|
484
|
-
value: DB.MemberDecl<DB.Integer, true>;
|
|
485
|
-
unit: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"RangeUnit", {
|
|
486
|
-
Steps: DB.EnumCase<null>;
|
|
487
|
-
Miles: DB.EnumCase<null>;
|
|
488
|
-
}, []>>, true>;
|
|
489
|
-
is_radius: DB.MemberDecl<DB.Boolean, false>;
|
|
490
|
-
}>, []>>>;
|
|
491
|
-
CheckResultBased: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"CheckResultBasedRange", DB.Object<{
|
|
430
|
+
Expression: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"ExpressionBasedRange", DB.Object<{
|
|
492
431
|
is_maximum: DB.MemberDecl<DB.Boolean, false>;
|
|
493
|
-
|
|
494
|
-
QualityLevels: DB.EnumCase<null>;
|
|
495
|
-
SkillPoints: DB.EnumCase<null>;
|
|
496
|
-
SkillRating: DB.EnumCase<null>;
|
|
497
|
-
}, []>>, true>;
|
|
498
|
-
modifier: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"CheckResultBasedModifier", DB.Object<{
|
|
499
|
-
arithmetic: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"CheckResultArithmetic", {
|
|
500
|
-
Multiply: DB.EnumCase<null>;
|
|
501
|
-
Divide: DB.EnumCase<null>;
|
|
502
|
-
}, []>>, true>;
|
|
503
|
-
value: DB.MemberDecl<DB.Integer, true>;
|
|
504
|
-
}>, []>>, false>;
|
|
432
|
+
value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ExpressionBasedParameterValue", DB.IncludeIdentifier<DB.Param<string, DB.Type>[], MathOperation>, []>>, true>;
|
|
505
433
|
unit: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"RangeUnit", {
|
|
506
434
|
Steps: DB.EnumCase<null>;
|
|
507
435
|
Miles: DB.EnumCase<null>;
|
|
@@ -552,9 +480,9 @@ export declare const FastPerformanceParameters: DB.Enum<"FastPerformanceParamete
|
|
|
552
480
|
}>, []>>, false>;
|
|
553
481
|
}>, false>;
|
|
554
482
|
}>, []>>>;
|
|
555
|
-
|
|
483
|
+
Expression: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"ExpressionBasedDuration", DB.Object<{
|
|
556
484
|
is_maximum: DB.MemberDecl<DB.Boolean, false>;
|
|
557
|
-
value: DB.MemberDecl<DB.
|
|
485
|
+
value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ExpressionBasedParameterValue", DB.IncludeIdentifier<DB.Param<string, DB.Type>[], MathOperation>, []>>, true>;
|
|
558
486
|
unit: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"DurationUnit", {
|
|
559
487
|
Seconds: DB.EnumCase<null>;
|
|
560
488
|
Minutes: DB.EnumCase<null>;
|
|
@@ -567,40 +495,7 @@ export declare const FastPerformanceParameters: DB.Enum<"FastPerformanceParamete
|
|
|
567
495
|
Actions: DB.EnumCase<null>;
|
|
568
496
|
CombatRounds: DB.EnumCase<null>;
|
|
569
497
|
}, []>>, true>;
|
|
570
|
-
translations: DB.MemberDecl<DB.NestedEntityMap<"
|
|
571
|
-
replacement: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextReplace", DB.Object<{
|
|
572
|
-
full: DB.MemberDecl<DB.String, true>;
|
|
573
|
-
compressed: DB.MemberDecl<DB.String, true>;
|
|
574
|
-
}>, []>>, false>;
|
|
575
|
-
}>, false>;
|
|
576
|
-
}>, []>>>;
|
|
577
|
-
CheckResultBased: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"CheckResultBasedDuration", DB.Object<{
|
|
578
|
-
is_maximum: DB.MemberDecl<DB.Boolean, false>;
|
|
579
|
-
base: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"CheckResultValue", {
|
|
580
|
-
QualityLevels: DB.EnumCase<null>;
|
|
581
|
-
SkillPoints: DB.EnumCase<null>;
|
|
582
|
-
SkillRating: DB.EnumCase<null>;
|
|
583
|
-
}, []>>, true>;
|
|
584
|
-
modifier: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"CheckResultBasedModifier", DB.Object<{
|
|
585
|
-
arithmetic: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"CheckResultArithmetic", {
|
|
586
|
-
Multiply: DB.EnumCase<null>;
|
|
587
|
-
Divide: DB.EnumCase<null>;
|
|
588
|
-
}, []>>, true>;
|
|
589
|
-
value: DB.MemberDecl<DB.Integer, true>;
|
|
590
|
-
}>, []>>, false>;
|
|
591
|
-
unit: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"DurationUnit", {
|
|
592
|
-
Seconds: DB.EnumCase<null>;
|
|
593
|
-
Minutes: DB.EnumCase<null>;
|
|
594
|
-
Hours: DB.EnumCase<null>;
|
|
595
|
-
Days: DB.EnumCase<null>;
|
|
596
|
-
Weeks: DB.EnumCase<null>;
|
|
597
|
-
Months: DB.EnumCase<null>;
|
|
598
|
-
Years: DB.EnumCase<null>;
|
|
599
|
-
Centuries: DB.EnumCase<null>;
|
|
600
|
-
Actions: DB.EnumCase<null>;
|
|
601
|
-
CombatRounds: DB.EnumCase<null>;
|
|
602
|
-
}, []>>, true>;
|
|
603
|
-
translations: DB.MemberDecl<DB.NestedEntityMap<"CheckResultBasedDurationTranslation", {
|
|
498
|
+
translations: DB.MemberDecl<DB.NestedEntityMap<"ExpressionBasedDurationTranslation", {
|
|
604
499
|
replacement: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextReplace", DB.Object<{
|
|
605
500
|
full: DB.MemberDecl<DB.String, true>;
|
|
606
501
|
compressed: DB.MemberDecl<DB.String, true>;
|
|
@@ -722,29 +617,9 @@ export declare const FastPerformanceParameters: DB.Enum<"FastPerformanceParamete
|
|
|
722
617
|
Self: DB.EnumCase<null>;
|
|
723
618
|
Global: DB.EnumCase<null>;
|
|
724
619
|
Touch: DB.EnumCase<null>;
|
|
725
|
-
|
|
620
|
+
Expression: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"ExpressionBasedRange", DB.Object<{
|
|
726
621
|
is_maximum: DB.MemberDecl<DB.Boolean, false>;
|
|
727
|
-
value: DB.MemberDecl<DB.
|
|
728
|
-
unit: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"RangeUnit", {
|
|
729
|
-
Steps: DB.EnumCase<null>;
|
|
730
|
-
Miles: DB.EnumCase<null>;
|
|
731
|
-
}, []>>, true>;
|
|
732
|
-
is_radius: DB.MemberDecl<DB.Boolean, false>;
|
|
733
|
-
}>, []>>>;
|
|
734
|
-
CheckResultBased: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"CheckResultBasedRange", DB.Object<{
|
|
735
|
-
is_maximum: DB.MemberDecl<DB.Boolean, false>;
|
|
736
|
-
base: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"CheckResultValue", {
|
|
737
|
-
QualityLevels: DB.EnumCase<null>;
|
|
738
|
-
SkillPoints: DB.EnumCase<null>;
|
|
739
|
-
SkillRating: DB.EnumCase<null>;
|
|
740
|
-
}, []>>, true>;
|
|
741
|
-
modifier: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"CheckResultBasedModifier", DB.Object<{
|
|
742
|
-
arithmetic: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"CheckResultArithmetic", {
|
|
743
|
-
Multiply: DB.EnumCase<null>;
|
|
744
|
-
Divide: DB.EnumCase<null>;
|
|
745
|
-
}, []>>, true>;
|
|
746
|
-
value: DB.MemberDecl<DB.Integer, true>;
|
|
747
|
-
}>, []>>, false>;
|
|
622
|
+
value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ExpressionBasedParameterValue", DB.IncludeIdentifier<DB.Param<string, DB.Type>[], MathOperation>, []>>, true>;
|
|
748
623
|
unit: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"RangeUnit", {
|
|
749
624
|
Steps: DB.EnumCase<null>;
|
|
750
625
|
Miles: DB.EnumCase<null>;
|
|
@@ -952,29 +827,9 @@ export declare const SlowPerformanceParameters: DB.Enum<"SlowPerformanceParamete
|
|
|
952
827
|
Self: DB.EnumCase<null>;
|
|
953
828
|
Global: DB.EnumCase<null>;
|
|
954
829
|
Touch: DB.EnumCase<null>;
|
|
955
|
-
|
|
830
|
+
Expression: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"ExpressionBasedRange", DB.Object<{
|
|
956
831
|
is_maximum: DB.MemberDecl<DB.Boolean, false>;
|
|
957
|
-
value: DB.MemberDecl<DB.
|
|
958
|
-
unit: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"RangeUnit", {
|
|
959
|
-
Steps: DB.EnumCase<null>;
|
|
960
|
-
Miles: DB.EnumCase<null>;
|
|
961
|
-
}, []>>, true>;
|
|
962
|
-
is_radius: DB.MemberDecl<DB.Boolean, false>;
|
|
963
|
-
}>, []>>>;
|
|
964
|
-
CheckResultBased: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"CheckResultBasedRange", DB.Object<{
|
|
965
|
-
is_maximum: DB.MemberDecl<DB.Boolean, false>;
|
|
966
|
-
base: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"CheckResultValue", {
|
|
967
|
-
QualityLevels: DB.EnumCase<null>;
|
|
968
|
-
SkillPoints: DB.EnumCase<null>;
|
|
969
|
-
SkillRating: DB.EnumCase<null>;
|
|
970
|
-
}, []>>, true>;
|
|
971
|
-
modifier: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"CheckResultBasedModifier", DB.Object<{
|
|
972
|
-
arithmetic: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"CheckResultArithmetic", {
|
|
973
|
-
Multiply: DB.EnumCase<null>;
|
|
974
|
-
Divide: DB.EnumCase<null>;
|
|
975
|
-
}, []>>, true>;
|
|
976
|
-
value: DB.MemberDecl<DB.Integer, true>;
|
|
977
|
-
}>, []>>, false>;
|
|
832
|
+
value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ExpressionBasedParameterValue", DB.IncludeIdentifier<DB.Param<string, DB.Type>[], MathOperation>, []>>, true>;
|
|
978
833
|
unit: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"RangeUnit", {
|
|
979
834
|
Steps: DB.EnumCase<null>;
|
|
980
835
|
Miles: DB.EnumCase<null>;
|
|
@@ -1025,9 +880,9 @@ export declare const SlowPerformanceParameters: DB.Enum<"SlowPerformanceParamete
|
|
|
1025
880
|
}>, []>>, false>;
|
|
1026
881
|
}>, false>;
|
|
1027
882
|
}>, []>>>;
|
|
1028
|
-
|
|
883
|
+
Expression: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"ExpressionBasedDuration", DB.Object<{
|
|
1029
884
|
is_maximum: DB.MemberDecl<DB.Boolean, false>;
|
|
1030
|
-
value: DB.MemberDecl<DB.
|
|
885
|
+
value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ExpressionBasedParameterValue", DB.IncludeIdentifier<DB.Param<string, DB.Type>[], MathOperation>, []>>, true>;
|
|
1031
886
|
unit: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"DurationUnit", {
|
|
1032
887
|
Seconds: DB.EnumCase<null>;
|
|
1033
888
|
Minutes: DB.EnumCase<null>;
|
|
@@ -1040,40 +895,7 @@ export declare const SlowPerformanceParameters: DB.Enum<"SlowPerformanceParamete
|
|
|
1040
895
|
Actions: DB.EnumCase<null>;
|
|
1041
896
|
CombatRounds: DB.EnumCase<null>;
|
|
1042
897
|
}, []>>, true>;
|
|
1043
|
-
translations: DB.MemberDecl<DB.NestedEntityMap<"
|
|
1044
|
-
replacement: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextReplace", DB.Object<{
|
|
1045
|
-
full: DB.MemberDecl<DB.String, true>;
|
|
1046
|
-
compressed: DB.MemberDecl<DB.String, true>;
|
|
1047
|
-
}>, []>>, false>;
|
|
1048
|
-
}>, false>;
|
|
1049
|
-
}>, []>>>;
|
|
1050
|
-
CheckResultBased: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"CheckResultBasedDuration", DB.Object<{
|
|
1051
|
-
is_maximum: DB.MemberDecl<DB.Boolean, false>;
|
|
1052
|
-
base: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"CheckResultValue", {
|
|
1053
|
-
QualityLevels: DB.EnumCase<null>;
|
|
1054
|
-
SkillPoints: DB.EnumCase<null>;
|
|
1055
|
-
SkillRating: DB.EnumCase<null>;
|
|
1056
|
-
}, []>>, true>;
|
|
1057
|
-
modifier: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"CheckResultBasedModifier", DB.Object<{
|
|
1058
|
-
arithmetic: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"CheckResultArithmetic", {
|
|
1059
|
-
Multiply: DB.EnumCase<null>;
|
|
1060
|
-
Divide: DB.EnumCase<null>;
|
|
1061
|
-
}, []>>, true>;
|
|
1062
|
-
value: DB.MemberDecl<DB.Integer, true>;
|
|
1063
|
-
}>, []>>, false>;
|
|
1064
|
-
unit: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"DurationUnit", {
|
|
1065
|
-
Seconds: DB.EnumCase<null>;
|
|
1066
|
-
Minutes: DB.EnumCase<null>;
|
|
1067
|
-
Hours: DB.EnumCase<null>;
|
|
1068
|
-
Days: DB.EnumCase<null>;
|
|
1069
|
-
Weeks: DB.EnumCase<null>;
|
|
1070
|
-
Months: DB.EnumCase<null>;
|
|
1071
|
-
Years: DB.EnumCase<null>;
|
|
1072
|
-
Centuries: DB.EnumCase<null>;
|
|
1073
|
-
Actions: DB.EnumCase<null>;
|
|
1074
|
-
CombatRounds: DB.EnumCase<null>;
|
|
1075
|
-
}, []>>, true>;
|
|
1076
|
-
translations: DB.MemberDecl<DB.NestedEntityMap<"CheckResultBasedDurationTranslation", {
|
|
898
|
+
translations: DB.MemberDecl<DB.NestedEntityMap<"ExpressionBasedDurationTranslation", {
|
|
1077
899
|
replacement: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextReplace", DB.Object<{
|
|
1078
900
|
full: DB.MemberDecl<DB.String, true>;
|
|
1079
901
|
compressed: DB.MemberDecl<DB.String, true>;
|
|
@@ -1195,29 +1017,9 @@ export declare const SlowPerformanceParameters: DB.Enum<"SlowPerformanceParamete
|
|
|
1195
1017
|
Self: DB.EnumCase<null>;
|
|
1196
1018
|
Global: DB.EnumCase<null>;
|
|
1197
1019
|
Touch: DB.EnumCase<null>;
|
|
1198
|
-
|
|
1020
|
+
Expression: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"ExpressionBasedRange", DB.Object<{
|
|
1199
1021
|
is_maximum: DB.MemberDecl<DB.Boolean, false>;
|
|
1200
|
-
value: DB.MemberDecl<DB.
|
|
1201
|
-
unit: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"RangeUnit", {
|
|
1202
|
-
Steps: DB.EnumCase<null>;
|
|
1203
|
-
Miles: DB.EnumCase<null>;
|
|
1204
|
-
}, []>>, true>;
|
|
1205
|
-
is_radius: DB.MemberDecl<DB.Boolean, false>;
|
|
1206
|
-
}>, []>>>;
|
|
1207
|
-
CheckResultBased: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"CheckResultBasedRange", DB.Object<{
|
|
1208
|
-
is_maximum: DB.MemberDecl<DB.Boolean, false>;
|
|
1209
|
-
base: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"CheckResultValue", {
|
|
1210
|
-
QualityLevels: DB.EnumCase<null>;
|
|
1211
|
-
SkillPoints: DB.EnumCase<null>;
|
|
1212
|
-
SkillRating: DB.EnumCase<null>;
|
|
1213
|
-
}, []>>, true>;
|
|
1214
|
-
modifier: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"CheckResultBasedModifier", DB.Object<{
|
|
1215
|
-
arithmetic: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"CheckResultArithmetic", {
|
|
1216
|
-
Multiply: DB.EnumCase<null>;
|
|
1217
|
-
Divide: DB.EnumCase<null>;
|
|
1218
|
-
}, []>>, true>;
|
|
1219
|
-
value: DB.MemberDecl<DB.Integer, true>;
|
|
1220
|
-
}>, []>>, false>;
|
|
1022
|
+
value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ExpressionBasedParameterValue", DB.IncludeIdentifier<DB.Param<string, DB.Type>[], MathOperation>, []>>, true>;
|
|
1221
1023
|
unit: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"RangeUnit", {
|
|
1222
1024
|
Steps: DB.EnumCase<null>;
|
|
1223
1025
|
Miles: DB.EnumCase<null>;
|
|
@@ -1259,3 +1061,4 @@ export declare const OldParameter: DB.TypeAlias<"OldParameter", DB.Object<{
|
|
|
1259
1061
|
full: DB.MemberDecl<DB.String, true>;
|
|
1260
1062
|
abbr: DB.MemberDecl<DB.String, true>;
|
|
1261
1063
|
}>, []>;
|
|
1064
|
+
export declare const ExpressionBasedParameterValue: DB.TypeAlias<"ExpressionBasedParameterValue", DB.IncludeIdentifier<DB.Param<string, DB.Type>[], MathOperation>, []>;
|
|
@@ -6,6 +6,7 @@ import { FastCastingTime, SlowCastingTime } from "./_ActivatableSkillCastingTime
|
|
|
6
6
|
import { OneTimeCost, SustainedCost } from "./_ActivatableSkillCost.js";
|
|
7
7
|
import { DurationForOneTime, DurationForSustained } from "./_ActivatableSkillDuration.js";
|
|
8
8
|
import { Range } from "./_ActivatableSkillRange.js";
|
|
9
|
+
import { MathOperation } from "./_MathExpression.js";
|
|
9
10
|
export const OneTimePerformanceParameters = DB.GenTypeAlias(import.meta.url, {
|
|
10
11
|
name: "OneTimePerformanceParameters",
|
|
11
12
|
parameters: [DB.Param("CastingTime")],
|
|
@@ -87,3 +88,17 @@ export const OldParameter = DB.TypeAlias(import.meta.url, {
|
|
|
87
88
|
}),
|
|
88
89
|
}),
|
|
89
90
|
});
|
|
91
|
+
export const ExpressionBasedParameterValue = DB.TypeAlias(import.meta.url, {
|
|
92
|
+
name: "ExpressionBasedParameterValue",
|
|
93
|
+
type: () => DB.GenIncludeIdentifier(MathOperation, [
|
|
94
|
+
DB.IncludeIdentifier(ExpressionBasedParameterExpressionValue),
|
|
95
|
+
]),
|
|
96
|
+
});
|
|
97
|
+
const ExpressionBasedParameterExpressionValue = DB.Enum(import.meta.url, {
|
|
98
|
+
name: "ExpressionBasedParameterExpressionValue",
|
|
99
|
+
values: () => ({
|
|
100
|
+
Constant: DB.EnumCase({ type: DB.Integer({ minimum: 1 }) }),
|
|
101
|
+
QualityLevels: DB.EnumCase({ type: null }),
|
|
102
|
+
SkillPoints: DB.EnumCase({ type: null }),
|
|
103
|
+
}),
|
|
104
|
+
});
|
|
@@ -31,9 +31,9 @@ export declare const DurationForOneTime: DB.Enum<"DurationForOneTime", {
|
|
|
31
31
|
}>, []>>, false>;
|
|
32
32
|
}>, false>;
|
|
33
33
|
}>, []>>>;
|
|
34
|
-
|
|
34
|
+
Expression: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"ExpressionBasedDuration", DB.Object<{
|
|
35
35
|
is_maximum: DB.MemberDecl<DB.Boolean, false>;
|
|
36
|
-
value: DB.MemberDecl<DB.
|
|
36
|
+
value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ExpressionBasedParameterValue", DB.IncludeIdentifier<DB.Param<string, DB.Type>[], import("./_MathExpression.ts").MathOperation>, []>>, true>;
|
|
37
37
|
unit: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"DurationUnit", {
|
|
38
38
|
Seconds: DB.EnumCase<null>;
|
|
39
39
|
Minutes: DB.EnumCase<null>;
|
|
@@ -46,40 +46,7 @@ export declare const DurationForOneTime: DB.Enum<"DurationForOneTime", {
|
|
|
46
46
|
Actions: DB.EnumCase<null>;
|
|
47
47
|
CombatRounds: DB.EnumCase<null>;
|
|
48
48
|
}, []>>, true>;
|
|
49
|
-
translations: DB.MemberDecl<DB.NestedEntityMap<"
|
|
50
|
-
replacement: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextReplace", DB.Object<{
|
|
51
|
-
full: DB.MemberDecl<DB.String, true>;
|
|
52
|
-
compressed: DB.MemberDecl<DB.String, true>;
|
|
53
|
-
}>, []>>, false>;
|
|
54
|
-
}>, false>;
|
|
55
|
-
}>, []>>>;
|
|
56
|
-
CheckResultBased: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"CheckResultBasedDuration", DB.Object<{
|
|
57
|
-
is_maximum: DB.MemberDecl<DB.Boolean, false>;
|
|
58
|
-
base: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"CheckResultValue", {
|
|
59
|
-
QualityLevels: DB.EnumCase<null>;
|
|
60
|
-
SkillPoints: DB.EnumCase<null>;
|
|
61
|
-
SkillRating: DB.EnumCase<null>;
|
|
62
|
-
}, []>>, true>;
|
|
63
|
-
modifier: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"CheckResultBasedModifier", DB.Object<{
|
|
64
|
-
arithmetic: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"CheckResultArithmetic", {
|
|
65
|
-
Multiply: DB.EnumCase<null>;
|
|
66
|
-
Divide: DB.EnumCase<null>;
|
|
67
|
-
}, []>>, true>;
|
|
68
|
-
value: DB.MemberDecl<DB.Integer, true>;
|
|
69
|
-
}>, []>>, false>;
|
|
70
|
-
unit: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"DurationUnit", {
|
|
71
|
-
Seconds: DB.EnumCase<null>;
|
|
72
|
-
Minutes: DB.EnumCase<null>;
|
|
73
|
-
Hours: DB.EnumCase<null>;
|
|
74
|
-
Days: DB.EnumCase<null>;
|
|
75
|
-
Weeks: DB.EnumCase<null>;
|
|
76
|
-
Months: DB.EnumCase<null>;
|
|
77
|
-
Years: DB.EnumCase<null>;
|
|
78
|
-
Centuries: DB.EnumCase<null>;
|
|
79
|
-
Actions: DB.EnumCase<null>;
|
|
80
|
-
CombatRounds: DB.EnumCase<null>;
|
|
81
|
-
}, []>>, true>;
|
|
82
|
-
translations: DB.MemberDecl<DB.NestedEntityMap<"CheckResultBasedDurationTranslation", {
|
|
49
|
+
translations: DB.MemberDecl<DB.NestedEntityMap<"ExpressionBasedDurationTranslation", {
|
|
83
50
|
replacement: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextReplace", DB.Object<{
|
|
84
51
|
full: DB.MemberDecl<DB.String, true>;
|
|
85
52
|
compressed: DB.MemberDecl<DB.String, true>;
|
|
@@ -117,20 +84,9 @@ export declare const FixedDuration: DB.TypeAlias<"FixedDuration", DB.Object<{
|
|
|
117
84
|
}>, []>>, false>;
|
|
118
85
|
}>, false>;
|
|
119
86
|
}>, []>;
|
|
120
|
-
export declare const
|
|
87
|
+
export declare const ExpressionBasedDuration: DB.TypeAlias<"ExpressionBasedDuration", DB.Object<{
|
|
121
88
|
is_maximum: DB.MemberDecl<DB.Boolean, false>;
|
|
122
|
-
|
|
123
|
-
QualityLevels: DB.EnumCase<null>;
|
|
124
|
-
SkillPoints: DB.EnumCase<null>;
|
|
125
|
-
SkillRating: DB.EnumCase<null>;
|
|
126
|
-
}, []>>, true>;
|
|
127
|
-
modifier: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"CheckResultBasedModifier", DB.Object<{
|
|
128
|
-
arithmetic: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"CheckResultArithmetic", {
|
|
129
|
-
Multiply: DB.EnumCase<null>;
|
|
130
|
-
Divide: DB.EnumCase<null>;
|
|
131
|
-
}, []>>, true>;
|
|
132
|
-
value: DB.MemberDecl<DB.Integer, true>;
|
|
133
|
-
}>, []>>, false>;
|
|
89
|
+
value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ExpressionBasedParameterValue", DB.IncludeIdentifier<DB.Param<string, DB.Type>[], import("./_MathExpression.ts").MathOperation>, []>>, true>;
|
|
134
90
|
unit: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"DurationUnit", {
|
|
135
91
|
Seconds: DB.EnumCase<null>;
|
|
136
92
|
Minutes: DB.EnumCase<null>;
|
|
@@ -143,7 +99,7 @@ export declare const CheckResultBasedDuration: DB.TypeAlias<"CheckResultBasedDur
|
|
|
143
99
|
Actions: DB.EnumCase<null>;
|
|
144
100
|
CombatRounds: DB.EnumCase<null>;
|
|
145
101
|
}, []>>, true>;
|
|
146
|
-
translations: DB.MemberDecl<DB.NestedEntityMap<"
|
|
102
|
+
translations: DB.MemberDecl<DB.NestedEntityMap<"ExpressionBasedDurationTranslation", {
|
|
147
103
|
replacement: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextReplace", DB.Object<{
|
|
148
104
|
full: DB.MemberDecl<DB.String, true>;
|
|
149
105
|
compressed: DB.MemberDecl<DB.String, true>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as DB from "tsondb/schema/dsl";
|
|
2
|
-
import {
|
|
2
|
+
import { ExpressionBasedParameterValue } from "./_ActivatableSkill.js";
|
|
3
3
|
import { ResponsiveText, ResponsiveTextReplace } from "./_ResponsiveText.js";
|
|
4
4
|
import { NestedTranslationMap } from "./Locale.js";
|
|
5
5
|
export const DurationForOneTime = DB.Enum(import.meta.url, {
|
|
@@ -7,8 +7,7 @@ export const DurationForOneTime = DB.Enum(import.meta.url, {
|
|
|
7
7
|
values: () => ({
|
|
8
8
|
Immediate: DB.EnumCase({ type: DB.IncludeIdentifier(Immediate) }),
|
|
9
9
|
Permanent: DB.EnumCase({ type: DB.IncludeIdentifier(PermanentDuration) }),
|
|
10
|
-
|
|
11
|
-
CheckResultBased: DB.EnumCase({ type: DB.IncludeIdentifier(CheckResultBasedDuration) }),
|
|
10
|
+
Expression: DB.EnumCase({ type: DB.IncludeIdentifier(ExpressionBasedDuration) }),
|
|
12
11
|
Indefinite: DB.EnumCase({ type: DB.IncludeIdentifier(IndefiniteDuration) }),
|
|
13
12
|
}),
|
|
14
13
|
});
|
|
@@ -61,26 +60,22 @@ export const FixedDuration = DB.TypeAlias(import.meta.url, {
|
|
|
61
60
|
}, { minProperties: 1 })),
|
|
62
61
|
}),
|
|
63
62
|
});
|
|
64
|
-
export const
|
|
65
|
-
name: "
|
|
63
|
+
export const ExpressionBasedDuration = DB.TypeAlias(import.meta.url, {
|
|
64
|
+
name: "ExpressionBasedDuration",
|
|
66
65
|
type: () => DB.Object({
|
|
67
66
|
is_maximum: DB.Optional({
|
|
68
67
|
comment: "If the duration is the maximum duration, so it may end earlier.",
|
|
69
68
|
type: DB.Boolean(),
|
|
70
69
|
}),
|
|
71
|
-
|
|
72
|
-
comment: "
|
|
73
|
-
type: DB.IncludeIdentifier(
|
|
74
|
-
}),
|
|
75
|
-
modifier: DB.Optional({
|
|
76
|
-
comment: "If defined, it modifies the base value.",
|
|
77
|
-
type: DB.IncludeIdentifier(CheckResultBasedModifier),
|
|
70
|
+
value: DB.Required({
|
|
71
|
+
comment: "An expression that evaluates to the duration.",
|
|
72
|
+
type: DB.IncludeIdentifier(ExpressionBasedParameterValue),
|
|
78
73
|
}),
|
|
79
74
|
unit: DB.Required({
|
|
80
75
|
comment: "The duration unit.",
|
|
81
76
|
type: DB.IncludeIdentifier(DurationUnit),
|
|
82
77
|
}),
|
|
83
|
-
translations: NestedTranslationMap(DB.Optional, "
|
|
78
|
+
translations: NestedTranslationMap(DB.Optional, "ExpressionBasedDuration", DB.Object({
|
|
84
79
|
replacement: DB.Optional({
|
|
85
80
|
comment: "A replacement string.",
|
|
86
81
|
type: DB.IncludeIdentifier(ResponsiveTextReplace),
|
|
@@ -10,29 +10,9 @@ export declare const Range: DB.TypeAlias<"Range", DB.Object<{
|
|
|
10
10
|
Self: DB.EnumCase<null>;
|
|
11
11
|
Global: DB.EnumCase<null>;
|
|
12
12
|
Touch: DB.EnumCase<null>;
|
|
13
|
-
|
|
13
|
+
Expression: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"ExpressionBasedRange", DB.Object<{
|
|
14
14
|
is_maximum: DB.MemberDecl<DB.Boolean, false>;
|
|
15
|
-
value: DB.MemberDecl<DB.
|
|
16
|
-
unit: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"RangeUnit", {
|
|
17
|
-
Steps: DB.EnumCase<null>;
|
|
18
|
-
Miles: DB.EnumCase<null>;
|
|
19
|
-
}, []>>, true>;
|
|
20
|
-
is_radius: DB.MemberDecl<DB.Boolean, false>;
|
|
21
|
-
}>, []>>>;
|
|
22
|
-
CheckResultBased: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"CheckResultBasedRange", DB.Object<{
|
|
23
|
-
is_maximum: DB.MemberDecl<DB.Boolean, false>;
|
|
24
|
-
base: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"CheckResultValue", {
|
|
25
|
-
QualityLevels: DB.EnumCase<null>;
|
|
26
|
-
SkillPoints: DB.EnumCase<null>;
|
|
27
|
-
SkillRating: DB.EnumCase<null>;
|
|
28
|
-
}, []>>, true>;
|
|
29
|
-
modifier: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"CheckResultBasedModifier", DB.Object<{
|
|
30
|
-
arithmetic: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"CheckResultArithmetic", {
|
|
31
|
-
Multiply: DB.EnumCase<null>;
|
|
32
|
-
Divide: DB.EnumCase<null>;
|
|
33
|
-
}, []>>, true>;
|
|
34
|
-
value: DB.MemberDecl<DB.Integer, true>;
|
|
35
|
-
}>, []>>, false>;
|
|
15
|
+
value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ExpressionBasedParameterValue", DB.IncludeIdentifier<DB.Param<string, DB.Type>[], import("./_MathExpression.ts").MathOperation>, []>>, true>;
|
|
36
16
|
unit: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"RangeUnit", {
|
|
37
17
|
Steps: DB.EnumCase<null>;
|
|
38
18
|
Miles: DB.EnumCase<null>;
|
|
@@ -60,3 +40,12 @@ export declare const FixedRange: DB.TypeAlias<"FixedRange", DB.Object<{
|
|
|
60
40
|
}, []>>, true>;
|
|
61
41
|
is_radius: DB.MemberDecl<DB.Boolean, false>;
|
|
62
42
|
}>, []>;
|
|
43
|
+
export declare const ExpressionBasedRange: DB.TypeAlias<"ExpressionBasedRange", DB.Object<{
|
|
44
|
+
is_maximum: DB.MemberDecl<DB.Boolean, false>;
|
|
45
|
+
value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ExpressionBasedParameterValue", DB.IncludeIdentifier<DB.Param<string, DB.Type>[], import("./_MathExpression.ts").MathOperation>, []>>, true>;
|
|
46
|
+
unit: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"RangeUnit", {
|
|
47
|
+
Steps: DB.EnumCase<null>;
|
|
48
|
+
Miles: DB.EnumCase<null>;
|
|
49
|
+
}, []>>, true>;
|
|
50
|
+
is_radius: DB.MemberDecl<DB.Boolean, false>;
|
|
51
|
+
}>, []>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as DB from "tsondb/schema/dsl";
|
|
2
|
-
import {
|
|
2
|
+
import { ExpressionBasedParameterValue } from "./_ActivatableSkill.js";
|
|
3
3
|
import { SkillModificationLevelIdentifier } from "./_Identifier.js";
|
|
4
4
|
import { ResponsiveTextOptional, ResponsiveTextReplace } from "./_ResponsiveText.js";
|
|
5
5
|
import { NestedTranslationMap } from "./Locale.js";
|
|
@@ -30,8 +30,7 @@ const RangeValue = DB.Enum(import.meta.url, {
|
|
|
30
30
|
Self: DB.EnumCase({ type: null }),
|
|
31
31
|
Global: DB.EnumCase({ comment: "German: *dereumfassend*", type: null }),
|
|
32
32
|
Touch: DB.EnumCase({ type: null }),
|
|
33
|
-
|
|
34
|
-
CheckResultBased: DB.EnumCase({ type: DB.IncludeIdentifier(CheckResultBasedRange) }),
|
|
33
|
+
Expression: DB.EnumCase({ type: DB.IncludeIdentifier(ExpressionBasedRange) }),
|
|
35
34
|
}),
|
|
36
35
|
});
|
|
37
36
|
const ModifiableRange = DB.TypeAlias(import.meta.url, {
|
|
@@ -72,20 +71,16 @@ export const FixedRange = DB.TypeAlias(import.meta.url, {
|
|
|
72
71
|
}),
|
|
73
72
|
}),
|
|
74
73
|
});
|
|
75
|
-
const
|
|
76
|
-
name: "
|
|
74
|
+
export const ExpressionBasedRange = DB.TypeAlias(import.meta.url, {
|
|
75
|
+
name: "ExpressionBasedRange",
|
|
77
76
|
type: () => DB.Object({
|
|
78
77
|
is_maximum: DB.Optional({
|
|
79
78
|
comment: "If the range is the maximum range.",
|
|
80
79
|
type: DB.Boolean(),
|
|
81
80
|
}),
|
|
82
|
-
|
|
83
|
-
comment: "
|
|
84
|
-
type: DB.IncludeIdentifier(
|
|
85
|
-
}),
|
|
86
|
-
modifier: DB.Optional({
|
|
87
|
-
comment: "If defined, it modifies the base value.",
|
|
88
|
-
type: DB.IncludeIdentifier(CheckResultBasedModifier),
|
|
81
|
+
value: DB.Required({
|
|
82
|
+
comment: "An expression that evaluates to the range.",
|
|
83
|
+
type: DB.IncludeIdentifier(ExpressionBasedParameterValue),
|
|
89
84
|
}),
|
|
90
85
|
unit: DB.Required({
|
|
91
86
|
comment: "The duration unit.",
|
|
@@ -57,35 +57,9 @@ export declare const AnimistPower: DB.Entity<"AnimistPower", {
|
|
|
57
57
|
}, []>>, true>;
|
|
58
58
|
duration: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"OneTimeAnimistPowerDuration", {
|
|
59
59
|
Immediate: DB.EnumCase<null>;
|
|
60
|
-
|
|
61
|
-
value: DB.MemberDecl<DB.Integer, true>;
|
|
62
|
-
unit: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"DurationUnit", {
|
|
63
|
-
Seconds: DB.EnumCase<null>;
|
|
64
|
-
Minutes: DB.EnumCase<null>;
|
|
65
|
-
Hours: DB.EnumCase<null>;
|
|
66
|
-
Days: DB.EnumCase<null>;
|
|
67
|
-
Weeks: DB.EnumCase<null>;
|
|
68
|
-
Months: DB.EnumCase<null>;
|
|
69
|
-
Years: DB.EnumCase<null>;
|
|
70
|
-
Centuries: DB.EnumCase<null>;
|
|
71
|
-
Actions: DB.EnumCase<null>;
|
|
72
|
-
CombatRounds: DB.EnumCase<null>;
|
|
73
|
-
}, []>>, true>;
|
|
74
|
-
}>, []>>>;
|
|
75
|
-
CheckResultBased: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"CheckResultBasedDuration", DB.Object<{
|
|
60
|
+
Expression: DB.EnumCase<DB.IncludeIdentifier<[], DB.TypeAlias<"ExpressionBasedDuration", DB.Object<{
|
|
76
61
|
is_maximum: DB.MemberDecl<DB.Boolean, false>;
|
|
77
|
-
|
|
78
|
-
QualityLevels: DB.EnumCase<null>;
|
|
79
|
-
SkillPoints: DB.EnumCase<null>;
|
|
80
|
-
SkillRating: DB.EnumCase<null>;
|
|
81
|
-
}, []>>, true>;
|
|
82
|
-
modifier: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"CheckResultBasedModifier", DB.Object<{
|
|
83
|
-
arithmetic: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"CheckResultArithmetic", {
|
|
84
|
-
Multiply: DB.EnumCase<null>;
|
|
85
|
-
Divide: DB.EnumCase<null>;
|
|
86
|
-
}, []>>, true>;
|
|
87
|
-
value: DB.MemberDecl<DB.Integer, true>;
|
|
88
|
-
}>, []>>, false>;
|
|
62
|
+
value: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ExpressionBasedParameterValue", DB.IncludeIdentifier<DB.Param<string, DB.Type>[], import("../_MathExpression.ts").MathOperation>, []>>, true>;
|
|
89
63
|
unit: DB.MemberDecl<DB.IncludeIdentifier<[], DB.Enum<"DurationUnit", {
|
|
90
64
|
Seconds: DB.EnumCase<null>;
|
|
91
65
|
Minutes: DB.EnumCase<null>;
|
|
@@ -98,7 +72,7 @@ export declare const AnimistPower: DB.Entity<"AnimistPower", {
|
|
|
98
72
|
Actions: DB.EnumCase<null>;
|
|
99
73
|
CombatRounds: DB.EnumCase<null>;
|
|
100
74
|
}, []>>, true>;
|
|
101
|
-
translations: DB.MemberDecl<DB.NestedEntityMap<"
|
|
75
|
+
translations: DB.MemberDecl<DB.NestedEntityMap<"ExpressionBasedDurationTranslation", {
|
|
102
76
|
replacement: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"ResponsiveTextReplace", DB.Object<{
|
|
103
77
|
full: DB.MemberDecl<DB.String, true>;
|
|
104
78
|
compressed: DB.MemberDecl<DB.String, true>;
|