@arcadia-eternity/data-pack-base 4.8.1 → 4.8.3
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/dist/catalog.json +1 -1
- package/dist/environment/test-120-rules.json +1 -1
- package/dist/environment-build.json +2 -2
- package/dist/environment-runtime.mjs +14 -2
- package/dist/native-build.mjs +1 -1
- package/dist/pack-lock.yaml +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +4 -4
|
@@ -6509,6 +6509,7 @@ var dist_exports = /* @__PURE__ */ __exportAll$1({
|
|
|
6509
6509
|
TransformType: () => TransformType,
|
|
6510
6510
|
allowsEnhancementRecord: () => allowsEnhancementRecord,
|
|
6511
6511
|
assertSkillSlots: () => assertSkillSlots,
|
|
6512
|
+
canUseEnhancementStage: () => canUseEnhancementStage,
|
|
6512
6513
|
constraintEditsSchema: () => constraintEditsSchema,
|
|
6513
6514
|
declaredConstraintsSchema: () => declaredConstraintsSchema,
|
|
6514
6515
|
defaultEditorSkillSlots: () => defaultEditorSkillSlots,
|
|
@@ -6545,6 +6546,7 @@ var dist_exports = /* @__PURE__ */ __exportAll$1({
|
|
|
6545
6546
|
skillParameterPolicySchema: () => skillParameterPolicySchema,
|
|
6546
6547
|
skillSlotsSchema: () => skillSlotsSchema,
|
|
6547
6548
|
splitRuleDeclaration: () => splitRuleDeclaration,
|
|
6549
|
+
supportsEnhancementBranch: () => supportsEnhancementBranch,
|
|
6548
6550
|
teamConstraintIssues: () => teamConstraintIssues,
|
|
6549
6551
|
teamConstraintsSchema: () => teamConstraintsSchema,
|
|
6550
6552
|
trainingStat: () => trainingStat,
|
|
@@ -8325,6 +8327,8 @@ const enhancementSchema = object({
|
|
|
8325
8327
|
"suppressed",
|
|
8326
8328
|
"active"
|
|
8327
8329
|
]),
|
|
8330
|
+
minLevel: number$1().int().min(1).max(100).optional(),
|
|
8331
|
+
defaultBranches: ids.optional(),
|
|
8328
8332
|
stages: ids.optional(),
|
|
8329
8333
|
species: ids.optional()
|
|
8330
8334
|
}).strict();
|
|
@@ -8405,8 +8409,14 @@ function resolveEnhancement(policy) {
|
|
|
8405
8409
|
mode
|
|
8406
8410
|
};
|
|
8407
8411
|
}
|
|
8408
|
-
function allowsEnhancementRecord(policy, species, stage) {
|
|
8409
|
-
return policy?.mode !== "active" || (!policy.species || policy.species.includes(species)) && (!policy.stages || policy.stages.includes(stage));
|
|
8412
|
+
function allowsEnhancementRecord(policy, species, stage, level) {
|
|
8413
|
+
return policy?.mode !== "active" || (policy.minLevel === void 0 || level !== void 0 && level >= policy.minLevel) && (!policy.species || policy.species.includes(species)) && (!policy.stages || policy.stages.includes(stage));
|
|
8414
|
+
}
|
|
8415
|
+
function supportsEnhancementBranch(policy, species, branch) {
|
|
8416
|
+
return (species.enhancementBranches ?? policy?.defaultBranches)?.includes(branch) ?? false;
|
|
8417
|
+
}
|
|
8418
|
+
function canUseEnhancementStage(policy, species, level, stage) {
|
|
8419
|
+
return policy?.mode === "active" && supportsEnhancementBranch(policy, species, stage.branch) && allowsEnhancementRecord(policy, species.id, stage.id, level);
|
|
8410
8420
|
}
|
|
8411
8421
|
function resolveEnvironmentMechanics(rules) {
|
|
8412
8422
|
const mechanics = rules?.mechanics;
|
|
@@ -24677,6 +24687,7 @@ var authoring_exports = /* @__PURE__ */ __exportAll$1({
|
|
|
24677
24687
|
assertSkillSlots: () => assertSkillSlots,
|
|
24678
24688
|
bindings: () => bindings,
|
|
24679
24689
|
booleanParam: () => booleanParam,
|
|
24690
|
+
canUseEnhancementStage: () => canUseEnhancementStage,
|
|
24680
24691
|
checkConfigRead: () => checkConfigRead,
|
|
24681
24692
|
checkValueRead: () => checkValueRead,
|
|
24682
24693
|
checks: () => checks,
|
|
@@ -24774,6 +24785,7 @@ var authoring_exports = /* @__PURE__ */ __exportAll$1({
|
|
|
24774
24785
|
skillSlotsSchema: () => skillSlotsSchema,
|
|
24775
24786
|
splitRuleDeclaration: () => splitRuleDeclaration,
|
|
24776
24787
|
stringParam: () => stringParam,
|
|
24788
|
+
supportsEnhancementBranch: () => supportsEnhancementBranch,
|
|
24777
24789
|
targets: () => targets,
|
|
24778
24790
|
teamConstraintIssues: () => teamConstraintIssues,
|
|
24779
24791
|
teamConstraintsSchema: () => teamConstraintsSchema,
|
package/dist/native-build.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const nativeBuildIdentity = Object.freeze({"formatVersion":1,"coreBuildId":"
|
|
1
|
+
export const nativeBuildIdentity = Object.freeze({"formatVersion":1,"coreBuildId":"594c79da6d8ddb5b8e3a617d75b0a8985e01b3fee86dbd48120cda6ac312a969","registryBuildId":"8f33cda27ec3a1009ab2aa118005517f37aeb613c77c776b1bd8e498898cc0df"});
|
package/dist/pack-lock.yaml
CHANGED