@arcadia-eternity/data-pack-base 4.6.0 → 4.8.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/dist/THIRD_PARTY_NOTICES.md +27 -0
- package/dist/arcadia-effects.json +1 -1
- package/dist/catalog.json +1 -1
- package/dist/content.json +1 -1
- package/dist/effects.js +948 -232
- package/dist/environment/base-rules.json +1 -0
- package/dist/environment/test-120-rules.json +1 -0
- package/dist/environment-build.json +2 -2
- package/dist/environment-runtime.mjs +25661 -23307
- package/dist/locales/zh-CN/battle.json +1 -1
- package/dist/locales/zh-CN/element.json +1 -0
- package/dist/locales/zh-CN/enhancement.json +1 -0
- package/dist/locales/zh-CN/environment.json +1 -0
- package/dist/locales/zh-CN/mark.json +1 -1
- package/dist/locales/zh-CN/mark_ability.json +1 -1
- package/dist/locales/zh-CN/mark_emblem.json +1 -1
- package/dist/locales/zh-CN/nature.json +1 -1
- package/dist/locales/zh-CN/skill.json +1 -1
- package/dist/locales/zh-CN/species.json +1 -1
- package/dist/metadata.mjs +2 -2
- package/dist/native-build.mjs +1 -1
- package/dist/pack-lock.yaml +2 -2
- package/dist/pack.json +3 -0
- package/dist/presentation.json +1 -1
- package/dist/types/src/effect-mark-relations.d.ts.map +1 -1
- package/dist/types/src/effects/hema.effect.d.ts +6 -0
- package/dist/types/src/effects/hema.effect.d.ts.map +1 -0
- package/dist/types/src/effects/inherited-moves.effect.d.ts +5 -0
- package/dist/types/src/effects/inherited-moves.effect.d.ts.map +1 -0
- package/dist/types/src/effects/max-hp-excess.effect.d.ts +11 -0
- package/dist/types/src/effects/max-hp-excess.effect.d.ts.map +1 -0
- package/dist/types/src/effects/shifeng.effect.d.ts +6 -0
- package/dist/types/src/effects/shifeng.effect.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +6 -4
package/dist/effects.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { effectGroup, loadCodeEffects, loadEffectGroups } from "@arcadia-eternity/battle/effect-loading";
|
|
1
|
+
import { effect as effect$1, effectGroup, loadCodeEffects, loadEffectGroups } from "@arcadia-eternity/battle/effect-loading";
|
|
2
2
|
import * as sdk from "@arcadia-eternity/battle/authoring";
|
|
3
|
-
import { EffectTrigger, actions, bindings, booleanParam, checks, compileEffect, conditions, contexts, defineEffect, defineEffects, numberParam, ops, selectFrom, targets, values } from "@arcadia-eternity/battle/authoring";
|
|
4
|
-
import { Category, DamageType, EffectTrigger as EffectTrigger$1, Element } from "@arcadia-eternity/const";
|
|
3
|
+
import { DamageType, EffectTrigger, actions, bindings, booleanParam, checks, compileEffect, conditions, contexts, defineEffect, defineEffects, numberParam, ops, selectFrom, targets, values } from "@arcadia-eternity/battle/authoring";
|
|
4
|
+
import { Category, DamageType as DamageType$1, EffectTrigger as EffectTrigger$1, Element } from "@arcadia-eternity/const";
|
|
5
5
|
import { BaseMark, BaseStatLevelMark, ConfigModifierType, Effect, ParameterCatalog, UseSkillContext, createContentCatalog, defineParameter, parameterAddress } from "@arcadia-eternity/battle/engine";
|
|
6
6
|
import { Type } from "@sinclair/typebox";
|
|
7
7
|
// \0rolldown/runtime.js
|
|
@@ -20,7 +20,7 @@ var attribute_contributions_generated_effect_exports = /* @__PURE__ */ __exportA
|
|
|
20
20
|
AttributeContributionsGeneratedEffects: () => AttributeContributionsGeneratedEffects,
|
|
21
21
|
generatedAttributeContributions: () => generatedAttributeContributions
|
|
22
22
|
});
|
|
23
|
-
var __esDecorate$
|
|
23
|
+
var __esDecorate$71 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
24
24
|
function accept(f) {
|
|
25
25
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
26
26
|
return f;
|
|
@@ -55,7 +55,7 @@ var __esDecorate$67 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
55
55
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
56
56
|
done = true;
|
|
57
57
|
};
|
|
58
|
-
var __runInitializers$
|
|
58
|
+
var __runInitializers$71 = function(thisArg, initializers, value) {
|
|
59
59
|
var useValue = arguments.length > 2;
|
|
60
60
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
61
61
|
return useValue ? value : void 0;
|
|
@@ -71,7 +71,7 @@ let AttributeContributionsGeneratedEffects = (() => {
|
|
|
71
71
|
}
|
|
72
72
|
static {
|
|
73
73
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
74
|
-
__esDecorate$
|
|
74
|
+
__esDecorate$71(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
75
75
|
kind: "class",
|
|
76
76
|
name: _classThis.name,
|
|
77
77
|
metadata: _metadata
|
|
@@ -83,7 +83,7 @@ let AttributeContributionsGeneratedEffects = (() => {
|
|
|
83
83
|
writable: true,
|
|
84
84
|
value: _metadata
|
|
85
85
|
});
|
|
86
|
-
__runInitializers$
|
|
86
|
+
__runInitializers$71(_classThis, _classExtraInitializers);
|
|
87
87
|
}
|
|
88
88
|
static build() {
|
|
89
89
|
return defineEffects({
|
|
@@ -325,7 +325,7 @@ var index_effect_exports = /* @__PURE__ */ __exportAll({
|
|
|
325
325
|
AuthoredEffects: () => AuthoredEffects,
|
|
326
326
|
officialAuthoredEffects: () => officialAuthoredEffects
|
|
327
327
|
});
|
|
328
|
-
var __esDecorate$
|
|
328
|
+
var __esDecorate$70 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
329
329
|
function accept(f) {
|
|
330
330
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
331
331
|
return f;
|
|
@@ -360,7 +360,7 @@ var __esDecorate$66 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
360
360
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
361
361
|
done = true;
|
|
362
362
|
};
|
|
363
|
-
var __runInitializers$
|
|
363
|
+
var __runInitializers$70 = function(thisArg, initializers, value) {
|
|
364
364
|
var useValue = arguments.length > 2;
|
|
365
365
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
366
366
|
return useValue ? value : void 0;
|
|
@@ -377,7 +377,7 @@ let AuthoredEffects = (() => {
|
|
|
377
377
|
}
|
|
378
378
|
static {
|
|
379
379
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
380
|
-
__esDecorate$
|
|
380
|
+
__esDecorate$70(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
381
381
|
kind: "class",
|
|
382
382
|
name: _classThis.name,
|
|
383
383
|
metadata: _metadata
|
|
@@ -389,7 +389,7 @@ let AuthoredEffects = (() => {
|
|
|
389
389
|
writable: true,
|
|
390
390
|
value: _metadata
|
|
391
391
|
});
|
|
392
|
-
__runInitializers$
|
|
392
|
+
__runInitializers$70(_classThis, _classExtraInitializers);
|
|
393
393
|
}
|
|
394
394
|
static build() {
|
|
395
395
|
return defineEffects({
|
|
@@ -405,7 +405,7 @@ let AuthoredEffects = (() => {
|
|
|
405
405
|
const officialAuthoredEffects = AuthoredEffects.build();
|
|
406
406
|
// src/effects/automatic-stack-consumption.effect.ts
|
|
407
407
|
var automatic_stack_consumption_effect_exports = /* @__PURE__ */ __exportAll({ AutomaticStackConsumptionEffects: () => AutomaticStackConsumptionEffects });
|
|
408
|
-
var __esDecorate$
|
|
408
|
+
var __esDecorate$69 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
409
409
|
function accept(f) {
|
|
410
410
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
411
411
|
return f;
|
|
@@ -440,7 +440,7 @@ var __esDecorate$65 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
440
440
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
441
441
|
done = true;
|
|
442
442
|
};
|
|
443
|
-
var __runInitializers$
|
|
443
|
+
var __runInitializers$69 = function(thisArg, initializers, value) {
|
|
444
444
|
var useValue = arguments.length > 2;
|
|
445
445
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
446
446
|
return useValue ? value : void 0;
|
|
@@ -457,7 +457,7 @@ let AutomaticStackConsumptionEffects = (() => {
|
|
|
457
457
|
}
|
|
458
458
|
static {
|
|
459
459
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
460
|
-
__esDecorate$
|
|
460
|
+
__esDecorate$69(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
461
461
|
kind: "class",
|
|
462
462
|
name: _classThis.name,
|
|
463
463
|
metadata: _metadata
|
|
@@ -469,7 +469,7 @@ let AutomaticStackConsumptionEffects = (() => {
|
|
|
469
469
|
writable: true,
|
|
470
470
|
value: _metadata
|
|
471
471
|
});
|
|
472
|
-
__runInitializers$
|
|
472
|
+
__runInitializers$69(_classThis, _classExtraInitializers);
|
|
473
473
|
}
|
|
474
474
|
static build() {
|
|
475
475
|
return defineEffects({
|
|
@@ -500,7 +500,7 @@ let AutomaticStackConsumptionEffects = (() => {
|
|
|
500
500
|
})();
|
|
501
501
|
// src/effects/bingchuantun.effect.ts
|
|
502
502
|
var bingchuantun_effect_exports = /* @__PURE__ */ __exportAll({ BingchuantunEffects: () => BingchuantunEffects });
|
|
503
|
-
var __esDecorate$
|
|
503
|
+
var __esDecorate$68 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
504
504
|
function accept(f) {
|
|
505
505
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
506
506
|
return f;
|
|
@@ -535,7 +535,7 @@ var __esDecorate$64 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
535
535
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
536
536
|
done = true;
|
|
537
537
|
};
|
|
538
|
-
var __runInitializers$
|
|
538
|
+
var __runInitializers$68 = function(thisArg, initializers, value) {
|
|
539
539
|
var useValue = arguments.length > 2;
|
|
540
540
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
541
541
|
return useValue ? value : void 0;
|
|
@@ -554,7 +554,7 @@ let BingchuantunEffects = (() => {
|
|
|
554
554
|
}
|
|
555
555
|
static {
|
|
556
556
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
557
|
-
__esDecorate$
|
|
557
|
+
__esDecorate$68(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
558
558
|
kind: "class",
|
|
559
559
|
name: _classThis.name,
|
|
560
560
|
metadata: _metadata
|
|
@@ -566,7 +566,7 @@ let BingchuantunEffects = (() => {
|
|
|
566
566
|
writable: true,
|
|
567
567
|
value: _metadata
|
|
568
568
|
});
|
|
569
|
-
__runInitializers$
|
|
569
|
+
__runInitializers$68(_classThis, _classExtraInitializers);
|
|
570
570
|
}
|
|
571
571
|
static build(context) {
|
|
572
572
|
const marks = context.marks;
|
|
@@ -580,8 +580,8 @@ let BingchuantunEffects = (() => {
|
|
|
580
580
|
const consumeHanbingjianren = targets.ownerMarks.where((mark) => mark.baseId === hanbingjianren.id).apply(ops.removeMark());
|
|
581
581
|
const opponentHasDongshang = targets.opponentActive.condition((_ctx, pets) => pets.some((pet) => pet.marks.some((mark) => mark.baseId === DONGSHANG)));
|
|
582
582
|
const opponentIsNotIce = targets.opponentActive.condition((_ctx, pets) => pets[0]?.element !== "Ice");
|
|
583
|
-
const damageIsPhysical = contexts.damage.condition((_ctx, events) => events.some((event) => event.damageType === DamageType.Physical));
|
|
584
|
-
const damageIsSpecial = contexts.damage.condition((_ctx, events) => events.some((event) => event.damageType === DamageType.Special));
|
|
583
|
+
const damageIsPhysical = contexts.damage.condition((_ctx, events) => events.some((event) => event.damageType === DamageType$1.Physical));
|
|
584
|
+
const damageIsSpecial = contexts.damage.condition((_ctx, events) => events.some((event) => event.damageType === DamageType$1.Special));
|
|
585
585
|
const damageIsPhysicalOrSpecial = conditions.any(damageIsPhysical, damageIsSpecial);
|
|
586
586
|
return defineEffects({
|
|
587
587
|
/** 寒冰坚韧 (buff 3115): physical damage taken -25%, special damage taken -15%. */
|
|
@@ -709,7 +709,7 @@ var compound_actions_generated_effect_exports = /* @__PURE__ */ __exportAll({
|
|
|
709
709
|
CompoundActionsGeneratedEffects: () => CompoundActionsGeneratedEffects,
|
|
710
710
|
generatedCompoundActionDependencies: () => generatedCompoundActionDependencies
|
|
711
711
|
});
|
|
712
|
-
var __esDecorate$
|
|
712
|
+
var __esDecorate$67 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
713
713
|
function accept(f) {
|
|
714
714
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
715
715
|
return f;
|
|
@@ -744,7 +744,7 @@ var __esDecorate$63 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
744
744
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
745
745
|
done = true;
|
|
746
746
|
};
|
|
747
|
-
var __runInitializers$
|
|
747
|
+
var __runInitializers$67 = function(thisArg, initializers, value) {
|
|
748
748
|
var useValue = arguments.length > 2;
|
|
749
749
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
750
750
|
return useValue ? value : void 0;
|
|
@@ -798,7 +798,7 @@ let CompoundActionsGeneratedEffects = (() => {
|
|
|
798
798
|
}
|
|
799
799
|
static {
|
|
800
800
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
801
|
-
__esDecorate$
|
|
801
|
+
__esDecorate$67(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
802
802
|
kind: "class",
|
|
803
803
|
name: _classThis.name,
|
|
804
804
|
metadata: _metadata
|
|
@@ -810,7 +810,7 @@ let CompoundActionsGeneratedEffects = (() => {
|
|
|
810
810
|
writable: true,
|
|
811
811
|
value: _metadata
|
|
812
812
|
});
|
|
813
|
-
__runInitializers$
|
|
813
|
+
__runInitializers$67(_classThis, _classExtraInitializers);
|
|
814
814
|
}
|
|
815
815
|
static build(context) {
|
|
816
816
|
const marks = context.marks;
|
|
@@ -1053,7 +1053,7 @@ var conditional_actions_generated_effect_exports = /* @__PURE__ */ __exportAll({
|
|
|
1053
1053
|
ConditionalActionsGeneratedEffects: () => ConditionalActionsGeneratedEffects,
|
|
1054
1054
|
generatedConditionalActionDependencies: () => generatedConditionalActionDependencies
|
|
1055
1055
|
});
|
|
1056
|
-
var __esDecorate$
|
|
1056
|
+
var __esDecorate$66 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
1057
1057
|
function accept(f) {
|
|
1058
1058
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
1059
1059
|
return f;
|
|
@@ -1088,7 +1088,7 @@ var __esDecorate$62 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
1088
1088
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
1089
1089
|
done = true;
|
|
1090
1090
|
};
|
|
1091
|
-
var __runInitializers$
|
|
1091
|
+
var __runInitializers$66 = function(thisArg, initializers, value) {
|
|
1092
1092
|
var useValue = arguments.length > 2;
|
|
1093
1093
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
1094
1094
|
return useValue ? value : void 0;
|
|
@@ -1112,7 +1112,7 @@ let ConditionalActionsGeneratedEffects = (() => {
|
|
|
1112
1112
|
}
|
|
1113
1113
|
static {
|
|
1114
1114
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
1115
|
-
__esDecorate$
|
|
1115
|
+
__esDecorate$66(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
1116
1116
|
kind: "class",
|
|
1117
1117
|
name: _classThis.name,
|
|
1118
1118
|
metadata: _metadata
|
|
@@ -1124,7 +1124,7 @@ let ConditionalActionsGeneratedEffects = (() => {
|
|
|
1124
1124
|
writable: true,
|
|
1125
1125
|
value: _metadata
|
|
1126
1126
|
});
|
|
1127
|
-
__runInitializers$
|
|
1127
|
+
__runInitializers$66(_classThis, _classExtraInitializers);
|
|
1128
1128
|
}
|
|
1129
1129
|
static build(context) {
|
|
1130
1130
|
const marks = context.marks;
|
|
@@ -1442,7 +1442,7 @@ let ConditionalActionsGeneratedEffects = (() => {
|
|
|
1442
1442
|
})();
|
|
1443
1443
|
// src/effects/consecutive-flying-rage.effect.ts
|
|
1444
1444
|
var consecutive_flying_rage_effect_exports = /* @__PURE__ */ __exportAll({ ConsecutiveFlyingRageEffects: () => ConsecutiveFlyingRageEffects });
|
|
1445
|
-
var __esDecorate$
|
|
1445
|
+
var __esDecorate$65 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
1446
1446
|
function accept(f) {
|
|
1447
1447
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
1448
1448
|
return f;
|
|
@@ -1477,7 +1477,7 @@ var __esDecorate$61 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
1477
1477
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
1478
1478
|
done = true;
|
|
1479
1479
|
};
|
|
1480
|
-
var __runInitializers$
|
|
1480
|
+
var __runInitializers$65 = function(thisArg, initializers, value) {
|
|
1481
1481
|
var useValue = arguments.length > 2;
|
|
1482
1482
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
1483
1483
|
return useValue ? value : void 0;
|
|
@@ -1493,7 +1493,7 @@ let ConsecutiveFlyingRageEffects = (() => {
|
|
|
1493
1493
|
}
|
|
1494
1494
|
static {
|
|
1495
1495
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
1496
|
-
__esDecorate$
|
|
1496
|
+
__esDecorate$65(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
1497
1497
|
kind: "class",
|
|
1498
1498
|
name: _classThis.name,
|
|
1499
1499
|
metadata: _metadata
|
|
@@ -1505,7 +1505,7 @@ let ConsecutiveFlyingRageEffects = (() => {
|
|
|
1505
1505
|
writable: true,
|
|
1506
1506
|
value: _metadata
|
|
1507
1507
|
});
|
|
1508
|
-
__runInitializers$
|
|
1508
|
+
__runInitializers$65(_classThis, _classExtraInitializers);
|
|
1509
1509
|
}
|
|
1510
1510
|
static build() {
|
|
1511
1511
|
const rage = numberParam({ default: 20 });
|
|
@@ -1546,7 +1546,7 @@ var consecutive_healing_effect_exports = /* @__PURE__ */ __exportAll({
|
|
|
1546
1546
|
ConsecutiveHealingEffects: () => ConsecutiveHealingEffects,
|
|
1547
1547
|
officialConsecutiveHealingEffects: () => officialConsecutiveHealingEffects
|
|
1548
1548
|
});
|
|
1549
|
-
var __esDecorate$
|
|
1549
|
+
var __esDecorate$64 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
1550
1550
|
function accept(f) {
|
|
1551
1551
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
1552
1552
|
return f;
|
|
@@ -1581,7 +1581,7 @@ var __esDecorate$60 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
1581
1581
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
1582
1582
|
done = true;
|
|
1583
1583
|
};
|
|
1584
|
-
var __runInitializers$
|
|
1584
|
+
var __runInitializers$64 = function(thisArg, initializers, value) {
|
|
1585
1585
|
var useValue = arguments.length > 2;
|
|
1586
1586
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
1587
1587
|
return useValue ? value : void 0;
|
|
@@ -1618,7 +1618,7 @@ let ConsecutiveHealingEffects = (() => {
|
|
|
1618
1618
|
}
|
|
1619
1619
|
static {
|
|
1620
1620
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
1621
|
-
__esDecorate$
|
|
1621
|
+
__esDecorate$64(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
1622
1622
|
kind: "class",
|
|
1623
1623
|
name: _classThis.name,
|
|
1624
1624
|
metadata: _metadata
|
|
@@ -1630,7 +1630,7 @@ let ConsecutiveHealingEffects = (() => {
|
|
|
1630
1630
|
writable: true,
|
|
1631
1631
|
value: _metadata
|
|
1632
1632
|
});
|
|
1633
|
-
__runInitializers$
|
|
1633
|
+
__runInitializers$64(_classThis, _classExtraInitializers);
|
|
1634
1634
|
}
|
|
1635
1635
|
static build() {
|
|
1636
1636
|
return officialConsecutiveHealingEffects;
|
|
@@ -1643,7 +1643,7 @@ var context_controls_generated_effect_exports = /* @__PURE__ */ __exportAll({
|
|
|
1643
1643
|
ContextControlsGeneratedEffects: () => ContextControlsGeneratedEffects,
|
|
1644
1644
|
generatedContextControls: () => generatedContextControls
|
|
1645
1645
|
});
|
|
1646
|
-
var __esDecorate$
|
|
1646
|
+
var __esDecorate$63 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
1647
1647
|
function accept(f) {
|
|
1648
1648
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
1649
1649
|
return f;
|
|
@@ -1678,7 +1678,7 @@ var __esDecorate$59 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
1678
1678
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
1679
1679
|
done = true;
|
|
1680
1680
|
};
|
|
1681
|
-
var __runInitializers$
|
|
1681
|
+
var __runInitializers$63 = function(thisArg, initializers, value) {
|
|
1682
1682
|
var useValue = arguments.length > 2;
|
|
1683
1683
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
1684
1684
|
return useValue ? value : void 0;
|
|
@@ -1694,7 +1694,7 @@ let ContextControlsGeneratedEffects = (() => {
|
|
|
1694
1694
|
}
|
|
1695
1695
|
static {
|
|
1696
1696
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
1697
|
-
__esDecorate$
|
|
1697
|
+
__esDecorate$63(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
1698
1698
|
kind: "class",
|
|
1699
1699
|
name: _classThis.name,
|
|
1700
1700
|
metadata: _metadata
|
|
@@ -1706,7 +1706,7 @@ let ContextControlsGeneratedEffects = (() => {
|
|
|
1706
1706
|
writable: true,
|
|
1707
1707
|
value: _metadata
|
|
1708
1708
|
});
|
|
1709
|
-
__runInitializers$
|
|
1709
|
+
__runInitializers$63(_classThis, _classExtraInitializers);
|
|
1710
1710
|
}
|
|
1711
1711
|
static build() {
|
|
1712
1712
|
return defineEffects({
|
|
@@ -1755,7 +1755,7 @@ let ContextControlsGeneratedEffects = (() => {
|
|
|
1755
1755
|
const generatedContextControls = ContextControlsGeneratedEffects.build();
|
|
1756
1756
|
// src/effects/curse-mark-application.effect.ts
|
|
1757
1757
|
var curse_mark_application_effect_exports = /* @__PURE__ */ __exportAll({ CurseMarkApplicationEffects: () => CurseMarkApplicationEffects });
|
|
1758
|
-
var __esDecorate$
|
|
1758
|
+
var __esDecorate$62 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
1759
1759
|
function accept(f) {
|
|
1760
1760
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
1761
1761
|
return f;
|
|
@@ -1790,7 +1790,7 @@ var __esDecorate$58 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
1790
1790
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
1791
1791
|
done = true;
|
|
1792
1792
|
};
|
|
1793
|
-
var __runInitializers$
|
|
1793
|
+
var __runInitializers$62 = function(thisArg, initializers, value) {
|
|
1794
1794
|
var useValue = arguments.length > 2;
|
|
1795
1795
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
1796
1796
|
return useValue ? value : void 0;
|
|
@@ -1807,7 +1807,7 @@ let CurseMarkApplicationEffects = (() => {
|
|
|
1807
1807
|
}
|
|
1808
1808
|
static {
|
|
1809
1809
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
1810
|
-
__esDecorate$
|
|
1810
|
+
__esDecorate$62(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
1811
1811
|
kind: "class",
|
|
1812
1812
|
name: _classThis.name,
|
|
1813
1813
|
metadata: _metadata
|
|
@@ -1819,7 +1819,7 @@ let CurseMarkApplicationEffects = (() => {
|
|
|
1819
1819
|
writable: true,
|
|
1820
1820
|
value: _metadata
|
|
1821
1821
|
});
|
|
1822
|
-
__runInitializers$
|
|
1822
|
+
__runInitializers$62(_classThis, _classExtraInitializers);
|
|
1823
1823
|
}
|
|
1824
1824
|
static build(context) {
|
|
1825
1825
|
const marks = context.marks;
|
|
@@ -1839,7 +1839,7 @@ var damage_benefits_effect_exports = /* @__PURE__ */ __exportAll({
|
|
|
1839
1839
|
DamageBenefitsEffects: () => DamageBenefitsEffects,
|
|
1840
1840
|
officialDamageBenefitEffects: () => officialDamageBenefitEffects
|
|
1841
1841
|
});
|
|
1842
|
-
var __esDecorate$
|
|
1842
|
+
var __esDecorate$61 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
1843
1843
|
function accept(f) {
|
|
1844
1844
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
1845
1845
|
return f;
|
|
@@ -1874,7 +1874,7 @@ var __esDecorate$57 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
1874
1874
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
1875
1875
|
done = true;
|
|
1876
1876
|
};
|
|
1877
|
-
var __runInitializers$
|
|
1877
|
+
var __runInitializers$61 = function(thisArg, initializers, value) {
|
|
1878
1878
|
var useValue = arguments.length > 2;
|
|
1879
1879
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
1880
1880
|
return useValue ? value : void 0;
|
|
@@ -1908,7 +1908,7 @@ let DamageBenefitsEffects = (() => {
|
|
|
1908
1908
|
}
|
|
1909
1909
|
static {
|
|
1910
1910
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
1911
|
-
__esDecorate$
|
|
1911
|
+
__esDecorate$61(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
1912
1912
|
kind: "class",
|
|
1913
1913
|
name: _classThis.name,
|
|
1914
1914
|
metadata: _metadata
|
|
@@ -1920,7 +1920,7 @@ let DamageBenefitsEffects = (() => {
|
|
|
1920
1920
|
writable: true,
|
|
1921
1921
|
value: _metadata
|
|
1922
1922
|
});
|
|
1923
|
-
__runInitializers$
|
|
1923
|
+
__runInitializers$61(_classThis, _classExtraInitializers);
|
|
1924
1924
|
}
|
|
1925
1925
|
static build() {
|
|
1926
1926
|
return officialDamageBenefitEffects;
|
|
@@ -1933,7 +1933,7 @@ var damage_modifiers_generated_effect_exports = /* @__PURE__ */ __exportAll({
|
|
|
1933
1933
|
DamageModifiersGeneratedEffects: () => DamageModifiersGeneratedEffects,
|
|
1934
1934
|
generatedDamageModifierEffects: () => generatedDamageModifierEffects
|
|
1935
1935
|
});
|
|
1936
|
-
var __esDecorate$
|
|
1936
|
+
var __esDecorate$60 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
1937
1937
|
function accept(f) {
|
|
1938
1938
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
1939
1939
|
return f;
|
|
@@ -1968,7 +1968,7 @@ var __esDecorate$56 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
1968
1968
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
1969
1969
|
done = true;
|
|
1970
1970
|
};
|
|
1971
|
-
var __runInitializers$
|
|
1971
|
+
var __runInitializers$60 = function(thisArg, initializers, value) {
|
|
1972
1972
|
var useValue = arguments.length > 2;
|
|
1973
1973
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
1974
1974
|
return useValue ? value : void 0;
|
|
@@ -1984,7 +1984,7 @@ let DamageModifiersGeneratedEffects = (() => {
|
|
|
1984
1984
|
}
|
|
1985
1985
|
static {
|
|
1986
1986
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
1987
|
-
__esDecorate$
|
|
1987
|
+
__esDecorate$60(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
1988
1988
|
kind: "class",
|
|
1989
1989
|
name: _classThis.name,
|
|
1990
1990
|
metadata: _metadata
|
|
@@ -1996,7 +1996,7 @@ let DamageModifiersGeneratedEffects = (() => {
|
|
|
1996
1996
|
writable: true,
|
|
1997
1997
|
value: _metadata
|
|
1998
1998
|
});
|
|
1999
|
-
__runInitializers$
|
|
1999
|
+
__runInitializers$60(_classThis, _classExtraInitializers);
|
|
2000
2000
|
}
|
|
2001
2001
|
static build() {
|
|
2002
2002
|
return defineEffects({
|
|
@@ -3072,7 +3072,7 @@ var damage_sequences_generated_effect_exports = /* @__PURE__ */ __exportAll({
|
|
|
3072
3072
|
DamageSequencesGeneratedEffects: () => DamageSequencesGeneratedEffects,
|
|
3073
3073
|
generatedDamageSequences: () => generatedDamageSequences
|
|
3074
3074
|
});
|
|
3075
|
-
var __esDecorate$
|
|
3075
|
+
var __esDecorate$59 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
3076
3076
|
function accept(f) {
|
|
3077
3077
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
3078
3078
|
return f;
|
|
@@ -3107,7 +3107,7 @@ var __esDecorate$55 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
3107
3107
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
3108
3108
|
done = true;
|
|
3109
3109
|
};
|
|
3110
|
-
var __runInitializers$
|
|
3110
|
+
var __runInitializers$59 = function(thisArg, initializers, value) {
|
|
3111
3111
|
var useValue = arguments.length > 2;
|
|
3112
3112
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
3113
3113
|
return useValue ? value : void 0;
|
|
@@ -3123,7 +3123,7 @@ let DamageSequencesGeneratedEffects = (() => {
|
|
|
3123
3123
|
}
|
|
3124
3124
|
static {
|
|
3125
3125
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
3126
|
-
__esDecorate$
|
|
3126
|
+
__esDecorate$59(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
3127
3127
|
kind: "class",
|
|
3128
3128
|
name: _classThis.name,
|
|
3129
3129
|
metadata: _metadata
|
|
@@ -3135,7 +3135,7 @@ let DamageSequencesGeneratedEffects = (() => {
|
|
|
3135
3135
|
writable: true,
|
|
3136
3136
|
value: _metadata
|
|
3137
3137
|
});
|
|
3138
|
-
__runInitializers$
|
|
3138
|
+
__runInitializers$59(_classThis, _classExtraInitializers);
|
|
3139
3139
|
}
|
|
3140
3140
|
static build() {
|
|
3141
3141
|
return defineEffects({
|
|
@@ -3282,7 +3282,7 @@ var damage_thresholds_generated_effect_exports = /* @__PURE__ */ __exportAll({
|
|
|
3282
3282
|
DamageThresholdsGeneratedEffects: () => DamageThresholdsGeneratedEffects,
|
|
3283
3283
|
generatedDamageThresholds: () => generatedDamageThresholds
|
|
3284
3284
|
});
|
|
3285
|
-
var __esDecorate$
|
|
3285
|
+
var __esDecorate$58 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
3286
3286
|
function accept(f) {
|
|
3287
3287
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
3288
3288
|
return f;
|
|
@@ -3317,7 +3317,7 @@ var __esDecorate$54 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
3317
3317
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
3318
3318
|
done = true;
|
|
3319
3319
|
};
|
|
3320
|
-
var __runInitializers$
|
|
3320
|
+
var __runInitializers$58 = function(thisArg, initializers, value) {
|
|
3321
3321
|
var useValue = arguments.length > 2;
|
|
3322
3322
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
3323
3323
|
return useValue ? value : void 0;
|
|
@@ -3333,7 +3333,7 @@ let DamageThresholdsGeneratedEffects = (() => {
|
|
|
3333
3333
|
}
|
|
3334
3334
|
static {
|
|
3335
3335
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
3336
|
-
__esDecorate$
|
|
3336
|
+
__esDecorate$58(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
3337
3337
|
kind: "class",
|
|
3338
3338
|
name: _classThis.name,
|
|
3339
3339
|
metadata: _metadata
|
|
@@ -3345,7 +3345,7 @@ let DamageThresholdsGeneratedEffects = (() => {
|
|
|
3345
3345
|
writable: true,
|
|
3346
3346
|
value: _metadata
|
|
3347
3347
|
});
|
|
3348
|
-
__runInitializers$
|
|
3348
|
+
__runInitializers$58(_classThis, _classExtraInitializers);
|
|
3349
3349
|
}
|
|
3350
3350
|
static build() {
|
|
3351
3351
|
return defineEffects({
|
|
@@ -3387,7 +3387,7 @@ let DamageThresholdsGeneratedEffects = (() => {
|
|
|
3387
3387
|
const generatedDamageThresholds = DamageThresholdsGeneratedEffects.build();
|
|
3388
3388
|
// src/effects/double-stage-debuff.effect.ts
|
|
3389
3389
|
var double_stage_debuff_effect_exports = /* @__PURE__ */ __exportAll({ DoubleStageDebuffEffects: () => DoubleStageDebuffEffects });
|
|
3390
|
-
var __esDecorate$
|
|
3390
|
+
var __esDecorate$57 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
3391
3391
|
function accept(f) {
|
|
3392
3392
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
3393
3393
|
return f;
|
|
@@ -3422,7 +3422,7 @@ var __esDecorate$53 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
3422
3422
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
3423
3423
|
done = true;
|
|
3424
3424
|
};
|
|
3425
|
-
var __runInitializers$
|
|
3425
|
+
var __runInitializers$57 = function(thisArg, initializers, value) {
|
|
3426
3426
|
var useValue = arguments.length > 2;
|
|
3427
3427
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
3428
3428
|
return useValue ? value : void 0;
|
|
@@ -3439,7 +3439,7 @@ let DoubleStageDebuffEffects = (() => {
|
|
|
3439
3439
|
}
|
|
3440
3440
|
static {
|
|
3441
3441
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
3442
|
-
__esDecorate$
|
|
3442
|
+
__esDecorate$57(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
3443
3443
|
kind: "class",
|
|
3444
3444
|
name: _classThis.name,
|
|
3445
3445
|
metadata: _metadata
|
|
@@ -3451,7 +3451,7 @@ let DoubleStageDebuffEffects = (() => {
|
|
|
3451
3451
|
writable: true,
|
|
3452
3452
|
value: _metadata
|
|
3453
3453
|
});
|
|
3454
|
-
__runInitializers$
|
|
3454
|
+
__runInitializers$57(_classThis, _classExtraInitializers);
|
|
3455
3455
|
}
|
|
3456
3456
|
static build() {
|
|
3457
3457
|
const doubledLevel = contexts.addMark.flatMap((event) => event.baseMark instanceof BaseStatLevelMark ? [event.baseMark.initialLevel] : []).select((level) => Math.floor(level * 2)).first();
|
|
@@ -3471,7 +3471,7 @@ var dynamic_contributions_generated_effect_exports = /* @__PURE__ */ __exportAll
|
|
|
3471
3471
|
DynamicContributionsGeneratedEffects: () => DynamicContributionsGeneratedEffects,
|
|
3472
3472
|
generatedDynamicContributions: () => generatedDynamicContributions
|
|
3473
3473
|
});
|
|
3474
|
-
var __esDecorate$
|
|
3474
|
+
var __esDecorate$56 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
3475
3475
|
function accept(f) {
|
|
3476
3476
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
3477
3477
|
return f;
|
|
@@ -3506,7 +3506,7 @@ var __esDecorate$52 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
3506
3506
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
3507
3507
|
done = true;
|
|
3508
3508
|
};
|
|
3509
|
-
var __runInitializers$
|
|
3509
|
+
var __runInitializers$56 = function(thisArg, initializers, value) {
|
|
3510
3510
|
var useValue = arguments.length > 2;
|
|
3511
3511
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
3512
3512
|
return useValue ? value : void 0;
|
|
@@ -3522,7 +3522,7 @@ let DynamicContributionsGeneratedEffects = (() => {
|
|
|
3522
3522
|
}
|
|
3523
3523
|
static {
|
|
3524
3524
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
3525
|
-
__esDecorate$
|
|
3525
|
+
__esDecorate$56(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
3526
3526
|
kind: "class",
|
|
3527
3527
|
name: _classThis.name,
|
|
3528
3528
|
metadata: _metadata
|
|
@@ -3534,7 +3534,7 @@ let DynamicContributionsGeneratedEffects = (() => {
|
|
|
3534
3534
|
writable: true,
|
|
3535
3535
|
value: _metadata
|
|
3536
3536
|
});
|
|
3537
|
-
__runInitializers$
|
|
3537
|
+
__runInitializers$56(_classThis, _classExtraInitializers);
|
|
3538
3538
|
}
|
|
3539
3539
|
static build() {
|
|
3540
3540
|
return defineEffects({
|
|
@@ -3727,7 +3727,7 @@ let DynamicContributionsGeneratedEffects = (() => {
|
|
|
3727
3727
|
const generatedDynamicContributions = DynamicContributionsGeneratedEffects.build();
|
|
3728
3728
|
// src/effects/emblem-skill-cost.effect.ts
|
|
3729
3729
|
var emblem_skill_cost_effect_exports = /* @__PURE__ */ __exportAll({ EmblemSkillCostEffects: () => EmblemSkillCostEffects });
|
|
3730
|
-
var __esDecorate$
|
|
3730
|
+
var __esDecorate$55 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
3731
3731
|
function accept(f) {
|
|
3732
3732
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
3733
3733
|
return f;
|
|
@@ -3762,7 +3762,7 @@ var __esDecorate$51 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
3762
3762
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
3763
3763
|
done = true;
|
|
3764
3764
|
};
|
|
3765
|
-
var __runInitializers$
|
|
3765
|
+
var __runInitializers$55 = function(thisArg, initializers, value) {
|
|
3766
3766
|
var useValue = arguments.length > 2;
|
|
3767
3767
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
3768
3768
|
return useValue ? value : void 0;
|
|
@@ -3779,7 +3779,7 @@ let EmblemSkillCostEffects = (() => {
|
|
|
3779
3779
|
}
|
|
3780
3780
|
static {
|
|
3781
3781
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
3782
|
-
__esDecorate$
|
|
3782
|
+
__esDecorate$55(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
3783
3783
|
kind: "class",
|
|
3784
3784
|
name: _classThis.name,
|
|
3785
3785
|
metadata: _metadata
|
|
@@ -3791,7 +3791,7 @@ let EmblemSkillCostEffects = (() => {
|
|
|
3791
3791
|
writable: true,
|
|
3792
3792
|
value: _metadata
|
|
3793
3793
|
});
|
|
3794
|
-
__runInitializers$
|
|
3794
|
+
__runInitializers$55(_classThis, _classExtraInitializers);
|
|
3795
3795
|
}
|
|
3796
3796
|
static build() {
|
|
3797
3797
|
const reduction = numberParam({ default: 5 });
|
|
@@ -3812,7 +3812,7 @@ var event_cancellation_generated_effect_exports = /* @__PURE__ */ __exportAll({
|
|
|
3812
3812
|
EventCancellationGeneratedEffects: () => EventCancellationGeneratedEffects,
|
|
3813
3813
|
generatedEventCancellation: () => generatedEventCancellation
|
|
3814
3814
|
});
|
|
3815
|
-
var __esDecorate$
|
|
3815
|
+
var __esDecorate$54 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
3816
3816
|
function accept(f) {
|
|
3817
3817
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
3818
3818
|
return f;
|
|
@@ -3847,7 +3847,7 @@ var __esDecorate$50 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
3847
3847
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
3848
3848
|
done = true;
|
|
3849
3849
|
};
|
|
3850
|
-
var __runInitializers$
|
|
3850
|
+
var __runInitializers$54 = function(thisArg, initializers, value) {
|
|
3851
3851
|
var useValue = arguments.length > 2;
|
|
3852
3852
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
3853
3853
|
return useValue ? value : void 0;
|
|
@@ -3863,7 +3863,7 @@ let EventCancellationGeneratedEffects = (() => {
|
|
|
3863
3863
|
}
|
|
3864
3864
|
static {
|
|
3865
3865
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
3866
|
-
__esDecorate$
|
|
3866
|
+
__esDecorate$54(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
3867
3867
|
kind: "class",
|
|
3868
3868
|
name: _classThis.name,
|
|
3869
3869
|
metadata: _metadata
|
|
@@ -3875,7 +3875,7 @@ let EventCancellationGeneratedEffects = (() => {
|
|
|
3875
3875
|
writable: true,
|
|
3876
3876
|
value: _metadata
|
|
3877
3877
|
});
|
|
3878
|
-
__runInitializers$
|
|
3878
|
+
__runInitializers$54(_classThis, _classExtraInitializers);
|
|
3879
3879
|
}
|
|
3880
3880
|
static build() {
|
|
3881
3881
|
return defineEffects({
|
|
@@ -3954,7 +3954,7 @@ let EventCancellationGeneratedEffects = (() => {
|
|
|
3954
3954
|
const generatedEventCancellation = EventCancellationGeneratedEffects.build();
|
|
3955
3955
|
// src/effects/execute-low-health.effect.ts
|
|
3956
3956
|
var execute_low_health_effect_exports = /* @__PURE__ */ __exportAll({ ExecuteLowHealthEffects: () => ExecuteLowHealthEffects });
|
|
3957
|
-
var __esDecorate$
|
|
3957
|
+
var __esDecorate$53 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
3958
3958
|
function accept(f) {
|
|
3959
3959
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
3960
3960
|
return f;
|
|
@@ -3989,7 +3989,7 @@ var __esDecorate$49 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
3989
3989
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
3990
3990
|
done = true;
|
|
3991
3991
|
};
|
|
3992
|
-
var __runInitializers$
|
|
3992
|
+
var __runInitializers$53 = function(thisArg, initializers, value) {
|
|
3993
3993
|
var useValue = arguments.length > 2;
|
|
3994
3994
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
3995
3995
|
return useValue ? value : void 0;
|
|
@@ -4005,7 +4005,7 @@ let ExecuteLowHealthEffects = (() => {
|
|
|
4005
4005
|
}
|
|
4006
4006
|
static {
|
|
4007
4007
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
4008
|
-
__esDecorate$
|
|
4008
|
+
__esDecorate$53(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
4009
4009
|
kind: "class",
|
|
4010
4010
|
name: _classThis.name,
|
|
4011
4011
|
metadata: _metadata
|
|
@@ -4017,7 +4017,7 @@ let ExecuteLowHealthEffects = (() => {
|
|
|
4017
4017
|
writable: true,
|
|
4018
4018
|
value: _metadata
|
|
4019
4019
|
});
|
|
4020
|
-
__runInitializers$
|
|
4020
|
+
__runInitializers$53(_classThis, _classExtraInitializers);
|
|
4021
4021
|
}
|
|
4022
4022
|
static build() {
|
|
4023
4023
|
const threshold = numberParam({ default: 75 });
|
|
@@ -4034,7 +4034,7 @@ let ExecuteLowHealthEffects = (() => {
|
|
|
4034
4034
|
})();
|
|
4035
4035
|
// src/effects/experience-placeholder.effect.ts
|
|
4036
4036
|
var experience_placeholder_effect_exports = /* @__PURE__ */ __exportAll({ ExperiencePlaceholderEffects: () => ExperiencePlaceholderEffects });
|
|
4037
|
-
var __esDecorate$
|
|
4037
|
+
var __esDecorate$52 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
4038
4038
|
function accept(f) {
|
|
4039
4039
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
4040
4040
|
return f;
|
|
@@ -4069,7 +4069,7 @@ var __esDecorate$48 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
4069
4069
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
4070
4070
|
done = true;
|
|
4071
4071
|
};
|
|
4072
|
-
var __runInitializers$
|
|
4072
|
+
var __runInitializers$52 = function(thisArg, initializers, value) {
|
|
4073
4073
|
var useValue = arguments.length > 2;
|
|
4074
4074
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
4075
4075
|
return useValue ? value : void 0;
|
|
@@ -4086,7 +4086,7 @@ let ExperiencePlaceholderEffects = (() => {
|
|
|
4086
4086
|
}
|
|
4087
4087
|
static {
|
|
4088
4088
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
4089
|
-
__esDecorate$
|
|
4089
|
+
__esDecorate$52(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
4090
4090
|
kind: "class",
|
|
4091
4091
|
name: _classThis.name,
|
|
4092
4092
|
metadata: _metadata
|
|
@@ -4098,7 +4098,7 @@ let ExperiencePlaceholderEffects = (() => {
|
|
|
4098
4098
|
writable: true,
|
|
4099
4099
|
value: _metadata
|
|
4100
4100
|
});
|
|
4101
|
-
__runInitializers$
|
|
4101
|
+
__runInitializers$52(_classThis, _classExtraInitializers);
|
|
4102
4102
|
}
|
|
4103
4103
|
static build() {
|
|
4104
4104
|
return compileEffect({
|
|
@@ -4114,7 +4114,7 @@ let ExperiencePlaceholderEffects = (() => {
|
|
|
4114
4114
|
})();
|
|
4115
4115
|
// src/effects/fractional-healing.effect.ts
|
|
4116
4116
|
var fractional_healing_effect_exports = /* @__PURE__ */ __exportAll({ FractionalHealingEffects: () => FractionalHealingEffects });
|
|
4117
|
-
var __esDecorate$
|
|
4117
|
+
var __esDecorate$51 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
4118
4118
|
function accept(f) {
|
|
4119
4119
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
4120
4120
|
return f;
|
|
@@ -4149,7 +4149,7 @@ var __esDecorate$47 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
4149
4149
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
4150
4150
|
done = true;
|
|
4151
4151
|
};
|
|
4152
|
-
var __runInitializers$
|
|
4152
|
+
var __runInitializers$51 = function(thisArg, initializers, value) {
|
|
4153
4153
|
var useValue = arguments.length > 2;
|
|
4154
4154
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
4155
4155
|
return useValue ? value : void 0;
|
|
@@ -4177,7 +4177,7 @@ let FractionalHealingEffects = (() => {
|
|
|
4177
4177
|
}
|
|
4178
4178
|
static {
|
|
4179
4179
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
4180
|
-
__esDecorate$
|
|
4180
|
+
__esDecorate$51(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
4181
4181
|
kind: "class",
|
|
4182
4182
|
name: _classThis.name,
|
|
4183
4183
|
metadata: _metadata
|
|
@@ -4189,7 +4189,7 @@ let FractionalHealingEffects = (() => {
|
|
|
4189
4189
|
writable: true,
|
|
4190
4190
|
value: _metadata
|
|
4191
4191
|
});
|
|
4192
|
-
__runInitializers$
|
|
4192
|
+
__runInitializers$51(_classThis, _classExtraInitializers);
|
|
4193
4193
|
}
|
|
4194
4194
|
static build() {
|
|
4195
4195
|
return defineEffects({
|
|
@@ -4206,7 +4206,7 @@ var heal_modifiers_effect_exports = /* @__PURE__ */ __exportAll({
|
|
|
4206
4206
|
HealModifiersEffects: () => HealModifiersEffects,
|
|
4207
4207
|
officialHealModifierEffects: () => officialHealModifierEffects
|
|
4208
4208
|
});
|
|
4209
|
-
var __esDecorate$
|
|
4209
|
+
var __esDecorate$50 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
4210
4210
|
function accept(f) {
|
|
4211
4211
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
4212
4212
|
return f;
|
|
@@ -4241,7 +4241,7 @@ var __esDecorate$46 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
4241
4241
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
4242
4242
|
done = true;
|
|
4243
4243
|
};
|
|
4244
|
-
var __runInitializers$
|
|
4244
|
+
var __runInitializers$50 = function(thisArg, initializers, value) {
|
|
4245
4245
|
var useValue = arguments.length > 2;
|
|
4246
4246
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
4247
4247
|
return useValue ? value : void 0;
|
|
@@ -4268,7 +4268,7 @@ let HealModifiersEffects = (() => {
|
|
|
4268
4268
|
}
|
|
4269
4269
|
static {
|
|
4270
4270
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
4271
|
-
__esDecorate$
|
|
4271
|
+
__esDecorate$50(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
4272
4272
|
kind: "class",
|
|
4273
4273
|
name: _classThis.name,
|
|
4274
4274
|
metadata: _metadata
|
|
@@ -4280,7 +4280,7 @@ let HealModifiersEffects = (() => {
|
|
|
4280
4280
|
writable: true,
|
|
4281
4281
|
value: _metadata
|
|
4282
4282
|
});
|
|
4283
|
-
__runInitializers$
|
|
4283
|
+
__runInitializers$50(_classThis, _classExtraInitializers);
|
|
4284
4284
|
}
|
|
4285
4285
|
static build() {
|
|
4286
4286
|
return defineEffects({
|
|
@@ -4300,7 +4300,7 @@ var healing_effect_exports = /* @__PURE__ */ __exportAll({
|
|
|
4300
4300
|
HealingEffects: () => HealingEffects,
|
|
4301
4301
|
officialHealingEffects: () => officialHealingEffects
|
|
4302
4302
|
});
|
|
4303
|
-
var __esDecorate$
|
|
4303
|
+
var __esDecorate$49 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
4304
4304
|
function accept(f) {
|
|
4305
4305
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
4306
4306
|
return f;
|
|
@@ -4335,7 +4335,7 @@ var __esDecorate$45 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
4335
4335
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
4336
4336
|
done = true;
|
|
4337
4337
|
};
|
|
4338
|
-
var __runInitializers$
|
|
4338
|
+
var __runInitializers$49 = function(thisArg, initializers, value) {
|
|
4339
4339
|
var useValue = arguments.length > 2;
|
|
4340
4340
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
4341
4341
|
return useValue ? value : void 0;
|
|
@@ -4359,7 +4359,7 @@ let HealingEffects = (() => {
|
|
|
4359
4359
|
}
|
|
4360
4360
|
static {
|
|
4361
4361
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
4362
|
-
__esDecorate$
|
|
4362
|
+
__esDecorate$49(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
4363
4363
|
kind: "class",
|
|
4364
4364
|
name: _classThis.name,
|
|
4365
4365
|
metadata: _metadata
|
|
@@ -4371,7 +4371,7 @@ let HealingEffects = (() => {
|
|
|
4371
4371
|
writable: true,
|
|
4372
4372
|
value: _metadata
|
|
4373
4373
|
});
|
|
4374
|
-
__runInitializers$
|
|
4374
|
+
__runInitializers$49(_classThis, _classExtraInitializers);
|
|
4375
4375
|
}
|
|
4376
4376
|
static build() {
|
|
4377
4377
|
return officialHealingEffects;
|
|
@@ -4379,12 +4379,9 @@ let HealingEffects = (() => {
|
|
|
4379
4379
|
};
|
|
4380
4380
|
return _classThis;
|
|
4381
4381
|
})();
|
|
4382
|
-
// src/effects/
|
|
4383
|
-
var
|
|
4384
|
-
|
|
4385
|
-
generatedIgnoreShield: () => generatedIgnoreShield
|
|
4386
|
-
});
|
|
4387
|
-
var __esDecorate$44 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
4382
|
+
// src/effects/hema.effect.ts
|
|
4383
|
+
var hema_effect_exports = /* @__PURE__ */ __exportAll({ HemaEffects: () => HemaEffects });
|
|
4384
|
+
var __esDecorate$48 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
4388
4385
|
function accept(f) {
|
|
4389
4386
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
4390
4387
|
return f;
|
|
@@ -4419,54 +4416,120 @@ var __esDecorate$44 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
4419
4416
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
4420
4417
|
done = true;
|
|
4421
4418
|
};
|
|
4422
|
-
var __runInitializers$
|
|
4419
|
+
var __runInitializers$48 = function(thisArg, initializers, value) {
|
|
4423
4420
|
var useValue = arguments.length > 2;
|
|
4424
4421
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
4425
4422
|
return useValue ? value : void 0;
|
|
4426
4423
|
};
|
|
4427
|
-
|
|
4428
|
-
|
|
4424
|
+
const hearing = "mark_shiqutingjue";
|
|
4425
|
+
const smell = "mark_shiquxiujue";
|
|
4426
|
+
const taste = "mark_shiquweijue";
|
|
4427
|
+
const senseLoss = /* @__PURE__ */ new Set([
|
|
4428
|
+
hearing,
|
|
4429
|
+
smell,
|
|
4430
|
+
taste
|
|
4431
|
+
]);
|
|
4432
|
+
const opponentLostAnySense = targets.opponentActive.condition((_ctx, pets) => pets.some((pet) => pet.marks.some((mark) => senseLoss.has(mark.baseId))));
|
|
4433
|
+
function opponentLostSense(id) {
|
|
4434
|
+
return targets.opponentActive.condition((_ctx, pets) => pets.some((pet) => pet.marks.some((mark) => mark.baseId === id)));
|
|
4435
|
+
}
|
|
4436
|
+
let HemaEffects = (() => {
|
|
4437
|
+
let _classDecorators = [effectGroup({ id: "hema" })];
|
|
4429
4438
|
let _classDescriptor;
|
|
4430
4439
|
let _classExtraInitializers = [];
|
|
4431
4440
|
let _classThis;
|
|
4432
|
-
var
|
|
4441
|
+
var HemaEffects = class {
|
|
4433
4442
|
static {
|
|
4434
4443
|
_classThis = this;
|
|
4435
4444
|
}
|
|
4436
4445
|
static {
|
|
4437
4446
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
4438
|
-
__esDecorate$
|
|
4447
|
+
__esDecorate$48(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
4439
4448
|
kind: "class",
|
|
4440
4449
|
name: _classThis.name,
|
|
4441
4450
|
metadata: _metadata
|
|
4442
4451
|
}, null, _classExtraInitializers);
|
|
4443
|
-
|
|
4452
|
+
HemaEffects = _classThis = _classDescriptor.value;
|
|
4444
4453
|
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, {
|
|
4445
4454
|
enumerable: true,
|
|
4446
4455
|
configurable: true,
|
|
4447
4456
|
writable: true,
|
|
4448
4457
|
value: _metadata
|
|
4449
4458
|
});
|
|
4450
|
-
__runInitializers$
|
|
4459
|
+
__runInitializers$48(_classThis, _classExtraInitializers);
|
|
4451
4460
|
}
|
|
4452
|
-
static build() {
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4461
|
+
static build({ marks }) {
|
|
4462
|
+
const lostSenseMarks = [...senseLoss].map((id) => {
|
|
4463
|
+
const mark = marks.get(id);
|
|
4464
|
+
if (!mark || mark.id !== id) throw new Error(`Missing official mark: ${id}`);
|
|
4465
|
+
return mark;
|
|
4466
|
+
});
|
|
4467
|
+
return defineEffects({
|
|
4468
|
+
effect_skill_ganjuebaoli: {
|
|
4469
|
+
triggers: [EffectTrigger.OnHit],
|
|
4470
|
+
priority: 0,
|
|
4471
|
+
when: conditions.selfUsesSkill,
|
|
4472
|
+
apply: targets.opponentActive.apply(ops.addMark(selectFrom(lostSenseMarks).shuffled().first()))
|
|
4473
|
+
},
|
|
4474
|
+
effect_skill_add_50_power_if_opponent_lost_sense: {
|
|
4475
|
+
triggers: [EffectTrigger.BeforeHit],
|
|
4476
|
+
priority: 0,
|
|
4477
|
+
when: conditions.all(conditions.selfUsesSkill, opponentLostAnySense),
|
|
4478
|
+
apply: contexts.skillUse.apply(ops.addPower(50))
|
|
4479
|
+
},
|
|
4480
|
+
effect_skill_reduce_spe_if_opponent_lost_hearing: {
|
|
4481
|
+
triggers: [EffectTrigger.OnHit],
|
|
4482
|
+
priority: 0,
|
|
4483
|
+
when: conditions.all(conditions.selfUsesSkill, opponentLostSense(hearing)),
|
|
4484
|
+
apply: targets.opponentActive.apply(ops.changeStatStage("spe", -1))
|
|
4485
|
+
},
|
|
4486
|
+
effect_skill_beiheyimi: {
|
|
4487
|
+
triggers: [EffectTrigger.OnHit],
|
|
4488
|
+
priority: 0,
|
|
4489
|
+
when: conditions.selfUsesSkill,
|
|
4490
|
+
apply: actions.sequence(actions.choose(opponentLostSense(hearing), targets.ownerPet.apply(ops.changeStatStage("spe", 1))), actions.choose(opponentLostSense(smell), targets.ownerPet.apply(ops.changeStatStage("spd", 1))), actions.choose(opponentLostSense(taste), targets.ownerPet.apply(ops.changeStatStage("def", 1))))
|
|
4491
|
+
},
|
|
4492
|
+
effect_skill_chaogansangshibo: {
|
|
4493
|
+
triggers: [EffectTrigger.OnHit],
|
|
4494
|
+
priority: 0,
|
|
4495
|
+
when: conditions.selfUsesSkill,
|
|
4496
|
+
apply: actions.sequence(...lostSenseMarks.map((mark) => targets.opponentActive.apply(ops.addMark(mark))))
|
|
4497
|
+
},
|
|
4498
|
+
effect_mark_shiqutingjue_attack_sure_hit: {
|
|
4499
|
+
triggers: [EffectTrigger.AfterUseSkillCheck],
|
|
4500
|
+
priority: 0,
|
|
4501
|
+
when: conditions.all(conditions.ownerIsSkillTarget, contexts.skillUse.condition((_ctx, events) => events.some((event) => event.category !== "Status"))),
|
|
4502
|
+
apply: contexts.skillUse.apply(ops.setSureHit(2))
|
|
4503
|
+
},
|
|
4504
|
+
effect_mark_shiquweijue_status_skill_sure_hit: {
|
|
4505
|
+
triggers: [EffectTrigger.AfterUseSkillCheck],
|
|
4506
|
+
priority: 0,
|
|
4507
|
+
when: conditions.all(conditions.ownerIsSkillTarget, contexts.skillUse.condition((_ctx, events) => events.some((event) => event.category === "Status"))),
|
|
4508
|
+
apply: contexts.skillUse.apply(ops.setSureHit(2))
|
|
4509
|
+
},
|
|
4510
|
+
effect_ability_ganjue_add_rage: {
|
|
4511
|
+
triggers: [EffectTrigger.OnHit],
|
|
4512
|
+
priority: 1,
|
|
4513
|
+
when: conditions.all(conditions.ownerUsesSkill, opponentLostAnySense),
|
|
4514
|
+
apply: targets.ownerPet.apply(ops.addRage(5))
|
|
4515
|
+
},
|
|
4516
|
+
effect_emblem_tingjue_prevent_hearing_loss: {
|
|
4517
|
+
triggers: [EffectTrigger.OnBeforeAddMark],
|
|
4518
|
+
priority: 0,
|
|
4519
|
+
when: conditions.all(conditions.ownerReceivesMark, contexts.addMark.condition((_ctx, events) => events.some((event) => event.baseMark.id === hearing))),
|
|
4520
|
+
apply: contexts.addMark.apply(ops.disableContext())
|
|
4521
|
+
}
|
|
4522
|
+
});
|
|
4459
4523
|
}
|
|
4460
4524
|
};
|
|
4461
4525
|
return _classThis;
|
|
4462
4526
|
})();
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
generatedInstantLiteralEffects: () => generatedInstantLiteralEffects
|
|
4527
|
+
// src/effects/ignore-shield.generated.effect.ts
|
|
4528
|
+
var ignore_shield_generated_effect_exports = /* @__PURE__ */ __exportAll({
|
|
4529
|
+
IgnoreShieldGeneratedEffects: () => IgnoreShieldGeneratedEffects,
|
|
4530
|
+
generatedIgnoreShield: () => generatedIgnoreShield
|
|
4468
4531
|
});
|
|
4469
|
-
var __esDecorate$
|
|
4532
|
+
var __esDecorate$47 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
4470
4533
|
function accept(f) {
|
|
4471
4534
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
4472
4535
|
return f;
|
|
@@ -4501,21 +4564,215 @@ var __esDecorate$43 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
4501
4564
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
4502
4565
|
done = true;
|
|
4503
4566
|
};
|
|
4504
|
-
var __runInitializers$
|
|
4567
|
+
var __runInitializers$47 = function(thisArg, initializers, value) {
|
|
4505
4568
|
var useValue = arguments.length > 2;
|
|
4506
4569
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
4507
4570
|
return useValue ? value : void 0;
|
|
4508
4571
|
};
|
|
4509
|
-
|
|
4510
|
-
|
|
4511
|
-
|
|
4512
|
-
|
|
4513
|
-
|
|
4514
|
-
|
|
4515
|
-
|
|
4516
|
-
|
|
4517
|
-
|
|
4518
|
-
|
|
4572
|
+
let IgnoreShieldGeneratedEffects = (() => {
|
|
4573
|
+
let _classDecorators = [effectGroup({ id: "ignore-shield.generated" })];
|
|
4574
|
+
let _classDescriptor;
|
|
4575
|
+
let _classExtraInitializers = [];
|
|
4576
|
+
let _classThis;
|
|
4577
|
+
var IgnoreShieldGeneratedEffects = class {
|
|
4578
|
+
static {
|
|
4579
|
+
_classThis = this;
|
|
4580
|
+
}
|
|
4581
|
+
static {
|
|
4582
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
4583
|
+
__esDecorate$47(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
4584
|
+
kind: "class",
|
|
4585
|
+
name: _classThis.name,
|
|
4586
|
+
metadata: _metadata
|
|
4587
|
+
}, null, _classExtraInitializers);
|
|
4588
|
+
IgnoreShieldGeneratedEffects = _classThis = _classDescriptor.value;
|
|
4589
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, {
|
|
4590
|
+
enumerable: true,
|
|
4591
|
+
configurable: true,
|
|
4592
|
+
writable: true,
|
|
4593
|
+
value: _metadata
|
|
4594
|
+
});
|
|
4595
|
+
__runInitializers$47(_classThis, _classExtraInitializers);
|
|
4596
|
+
}
|
|
4597
|
+
static build() {
|
|
4598
|
+
return defineEffects({ effect_skill_ignore_opponent_shield_if_has_shunliu: {
|
|
4599
|
+
triggers: [EffectTrigger.AfterUseSkillCheck],
|
|
4600
|
+
priority: 0,
|
|
4601
|
+
when: conditions.all(conditions.selfUsesSkill, targets.ownerMarks.where((mark) => mark.baseId === "mark_shunliu").condition(checks.exists())),
|
|
4602
|
+
apply: actions.sequence(contexts.skillUse.apply(ops.setIgnoreShield()))
|
|
4603
|
+
} });
|
|
4604
|
+
}
|
|
4605
|
+
};
|
|
4606
|
+
return _classThis;
|
|
4607
|
+
})();
|
|
4608
|
+
const generatedIgnoreShield = IgnoreShieldGeneratedEffects.build();
|
|
4609
|
+
// src/effects/inherited-moves.effect.ts
|
|
4610
|
+
var inherited_moves_effect_exports = /* @__PURE__ */ __exportAll({ InheritedMoveEffects: () => InheritedMoveEffects });
|
|
4611
|
+
var __esDecorate$46 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
4612
|
+
function accept(f) {
|
|
4613
|
+
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
4614
|
+
return f;
|
|
4615
|
+
}
|
|
4616
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
4617
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
4618
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
4619
|
+
var _, done = false;
|
|
4620
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
4621
|
+
var context = {};
|
|
4622
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
4623
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
4624
|
+
context.addInitializer = function(f) {
|
|
4625
|
+
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
|
4626
|
+
extraInitializers.push(accept(f || null));
|
|
4627
|
+
};
|
|
4628
|
+
var result = (0, decorators[i])(kind === "accessor" ? {
|
|
4629
|
+
get: descriptor.get,
|
|
4630
|
+
set: descriptor.set
|
|
4631
|
+
} : descriptor[key], context);
|
|
4632
|
+
if (kind === "accessor") {
|
|
4633
|
+
if (result === void 0) continue;
|
|
4634
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
4635
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
4636
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
4637
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
4638
|
+
} else if (_ = accept(result)) {
|
|
4639
|
+
if (kind === "field") initializers.unshift(_);
|
|
4640
|
+
else descriptor[key] = _;
|
|
4641
|
+
}
|
|
4642
|
+
}
|
|
4643
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
4644
|
+
done = true;
|
|
4645
|
+
};
|
|
4646
|
+
var __runInitializers$46 = function(thisArg, initializers, value) {
|
|
4647
|
+
var useValue = arguments.length > 2;
|
|
4648
|
+
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
4649
|
+
return useValue ? value : void 0;
|
|
4650
|
+
};
|
|
4651
|
+
let InheritedMoveEffects = (() => {
|
|
4652
|
+
let _classDecorators = [effectGroup({ id: "inherited-moves" })];
|
|
4653
|
+
let _classDescriptor;
|
|
4654
|
+
let _classExtraInitializers = [];
|
|
4655
|
+
let _classThis;
|
|
4656
|
+
var InheritedMoveEffects = class {
|
|
4657
|
+
static {
|
|
4658
|
+
_classThis = this;
|
|
4659
|
+
}
|
|
4660
|
+
static {
|
|
4661
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
4662
|
+
__esDecorate$46(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
4663
|
+
kind: "class",
|
|
4664
|
+
name: _classThis.name,
|
|
4665
|
+
metadata: _metadata
|
|
4666
|
+
}, null, _classExtraInitializers);
|
|
4667
|
+
InheritedMoveEffects = _classThis = _classDescriptor.value;
|
|
4668
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, {
|
|
4669
|
+
enumerable: true,
|
|
4670
|
+
configurable: true,
|
|
4671
|
+
writable: true,
|
|
4672
|
+
value: _metadata
|
|
4673
|
+
});
|
|
4674
|
+
__runInitializers$46(_classThis, _classExtraInitializers);
|
|
4675
|
+
}
|
|
4676
|
+
static build() {
|
|
4677
|
+
const whenTargetHas = (id) => conditions.all(conditions.selfUsesSkill, targets.opponentMarks.where((mark) => mark.baseId === id).condition(checks.exists()));
|
|
4678
|
+
const whenMovingFirst = conditions.all(conditions.selfUsesSkill, conditions.firstSkillThisTurn);
|
|
4679
|
+
return defineEffects({
|
|
4680
|
+
effect_skill_duzhenlianshe: {
|
|
4681
|
+
triggers: [EffectTrigger.BeforeMultiHit],
|
|
4682
|
+
priority: 0,
|
|
4683
|
+
when: whenTargetHas("mark_zhongdu"),
|
|
4684
|
+
apply: contexts.skillUse.apply(ops.addMultihitResult(2))
|
|
4685
|
+
},
|
|
4686
|
+
effect_skill_jinzhensheji: {
|
|
4687
|
+
triggers: [EffectTrigger.BeforeHit],
|
|
4688
|
+
priority: 0,
|
|
4689
|
+
when: whenTargetHas("mark_mabi"),
|
|
4690
|
+
apply: contexts.skillUse.apply(ops.addPower(50))
|
|
4691
|
+
},
|
|
4692
|
+
effect_skill_zhenchituji: {
|
|
4693
|
+
triggers: [EffectTrigger.BeforeHit],
|
|
4694
|
+
priority: 0,
|
|
4695
|
+
when: whenMovingFirst,
|
|
4696
|
+
apply: contexts.skillUse.apply(ops.addPower(50))
|
|
4697
|
+
},
|
|
4698
|
+
effect_skill_mizhenlianshe: {
|
|
4699
|
+
triggers: [EffectTrigger.AfterUseSkillCheck],
|
|
4700
|
+
priority: 0,
|
|
4701
|
+
when: whenMovingFirst,
|
|
4702
|
+
apply: contexts.skillUse.apply(ops.addCritRate(95))
|
|
4703
|
+
},
|
|
4704
|
+
effect_skill_guaiyichongji: {
|
|
4705
|
+
triggers: [EffectTrigger.OnHit],
|
|
4706
|
+
priority: 0,
|
|
4707
|
+
when: whenTargetHas("mark_shiquxiujue"),
|
|
4708
|
+
apply: targets.opponentActive.apply(ops.changeStatStage("def", -1))
|
|
4709
|
+
},
|
|
4710
|
+
effect_skill_kusechouda: {
|
|
4711
|
+
triggers: [EffectTrigger.OnHit],
|
|
4712
|
+
priority: 0,
|
|
4713
|
+
when: whenTargetHas("mark_shiquweijue"),
|
|
4714
|
+
apply: targets.opponentActive.apply(ops.changeStatStage("spd", -1))
|
|
4715
|
+
}
|
|
4716
|
+
});
|
|
4717
|
+
}
|
|
4718
|
+
};
|
|
4719
|
+
return _classThis;
|
|
4720
|
+
})();
|
|
4721
|
+
// src/effects/instant-literals.generated.effect.ts
|
|
4722
|
+
var instant_literals_generated_effect_exports = /* @__PURE__ */ __exportAll({
|
|
4723
|
+
InstantLiteralsGeneratedEffects: () => InstantLiteralsGeneratedEffects,
|
|
4724
|
+
generatedInstantLiteralEffects: () => generatedInstantLiteralEffects
|
|
4725
|
+
});
|
|
4726
|
+
var __esDecorate$45 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
4727
|
+
function accept(f) {
|
|
4728
|
+
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
4729
|
+
return f;
|
|
4730
|
+
}
|
|
4731
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
4732
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
4733
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
4734
|
+
var _, done = false;
|
|
4735
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
4736
|
+
var context = {};
|
|
4737
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
4738
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
4739
|
+
context.addInitializer = function(f) {
|
|
4740
|
+
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
|
4741
|
+
extraInitializers.push(accept(f || null));
|
|
4742
|
+
};
|
|
4743
|
+
var result = (0, decorators[i])(kind === "accessor" ? {
|
|
4744
|
+
get: descriptor.get,
|
|
4745
|
+
set: descriptor.set
|
|
4746
|
+
} : descriptor[key], context);
|
|
4747
|
+
if (kind === "accessor") {
|
|
4748
|
+
if (result === void 0) continue;
|
|
4749
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
4750
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
4751
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
4752
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
4753
|
+
} else if (_ = accept(result)) {
|
|
4754
|
+
if (kind === "field") initializers.unshift(_);
|
|
4755
|
+
else descriptor[key] = _;
|
|
4756
|
+
}
|
|
4757
|
+
}
|
|
4758
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
4759
|
+
done = true;
|
|
4760
|
+
};
|
|
4761
|
+
var __runInitializers$45 = function(thisArg, initializers, value) {
|
|
4762
|
+
var useValue = arguments.length > 2;
|
|
4763
|
+
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
4764
|
+
return useValue ? value : void 0;
|
|
4765
|
+
};
|
|
4766
|
+
const selfUsesSkill$1 = conditions.all((ctx) => ctx.parent instanceof UseSkillContext, conditions.selfUsesSkill);
|
|
4767
|
+
const generatedInstantLiteralEffects = defineEffects({
|
|
4768
|
+
effect_emblem_guangming_heal_20_per_turn: {
|
|
4769
|
+
triggers: [EffectTrigger.TurnEnd],
|
|
4770
|
+
priority: 0,
|
|
4771
|
+
when: conditions.ownerIsActive,
|
|
4772
|
+
apply: targets.ownerPet.apply(ops.heal(20))
|
|
4773
|
+
},
|
|
4774
|
+
effect_mark_add_rage_10_per_turn: {
|
|
4775
|
+
triggers: [EffectTrigger.TurnEnd],
|
|
4519
4776
|
priority: 0,
|
|
4520
4777
|
when: conditions.ownerIsActive,
|
|
4521
4778
|
apply: targets.ownerPet.apply(ops.addRage(10))
|
|
@@ -4616,7 +4873,7 @@ let InstantLiteralsGeneratedEffects = (() => {
|
|
|
4616
4873
|
}
|
|
4617
4874
|
static {
|
|
4618
4875
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
4619
|
-
__esDecorate$
|
|
4876
|
+
__esDecorate$45(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
4620
4877
|
kind: "class",
|
|
4621
4878
|
name: _classThis.name,
|
|
4622
4879
|
metadata: _metadata
|
|
@@ -4628,7 +4885,7 @@ let InstantLiteralsGeneratedEffects = (() => {
|
|
|
4628
4885
|
writable: true,
|
|
4629
4886
|
value: _metadata
|
|
4630
4887
|
});
|
|
4631
|
-
__runInitializers$
|
|
4888
|
+
__runInitializers$45(_classThis, _classExtraInitializers);
|
|
4632
4889
|
}
|
|
4633
4890
|
static build() {
|
|
4634
4891
|
return generatedInstantLiteralEffects;
|
|
@@ -4638,7 +4895,7 @@ let InstantLiteralsGeneratedEffects = (() => {
|
|
|
4638
4895
|
})();
|
|
4639
4896
|
// src/effects/kadundudu.effect.ts
|
|
4640
4897
|
var kadundudu_effect_exports = /* @__PURE__ */ __exportAll({ KadunduduEffects: () => KadunduduEffects });
|
|
4641
|
-
var __esDecorate$
|
|
4898
|
+
var __esDecorate$44 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
4642
4899
|
function accept(f) {
|
|
4643
4900
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
4644
4901
|
return f;
|
|
@@ -4673,7 +4930,7 @@ var __esDecorate$42 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
4673
4930
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
4674
4931
|
done = true;
|
|
4675
4932
|
};
|
|
4676
|
-
var __runInitializers$
|
|
4933
|
+
var __runInitializers$44 = function(thisArg, initializers, value) {
|
|
4677
4934
|
var useValue = arguments.length > 2;
|
|
4678
4935
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
4679
4936
|
return useValue ? value : void 0;
|
|
@@ -4707,7 +4964,7 @@ const damageNotFromHongxinLianjie = contexts.damage.condition((_ctx, events) =>
|
|
|
4707
4964
|
* project's Effect damage bypasses OnBeforeCalculateDamage and is not widened
|
|
4708
4965
|
* here without original evidence.
|
|
4709
4966
|
*/
|
|
4710
|
-
const damageIsPhysicalOrSpecial$1 = contexts.damage.condition((_ctx, events) => events.some((event) => event.damageType === DamageType.Physical || event.damageType === DamageType.Special));
|
|
4967
|
+
const damageIsPhysicalOrSpecial$1 = contexts.damage.condition((_ctx, events) => events.some((event) => event.damageType === DamageType$1.Physical || event.damageType === DamageType$1.Special));
|
|
4711
4968
|
let KadunduduEffects = (() => {
|
|
4712
4969
|
let _classDecorators = [effectGroup({ id: "kadundudu" })];
|
|
4713
4970
|
let _classDescriptor;
|
|
@@ -4719,7 +4976,7 @@ let KadunduduEffects = (() => {
|
|
|
4719
4976
|
}
|
|
4720
4977
|
static {
|
|
4721
4978
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
4722
|
-
__esDecorate$
|
|
4979
|
+
__esDecorate$44(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
4723
4980
|
kind: "class",
|
|
4724
4981
|
name: _classThis.name,
|
|
4725
4982
|
metadata: _metadata
|
|
@@ -4731,7 +4988,7 @@ let KadunduduEffects = (() => {
|
|
|
4731
4988
|
writable: true,
|
|
4732
4989
|
value: _metadata
|
|
4733
4990
|
});
|
|
4734
|
-
__runInitializers$
|
|
4991
|
+
__runInitializers$44(_classThis, _classExtraInitializers);
|
|
4735
4992
|
}
|
|
4736
4993
|
static build(context) {
|
|
4737
4994
|
const marks = context.marks;
|
|
@@ -4862,7 +5119,7 @@ let KadunduduEffects = (() => {
|
|
|
4862
5119
|
})();
|
|
4863
5120
|
// src/effects/last-stand.effect.ts
|
|
4864
5121
|
var last_stand_effect_exports = /* @__PURE__ */ __exportAll({ LastStandEffects: () => LastStandEffects });
|
|
4865
|
-
var __esDecorate$
|
|
5122
|
+
var __esDecorate$43 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
4866
5123
|
function accept(f) {
|
|
4867
5124
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
4868
5125
|
return f;
|
|
@@ -4897,7 +5154,7 @@ var __esDecorate$41 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
4897
5154
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
4898
5155
|
done = true;
|
|
4899
5156
|
};
|
|
4900
|
-
var __runInitializers$
|
|
5157
|
+
var __runInitializers$43 = function(thisArg, initializers, value) {
|
|
4901
5158
|
var useValue = arguments.length > 2;
|
|
4902
5159
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
4903
5160
|
return useValue ? value : void 0;
|
|
@@ -4914,7 +5171,7 @@ let LastStandEffects = (() => {
|
|
|
4914
5171
|
}
|
|
4915
5172
|
static {
|
|
4916
5173
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
4917
|
-
__esDecorate$
|
|
5174
|
+
__esDecorate$43(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
4918
5175
|
kind: "class",
|
|
4919
5176
|
name: _classThis.name,
|
|
4920
5177
|
metadata: _metadata
|
|
@@ -4926,7 +5183,7 @@ let LastStandEffects = (() => {
|
|
|
4926
5183
|
writable: true,
|
|
4927
5184
|
value: _metadata
|
|
4928
5185
|
});
|
|
4929
|
-
__runInitializers$
|
|
5186
|
+
__runInitializers$43(_classThis, _classExtraInitializers);
|
|
4930
5187
|
}
|
|
4931
5188
|
static build() {
|
|
4932
5189
|
const health = numberParam({ default: 1 });
|
|
@@ -4947,7 +5204,7 @@ var mark_application_settings_generated_effect_exports = /* @__PURE__ */ __expor
|
|
|
4947
5204
|
MarkApplicationSettingsGeneratedEffects: () => MarkApplicationSettingsGeneratedEffects,
|
|
4948
5205
|
generatedMarkApplicationSettings: () => generatedMarkApplicationSettings
|
|
4949
5206
|
});
|
|
4950
|
-
var __esDecorate$
|
|
5207
|
+
var __esDecorate$42 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
4951
5208
|
function accept(f) {
|
|
4952
5209
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
4953
5210
|
return f;
|
|
@@ -4982,7 +5239,7 @@ var __esDecorate$40 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
4982
5239
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
4983
5240
|
done = true;
|
|
4984
5241
|
};
|
|
4985
|
-
var __runInitializers$
|
|
5242
|
+
var __runInitializers$42 = function(thisArg, initializers, value) {
|
|
4986
5243
|
var useValue = arguments.length > 2;
|
|
4987
5244
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
4988
5245
|
return useValue ? value : void 0;
|
|
@@ -4998,7 +5255,7 @@ let MarkApplicationSettingsGeneratedEffects = (() => {
|
|
|
4998
5255
|
}
|
|
4999
5256
|
static {
|
|
5000
5257
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
5001
|
-
__esDecorate$
|
|
5258
|
+
__esDecorate$42(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
5002
5259
|
kind: "class",
|
|
5003
5260
|
name: _classThis.name,
|
|
5004
5261
|
metadata: _metadata
|
|
@@ -5010,7 +5267,7 @@ let MarkApplicationSettingsGeneratedEffects = (() => {
|
|
|
5010
5267
|
writable: true,
|
|
5011
5268
|
value: _metadata
|
|
5012
5269
|
});
|
|
5013
|
-
__runInitializers$
|
|
5270
|
+
__runInitializers$42(_classThis, _classExtraInitializers);
|
|
5014
5271
|
}
|
|
5015
5272
|
static build() {
|
|
5016
5273
|
return defineEffects({
|
|
@@ -5128,7 +5385,7 @@ var mark_applications_generated_effect_exports = /* @__PURE__ */ __exportAll({
|
|
|
5128
5385
|
MarkApplicationsGeneratedEffects: () => MarkApplicationsGeneratedEffects,
|
|
5129
5386
|
generatedMarkApplicationDependencies: () => generatedMarkApplicationDependencies
|
|
5130
5387
|
});
|
|
5131
|
-
var __esDecorate$
|
|
5388
|
+
var __esDecorate$41 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
5132
5389
|
function accept(f) {
|
|
5133
5390
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
5134
5391
|
return f;
|
|
@@ -5163,7 +5420,7 @@ var __esDecorate$39 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
5163
5420
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
5164
5421
|
done = true;
|
|
5165
5422
|
};
|
|
5166
|
-
var __runInitializers$
|
|
5423
|
+
var __runInitializers$41 = function(thisArg, initializers, value) {
|
|
5167
5424
|
var useValue = arguments.length > 2;
|
|
5168
5425
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
5169
5426
|
return useValue ? value : void 0;
|
|
@@ -5369,7 +5626,7 @@ let MarkApplicationsGeneratedEffects = (() => {
|
|
|
5369
5626
|
}
|
|
5370
5627
|
static {
|
|
5371
5628
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
5372
|
-
__esDecorate$
|
|
5629
|
+
__esDecorate$41(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
5373
5630
|
kind: "class",
|
|
5374
5631
|
name: _classThis.name,
|
|
5375
5632
|
metadata: _metadata
|
|
@@ -5381,7 +5638,7 @@ let MarkApplicationsGeneratedEffects = (() => {
|
|
|
5381
5638
|
writable: true,
|
|
5382
5639
|
value: _metadata
|
|
5383
5640
|
});
|
|
5384
|
-
__runInitializers$
|
|
5641
|
+
__runInitializers$41(_classThis, _classExtraInitializers);
|
|
5385
5642
|
}
|
|
5386
5643
|
static build(context) {
|
|
5387
5644
|
const marks = context.marks;
|
|
@@ -7509,7 +7766,7 @@ var mark_consumption_generated_effect_exports = /* @__PURE__ */ __exportAll({
|
|
|
7509
7766
|
MarkConsumptionGeneratedEffects: () => MarkConsumptionGeneratedEffects,
|
|
7510
7767
|
generatedMarkConsumption: () => generatedMarkConsumption
|
|
7511
7768
|
});
|
|
7512
|
-
var __esDecorate$
|
|
7769
|
+
var __esDecorate$40 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
7513
7770
|
function accept(f) {
|
|
7514
7771
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
7515
7772
|
return f;
|
|
@@ -7544,7 +7801,7 @@ var __esDecorate$38 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
7544
7801
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
7545
7802
|
done = true;
|
|
7546
7803
|
};
|
|
7547
|
-
var __runInitializers$
|
|
7804
|
+
var __runInitializers$40 = function(thisArg, initializers, value) {
|
|
7548
7805
|
var useValue = arguments.length > 2;
|
|
7549
7806
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
7550
7807
|
return useValue ? value : void 0;
|
|
@@ -7560,7 +7817,7 @@ let MarkConsumptionGeneratedEffects = (() => {
|
|
|
7560
7817
|
}
|
|
7561
7818
|
static {
|
|
7562
7819
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
7563
|
-
__esDecorate$
|
|
7820
|
+
__esDecorate$40(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
7564
7821
|
kind: "class",
|
|
7565
7822
|
name: _classThis.name,
|
|
7566
7823
|
metadata: _metadata
|
|
@@ -7572,7 +7829,7 @@ let MarkConsumptionGeneratedEffects = (() => {
|
|
|
7572
7829
|
writable: true,
|
|
7573
7830
|
value: _metadata
|
|
7574
7831
|
});
|
|
7575
|
-
__runInitializers$
|
|
7832
|
+
__runInitializers$40(_classThis, _classExtraInitializers);
|
|
7576
7833
|
}
|
|
7577
7834
|
static build() {
|
|
7578
7835
|
return defineEffects({
|
|
@@ -7629,7 +7886,7 @@ var mark_removals_generated_effect_exports = /* @__PURE__ */ __exportAll({
|
|
|
7629
7886
|
MarkRemovalsGeneratedEffects: () => MarkRemovalsGeneratedEffects,
|
|
7630
7887
|
generatedMarkRemovals: () => generatedMarkRemovals
|
|
7631
7888
|
});
|
|
7632
|
-
var __esDecorate$
|
|
7889
|
+
var __esDecorate$39 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
7633
7890
|
function accept(f) {
|
|
7634
7891
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
7635
7892
|
return f;
|
|
@@ -7664,7 +7921,7 @@ var __esDecorate$37 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
7664
7921
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
7665
7922
|
done = true;
|
|
7666
7923
|
};
|
|
7667
|
-
var __runInitializers$
|
|
7924
|
+
var __runInitializers$39 = function(thisArg, initializers, value) {
|
|
7668
7925
|
var useValue = arguments.length > 2;
|
|
7669
7926
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
7670
7927
|
return useValue ? value : void 0;
|
|
@@ -7680,7 +7937,7 @@ let MarkRemovalsGeneratedEffects = (() => {
|
|
|
7680
7937
|
}
|
|
7681
7938
|
static {
|
|
7682
7939
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
7683
|
-
__esDecorate$
|
|
7940
|
+
__esDecorate$39(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
7684
7941
|
kind: "class",
|
|
7685
7942
|
name: _classThis.name,
|
|
7686
7943
|
metadata: _metadata
|
|
@@ -7692,7 +7949,7 @@ let MarkRemovalsGeneratedEffects = (() => {
|
|
|
7692
7949
|
writable: true,
|
|
7693
7950
|
value: _metadata
|
|
7694
7951
|
});
|
|
7695
|
-
__runInitializers$
|
|
7952
|
+
__runInitializers$39(_classThis, _classExtraInitializers);
|
|
7696
7953
|
}
|
|
7697
7954
|
static build() {
|
|
7698
7955
|
return defineEffects({
|
|
@@ -7788,7 +8045,7 @@ var mark_stack_gains_generated_effect_exports = /* @__PURE__ */ __exportAll({
|
|
|
7788
8045
|
MarkStackGainsGeneratedEffects: () => MarkStackGainsGeneratedEffects,
|
|
7789
8046
|
generatedMarkStackGains: () => generatedMarkStackGains
|
|
7790
8047
|
});
|
|
7791
|
-
var __esDecorate$
|
|
8048
|
+
var __esDecorate$38 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
7792
8049
|
function accept(f) {
|
|
7793
8050
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
7794
8051
|
return f;
|
|
@@ -7823,7 +8080,7 @@ var __esDecorate$36 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
7823
8080
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
7824
8081
|
done = true;
|
|
7825
8082
|
};
|
|
7826
|
-
var __runInitializers$
|
|
8083
|
+
var __runInitializers$38 = function(thisArg, initializers, value) {
|
|
7827
8084
|
var useValue = arguments.length > 2;
|
|
7828
8085
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
7829
8086
|
return useValue ? value : void 0;
|
|
@@ -7839,7 +8096,7 @@ let MarkStackGainsGeneratedEffects = (() => {
|
|
|
7839
8096
|
}
|
|
7840
8097
|
static {
|
|
7841
8098
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
7842
|
-
__esDecorate$
|
|
8099
|
+
__esDecorate$38(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
7843
8100
|
kind: "class",
|
|
7844
8101
|
name: _classThis.name,
|
|
7845
8102
|
metadata: _metadata
|
|
@@ -7851,7 +8108,7 @@ let MarkStackGainsGeneratedEffects = (() => {
|
|
|
7851
8108
|
writable: true,
|
|
7852
8109
|
value: _metadata
|
|
7853
8110
|
});
|
|
7854
|
-
__runInitializers$
|
|
8111
|
+
__runInitializers$38(_classThis, _classExtraInitializers);
|
|
7855
8112
|
}
|
|
7856
8113
|
static build() {
|
|
7857
8114
|
return defineEffects({
|
|
@@ -7878,7 +8135,7 @@ let MarkStackGainsGeneratedEffects = (() => {
|
|
|
7878
8135
|
const generatedMarkStackGains = MarkStackGainsGeneratedEffects.build();
|
|
7879
8136
|
// src/effects/mark-transfers.effect.ts
|
|
7880
8137
|
var mark_transfers_effect_exports = /* @__PURE__ */ __exportAll({ MarkTransfersEffects: () => MarkTransfersEffects });
|
|
7881
|
-
var __esDecorate$
|
|
8138
|
+
var __esDecorate$37 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
7882
8139
|
function accept(f) {
|
|
7883
8140
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
7884
8141
|
return f;
|
|
@@ -7913,7 +8170,7 @@ var __esDecorate$35 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
7913
8170
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
7914
8171
|
done = true;
|
|
7915
8172
|
};
|
|
7916
|
-
var __runInitializers$
|
|
8173
|
+
var __runInitializers$37 = function(thisArg, initializers, value) {
|
|
7917
8174
|
var useValue = arguments.length > 2;
|
|
7918
8175
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
7919
8176
|
return useValue ? value : void 0;
|
|
@@ -7930,7 +8187,7 @@ let MarkTransfersEffects = (() => {
|
|
|
7930
8187
|
}
|
|
7931
8188
|
static {
|
|
7932
8189
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
7933
|
-
__esDecorate$
|
|
8190
|
+
__esDecorate$37(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
7934
8191
|
kind: "class",
|
|
7935
8192
|
name: _classThis.name,
|
|
7936
8193
|
metadata: _metadata
|
|
@@ -7942,7 +8199,7 @@ let MarkTransfersEffects = (() => {
|
|
|
7942
8199
|
writable: true,
|
|
7943
8200
|
value: _metadata
|
|
7944
8201
|
});
|
|
7945
|
-
__runInitializers$
|
|
8202
|
+
__runInitializers$37(_classThis, _classExtraInitializers);
|
|
7946
8203
|
}
|
|
7947
8204
|
static build() {
|
|
7948
8205
|
return defineEffects({
|
|
@@ -7964,12 +8221,244 @@ let MarkTransfersEffects = (() => {
|
|
|
7964
8221
|
};
|
|
7965
8222
|
return _classThis;
|
|
7966
8223
|
})();
|
|
8224
|
+
// src/effects/max-hp-excess.effect.ts
|
|
8225
|
+
var max_hp_excess_effect_exports = /* @__PURE__ */ __exportAll({
|
|
8226
|
+
DamageFromMaxHPExcess: () => DamageFromMaxHPExcess,
|
|
8227
|
+
MarkFromMaxHPExcess: () => MarkFromMaxHPExcess,
|
|
8228
|
+
PowerFromMaxHPExcess: () => PowerFromMaxHPExcess
|
|
8229
|
+
});
|
|
8230
|
+
var __esDecorate$36 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
8231
|
+
function accept(f) {
|
|
8232
|
+
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
8233
|
+
return f;
|
|
8234
|
+
}
|
|
8235
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
8236
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
8237
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
8238
|
+
var _, done = false;
|
|
8239
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
8240
|
+
var context = {};
|
|
8241
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
8242
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
8243
|
+
context.addInitializer = function(f) {
|
|
8244
|
+
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
|
8245
|
+
extraInitializers.push(accept(f || null));
|
|
8246
|
+
};
|
|
8247
|
+
var result = (0, decorators[i])(kind === "accessor" ? {
|
|
8248
|
+
get: descriptor.get,
|
|
8249
|
+
set: descriptor.set
|
|
8250
|
+
} : descriptor[key], context);
|
|
8251
|
+
if (kind === "accessor") {
|
|
8252
|
+
if (result === void 0) continue;
|
|
8253
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
8254
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
8255
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
8256
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
8257
|
+
} else if (_ = accept(result)) {
|
|
8258
|
+
if (kind === "field") initializers.unshift(_);
|
|
8259
|
+
else descriptor[key] = _;
|
|
8260
|
+
}
|
|
8261
|
+
}
|
|
8262
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
8263
|
+
done = true;
|
|
8264
|
+
};
|
|
8265
|
+
var __runInitializers$36 = function(thisArg, initializers, value) {
|
|
8266
|
+
var useValue = arguments.length > 2;
|
|
8267
|
+
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
8268
|
+
return useValue ? value : void 0;
|
|
8269
|
+
};
|
|
8270
|
+
const baselineParameter = {
|
|
8271
|
+
kind: "number",
|
|
8272
|
+
default: 500,
|
|
8273
|
+
minimum: 0,
|
|
8274
|
+
integer: true
|
|
8275
|
+
};
|
|
8276
|
+
function hpExcess(sdk, value) {
|
|
8277
|
+
const baseline = sdk.numberParam({ default: value });
|
|
8278
|
+
const hp = sdk.targets.ownerPet.first().attribute("maxHp");
|
|
8279
|
+
const excess = sdk.values.combine(hp, baseline, (maximum, threshold) => maximum - threshold);
|
|
8280
|
+
return {
|
|
8281
|
+
baseline,
|
|
8282
|
+
excess,
|
|
8283
|
+
when: sdk.conditions.all(sdk.conditions.selfUsesSkill, (frame) => (frame.read(excess) ?? 0) > 0)
|
|
8284
|
+
};
|
|
8285
|
+
}
|
|
8286
|
+
let PowerFromMaxHPExcess = (() => {
|
|
8287
|
+
let _classDecorators = [effect$1({
|
|
8288
|
+
id: "power-from-max-hp-excess",
|
|
8289
|
+
sourceKind: "skill"
|
|
8290
|
+
})];
|
|
8291
|
+
let _classDescriptor;
|
|
8292
|
+
let _classExtraInitializers = [];
|
|
8293
|
+
let _classThis;
|
|
8294
|
+
var PowerFromMaxHPExcess = class {
|
|
8295
|
+
static {
|
|
8296
|
+
_classThis = this;
|
|
8297
|
+
}
|
|
8298
|
+
static {
|
|
8299
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
8300
|
+
__esDecorate$36(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
8301
|
+
kind: "class",
|
|
8302
|
+
name: _classThis.name,
|
|
8303
|
+
metadata: _metadata
|
|
8304
|
+
}, null, _classExtraInitializers);
|
|
8305
|
+
PowerFromMaxHPExcess = _classThis = _classDescriptor.value;
|
|
8306
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, {
|
|
8307
|
+
enumerable: true,
|
|
8308
|
+
configurable: true,
|
|
8309
|
+
writable: true,
|
|
8310
|
+
value: _metadata
|
|
8311
|
+
});
|
|
8312
|
+
__runInitializers$36(_classThis, _classExtraInitializers);
|
|
8313
|
+
}
|
|
8314
|
+
static create({ id, sdk }) {
|
|
8315
|
+
return sdk.defineNativeBehavior({
|
|
8316
|
+
id: id("power-from-max-hp-excess"),
|
|
8317
|
+
sourceKind: "skill",
|
|
8318
|
+
parameters: { baseline: baselineParameter },
|
|
8319
|
+
build({ effectId, params }) {
|
|
8320
|
+
const { baseline, excess, when } = hpExcess(sdk, params.baseline);
|
|
8321
|
+
return sdk.defineEffect({
|
|
8322
|
+
id: effectId,
|
|
8323
|
+
triggers: [sdk.EffectTrigger.BeforeHit],
|
|
8324
|
+
priority: 0,
|
|
8325
|
+
parameters: { baseline },
|
|
8326
|
+
when,
|
|
8327
|
+
apply: sdk.contexts.skillUse.apply(sdk.ops.addPower(excess))
|
|
8328
|
+
});
|
|
8329
|
+
}
|
|
8330
|
+
});
|
|
8331
|
+
}
|
|
8332
|
+
};
|
|
8333
|
+
return _classThis;
|
|
8334
|
+
})();
|
|
8335
|
+
let DamageFromMaxHPExcess = (() => {
|
|
8336
|
+
let _classDecorators = [effect$1({
|
|
8337
|
+
id: "damage-from-max-hp-excess",
|
|
8338
|
+
sourceKind: "skill"
|
|
8339
|
+
})];
|
|
8340
|
+
let _classDescriptor;
|
|
8341
|
+
let _classExtraInitializers = [];
|
|
8342
|
+
let _classThis;
|
|
8343
|
+
var DamageFromMaxHPExcess = class {
|
|
8344
|
+
static {
|
|
8345
|
+
_classThis = this;
|
|
8346
|
+
}
|
|
8347
|
+
static {
|
|
8348
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
8349
|
+
__esDecorate$36(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
8350
|
+
kind: "class",
|
|
8351
|
+
name: _classThis.name,
|
|
8352
|
+
metadata: _metadata
|
|
8353
|
+
}, null, _classExtraInitializers);
|
|
8354
|
+
DamageFromMaxHPExcess = _classThis = _classDescriptor.value;
|
|
8355
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, {
|
|
8356
|
+
enumerable: true,
|
|
8357
|
+
configurable: true,
|
|
8358
|
+
writable: true,
|
|
8359
|
+
value: _metadata
|
|
8360
|
+
});
|
|
8361
|
+
__runInitializers$36(_classThis, _classExtraInitializers);
|
|
8362
|
+
}
|
|
8363
|
+
static create({ id, sdk }) {
|
|
8364
|
+
return sdk.defineNativeBehavior({
|
|
8365
|
+
id: id("damage-from-max-hp-excess"),
|
|
8366
|
+
sourceKind: "skill",
|
|
8367
|
+
parameters: { baseline: baselineParameter },
|
|
8368
|
+
build({ effectId, params }) {
|
|
8369
|
+
const { baseline, excess, when } = hpExcess(sdk, params.baseline);
|
|
8370
|
+
return sdk.defineEffect({
|
|
8371
|
+
id: effectId,
|
|
8372
|
+
triggers: [sdk.EffectTrigger.OnBeforeCalculateDamage],
|
|
8373
|
+
priority: 0,
|
|
8374
|
+
parameters: { baseline },
|
|
8375
|
+
when,
|
|
8376
|
+
apply: sdk.contexts.damage.apply(sdk.ops.modifyDamage({
|
|
8377
|
+
percent: 0,
|
|
8378
|
+
delta: excess
|
|
8379
|
+
}))
|
|
8380
|
+
});
|
|
8381
|
+
}
|
|
8382
|
+
});
|
|
8383
|
+
}
|
|
8384
|
+
};
|
|
8385
|
+
return _classThis;
|
|
8386
|
+
})();
|
|
8387
|
+
let MarkFromMaxHPExcess = (() => {
|
|
8388
|
+
let _classDecorators = [effect$1({
|
|
8389
|
+
id: "mark-from-max-hp-excess",
|
|
8390
|
+
sourceKind: "skill"
|
|
8391
|
+
})];
|
|
8392
|
+
let _classDescriptor;
|
|
8393
|
+
let _classExtraInitializers = [];
|
|
8394
|
+
let _classThis;
|
|
8395
|
+
var MarkFromMaxHPExcess = class {
|
|
8396
|
+
static {
|
|
8397
|
+
_classThis = this;
|
|
8398
|
+
}
|
|
8399
|
+
static {
|
|
8400
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
8401
|
+
__esDecorate$36(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
8402
|
+
kind: "class",
|
|
8403
|
+
name: _classThis.name,
|
|
8404
|
+
metadata: _metadata
|
|
8405
|
+
}, null, _classExtraInitializers);
|
|
8406
|
+
MarkFromMaxHPExcess = _classThis = _classDescriptor.value;
|
|
8407
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, {
|
|
8408
|
+
enumerable: true,
|
|
8409
|
+
configurable: true,
|
|
8410
|
+
writable: true,
|
|
8411
|
+
value: _metadata
|
|
8412
|
+
});
|
|
8413
|
+
__runInitializers$36(_classThis, _classExtraInitializers);
|
|
8414
|
+
}
|
|
8415
|
+
static create({ id, sdk, marks }) {
|
|
8416
|
+
return sdk.defineNativeBehavior({
|
|
8417
|
+
id: id("mark-from-max-hp-excess"),
|
|
8418
|
+
sourceKind: "skill",
|
|
8419
|
+
parameters: {
|
|
8420
|
+
baseline: baselineParameter,
|
|
8421
|
+
mark: {
|
|
8422
|
+
kind: "string",
|
|
8423
|
+
reference: "mark",
|
|
8424
|
+
default: "mark_fansheguike"
|
|
8425
|
+
},
|
|
8426
|
+
scale: {
|
|
8427
|
+
kind: "number",
|
|
8428
|
+
minimum: 0,
|
|
8429
|
+
default: 1,
|
|
8430
|
+
static: true
|
|
8431
|
+
}
|
|
8432
|
+
},
|
|
8433
|
+
build({ effectId, params }) {
|
|
8434
|
+
const { baseline, excess, when } = hpExcess(sdk, params.baseline);
|
|
8435
|
+
const mark = marks.get(params.mark);
|
|
8436
|
+
if (!mark) throw new Error("Missing HP-excess mark: " + params.mark);
|
|
8437
|
+
const scale = params.scale;
|
|
8438
|
+
return sdk.defineEffect({
|
|
8439
|
+
id: effectId,
|
|
8440
|
+
triggers: [sdk.EffectTrigger.OnHit],
|
|
8441
|
+
priority: 0,
|
|
8442
|
+
parameters: {
|
|
8443
|
+
baseline,
|
|
8444
|
+
mark: sdk.stringParam({ default: params.mark }),
|
|
8445
|
+
scale: sdk.numberParam({ default: scale })
|
|
8446
|
+
},
|
|
8447
|
+
when,
|
|
8448
|
+
apply: sdk.targets.ownerPet.apply(sdk.ops.addMark(mark, { stack: excess.map((n) => Math.floor(n * scale)) }))
|
|
8449
|
+
});
|
|
8450
|
+
}
|
|
8451
|
+
});
|
|
8452
|
+
}
|
|
8453
|
+
};
|
|
8454
|
+
return _classThis;
|
|
8455
|
+
})();
|
|
7967
8456
|
// src/effects/multihit.generated.effect.ts
|
|
7968
8457
|
var multihit_generated_effect_exports = /* @__PURE__ */ __exportAll({
|
|
7969
8458
|
MultihitGeneratedEffects: () => MultihitGeneratedEffects,
|
|
7970
8459
|
generatedMultihit: () => generatedMultihit
|
|
7971
8460
|
});
|
|
7972
|
-
var __esDecorate$
|
|
8461
|
+
var __esDecorate$35 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
7973
8462
|
function accept(f) {
|
|
7974
8463
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
7975
8464
|
return f;
|
|
@@ -8004,7 +8493,7 @@ var __esDecorate$34 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
8004
8493
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
8005
8494
|
done = true;
|
|
8006
8495
|
};
|
|
8007
|
-
var __runInitializers$
|
|
8496
|
+
var __runInitializers$35 = function(thisArg, initializers, value) {
|
|
8008
8497
|
var useValue = arguments.length > 2;
|
|
8009
8498
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
8010
8499
|
return useValue ? value : void 0;
|
|
@@ -8020,7 +8509,7 @@ let MultihitGeneratedEffects = (() => {
|
|
|
8020
8509
|
}
|
|
8021
8510
|
static {
|
|
8022
8511
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
8023
|
-
__esDecorate$
|
|
8512
|
+
__esDecorate$35(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
8024
8513
|
kind: "class",
|
|
8025
8514
|
name: _classThis.name,
|
|
8026
8515
|
metadata: _metadata
|
|
@@ -8032,7 +8521,7 @@ let MultihitGeneratedEffects = (() => {
|
|
|
8032
8521
|
writable: true,
|
|
8033
8522
|
value: _metadata
|
|
8034
8523
|
});
|
|
8035
|
-
__runInitializers$
|
|
8524
|
+
__runInitializers$35(_classThis, _classExtraInitializers);
|
|
8036
8525
|
}
|
|
8037
8526
|
static build() {
|
|
8038
8527
|
return defineEffects({
|
|
@@ -8196,7 +8685,7 @@ var named_parameters_effect_exports = /* @__PURE__ */ __exportAll({
|
|
|
8196
8685
|
NamedParametersEffects: () => NamedParametersEffects,
|
|
8197
8686
|
namedParameterModifierDependencies: () => namedParameterModifierDependencies
|
|
8198
8687
|
});
|
|
8199
|
-
var __esDecorate$
|
|
8688
|
+
var __esDecorate$34 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
8200
8689
|
function accept(f) {
|
|
8201
8690
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
8202
8691
|
return f;
|
|
@@ -8231,7 +8720,7 @@ var __esDecorate$33 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
8231
8720
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
8232
8721
|
done = true;
|
|
8233
8722
|
};
|
|
8234
|
-
var __runInitializers$
|
|
8723
|
+
var __runInitializers$34 = function(thisArg, initializers, value) {
|
|
8235
8724
|
var useValue = arguments.length > 2;
|
|
8236
8725
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
8237
8726
|
return useValue ? value : void 0;
|
|
@@ -8315,7 +8804,7 @@ let NamedParametersEffects = (() => {
|
|
|
8315
8804
|
}
|
|
8316
8805
|
static {
|
|
8317
8806
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
8318
|
-
__esDecorate$
|
|
8807
|
+
__esDecorate$34(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
8319
8808
|
kind: "class",
|
|
8320
8809
|
name: _classThis.name,
|
|
8321
8810
|
metadata: _metadata
|
|
@@ -8327,7 +8816,7 @@ let NamedParametersEffects = (() => {
|
|
|
8327
8816
|
writable: true,
|
|
8328
8817
|
value: _metadata
|
|
8329
8818
|
});
|
|
8330
|
-
__runInitializers$
|
|
8819
|
+
__runInitializers$34(_classThis, _classExtraInitializers);
|
|
8331
8820
|
}
|
|
8332
8821
|
static build(context) {
|
|
8333
8822
|
const catalogs = context.parameters;
|
|
@@ -8348,7 +8837,7 @@ let NamedParametersEffects = (() => {
|
|
|
8348
8837
|
})();
|
|
8349
8838
|
// src/effects/palading.effect.ts
|
|
8350
8839
|
var palading_effect_exports = /* @__PURE__ */ __exportAll({ PaladingEffects: () => PaladingEffects });
|
|
8351
|
-
var __esDecorate$
|
|
8840
|
+
var __esDecorate$33 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
8352
8841
|
function accept(f) {
|
|
8353
8842
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
8354
8843
|
return f;
|
|
@@ -8383,7 +8872,7 @@ var __esDecorate$32 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
8383
8872
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
8384
8873
|
done = true;
|
|
8385
8874
|
};
|
|
8386
|
-
var __runInitializers$
|
|
8875
|
+
var __runInitializers$33 = function(thisArg, initializers, value) {
|
|
8387
8876
|
var useValue = arguments.length > 2;
|
|
8388
8877
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
8389
8878
|
return useValue ? value : void 0;
|
|
@@ -8421,9 +8910,9 @@ const allAlliesFainted = targets.ownerPet.condition((_ctx, pets) => pets.some((p
|
|
|
8421
8910
|
* physical reduction of 庇护之火 to physical and special damage.
|
|
8422
8911
|
*/
|
|
8423
8912
|
const emblemBiHuEquipped = hasOwnerMark("mark_emblem_bihu");
|
|
8424
|
-
const damageIsPhysical = contexts.damage.condition((_ctx, events) => events.some((event) => event.damageType === DamageType.Physical));
|
|
8425
|
-
const damageIsSpecial = contexts.damage.condition((_ctx, events) => events.some((event) => event.damageType === DamageType.Special));
|
|
8426
|
-
const damageIsPhysicalOrSpecial = contexts.damage.condition((_ctx, events) => events.some((event) => event.damageType === DamageType.Physical || event.damageType === DamageType.Special));
|
|
8913
|
+
const damageIsPhysical = contexts.damage.condition((_ctx, events) => events.some((event) => event.damageType === DamageType$1.Physical));
|
|
8914
|
+
const damageIsSpecial = contexts.damage.condition((_ctx, events) => events.some((event) => event.damageType === DamageType$1.Special));
|
|
8915
|
+
const damageIsPhysicalOrSpecial = contexts.damage.condition((_ctx, events) => events.some((event) => event.damageType === DamageType$1.Physical || event.damageType === DamageType$1.Special));
|
|
8427
8916
|
let PaladingEffects = (() => {
|
|
8428
8917
|
let _classDecorators = [effectGroup({ id: "palading" })];
|
|
8429
8918
|
let _classDescriptor;
|
|
@@ -8435,7 +8924,7 @@ let PaladingEffects = (() => {
|
|
|
8435
8924
|
}
|
|
8436
8925
|
static {
|
|
8437
8926
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
8438
|
-
__esDecorate$
|
|
8927
|
+
__esDecorate$33(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
8439
8928
|
kind: "class",
|
|
8440
8929
|
name: _classThis.name,
|
|
8441
8930
|
metadata: _metadata
|
|
@@ -8447,7 +8936,7 @@ let PaladingEffects = (() => {
|
|
|
8447
8936
|
writable: true,
|
|
8448
8937
|
value: _metadata
|
|
8449
8938
|
});
|
|
8450
|
-
__runInitializers$
|
|
8939
|
+
__runInitializers$33(_classThis, _classExtraInitializers);
|
|
8451
8940
|
}
|
|
8452
8941
|
static build(context) {
|
|
8453
8942
|
const marks = context.marks;
|
|
@@ -8661,7 +9150,7 @@ var rage_assignment_generated_effect_exports = /* @__PURE__ */ __exportAll({
|
|
|
8661
9150
|
RageAssignmentGeneratedEffects: () => RageAssignmentGeneratedEffects,
|
|
8662
9151
|
generatedRageAssignment: () => generatedRageAssignment
|
|
8663
9152
|
});
|
|
8664
|
-
var __esDecorate$
|
|
9153
|
+
var __esDecorate$32 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
8665
9154
|
function accept(f) {
|
|
8666
9155
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
8667
9156
|
return f;
|
|
@@ -8696,7 +9185,7 @@ var __esDecorate$31 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
8696
9185
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
8697
9186
|
done = true;
|
|
8698
9187
|
};
|
|
8699
|
-
var __runInitializers$
|
|
9188
|
+
var __runInitializers$32 = function(thisArg, initializers, value) {
|
|
8700
9189
|
var useValue = arguments.length > 2;
|
|
8701
9190
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
8702
9191
|
return useValue ? value : void 0;
|
|
@@ -8712,7 +9201,7 @@ let RageAssignmentGeneratedEffects = (() => {
|
|
|
8712
9201
|
}
|
|
8713
9202
|
static {
|
|
8714
9203
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
8715
|
-
__esDecorate$
|
|
9204
|
+
__esDecorate$32(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
8716
9205
|
kind: "class",
|
|
8717
9206
|
name: _classThis.name,
|
|
8718
9207
|
metadata: _metadata
|
|
@@ -8724,7 +9213,7 @@ let RageAssignmentGeneratedEffects = (() => {
|
|
|
8724
9213
|
writable: true,
|
|
8725
9214
|
value: _metadata
|
|
8726
9215
|
});
|
|
8727
|
-
__runInitializers$
|
|
9216
|
+
__runInitializers$32(_classThis, _classExtraInitializers);
|
|
8728
9217
|
}
|
|
8729
9218
|
static build() {
|
|
8730
9219
|
return defineEffects({
|
|
@@ -8767,7 +9256,7 @@ let RageAssignmentGeneratedEffects = (() => {
|
|
|
8767
9256
|
const generatedRageAssignment = RageAssignmentGeneratedEffects.build();
|
|
8768
9257
|
// src/effects/rage-gain-limit.effect.ts
|
|
8769
9258
|
var rage_gain_limit_effect_exports = /* @__PURE__ */ __exportAll({ RageGainLimitEffects: () => RageGainLimitEffects });
|
|
8770
|
-
var __esDecorate$
|
|
9259
|
+
var __esDecorate$31 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
8771
9260
|
function accept(f) {
|
|
8772
9261
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
8773
9262
|
return f;
|
|
@@ -8802,7 +9291,7 @@ var __esDecorate$30 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
8802
9291
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
8803
9292
|
done = true;
|
|
8804
9293
|
};
|
|
8805
|
-
var __runInitializers$
|
|
9294
|
+
var __runInitializers$31 = function(thisArg, initializers, value) {
|
|
8806
9295
|
var useValue = arguments.length > 2;
|
|
8807
9296
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
8808
9297
|
return useValue ? value : void 0;
|
|
@@ -8818,7 +9307,7 @@ let RageGainLimitEffects = (() => {
|
|
|
8818
9307
|
}
|
|
8819
9308
|
static {
|
|
8820
9309
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
8821
|
-
__esDecorate$
|
|
9310
|
+
__esDecorate$31(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
8822
9311
|
kind: "class",
|
|
8823
9312
|
name: _classThis.name,
|
|
8824
9313
|
metadata: _metadata
|
|
@@ -8830,7 +9319,7 @@ let RageGainLimitEffects = (() => {
|
|
|
8830
9319
|
writable: true,
|
|
8831
9320
|
value: _metadata
|
|
8832
9321
|
});
|
|
8833
|
-
__runInitializers$
|
|
9322
|
+
__runInitializers$31(_classThis, _classExtraInitializers);
|
|
8834
9323
|
}
|
|
8835
9324
|
static build() {
|
|
8836
9325
|
return compileEffect({
|
|
@@ -8849,7 +9338,7 @@ var rage_modifiers_generated_effect_exports = /* @__PURE__ */ __exportAll({
|
|
|
8849
9338
|
RageModifiersGeneratedEffects: () => RageModifiersGeneratedEffects,
|
|
8850
9339
|
generatedRageModifiers: () => generatedRageModifiers
|
|
8851
9340
|
});
|
|
8852
|
-
var __esDecorate$
|
|
9341
|
+
var __esDecorate$30 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
8853
9342
|
function accept(f) {
|
|
8854
9343
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
8855
9344
|
return f;
|
|
@@ -8884,7 +9373,7 @@ var __esDecorate$29 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
8884
9373
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
8885
9374
|
done = true;
|
|
8886
9375
|
};
|
|
8887
|
-
var __runInitializers$
|
|
9376
|
+
var __runInitializers$30 = function(thisArg, initializers, value) {
|
|
8888
9377
|
var useValue = arguments.length > 2;
|
|
8889
9378
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
8890
9379
|
return useValue ? value : void 0;
|
|
@@ -8900,7 +9389,7 @@ let RageModifiersGeneratedEffects = (() => {
|
|
|
8900
9389
|
}
|
|
8901
9390
|
static {
|
|
8902
9391
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
8903
|
-
__esDecorate$
|
|
9392
|
+
__esDecorate$30(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
8904
9393
|
kind: "class",
|
|
8905
9394
|
name: _classThis.name,
|
|
8906
9395
|
metadata: _metadata
|
|
@@ -8912,7 +9401,7 @@ let RageModifiersGeneratedEffects = (() => {
|
|
|
8912
9401
|
writable: true,
|
|
8913
9402
|
value: _metadata
|
|
8914
9403
|
});
|
|
8915
|
-
__runInitializers$
|
|
9404
|
+
__runInitializers$30(_classThis, _classExtraInitializers);
|
|
8916
9405
|
}
|
|
8917
9406
|
static build() {
|
|
8918
9407
|
return defineEffects({
|
|
@@ -8954,7 +9443,7 @@ var rage_effect_exports = /* @__PURE__ */ __exportAll({
|
|
|
8954
9443
|
RageEffects: () => RageEffects,
|
|
8955
9444
|
officialRageCandidate: () => officialRageCandidate
|
|
8956
9445
|
});
|
|
8957
|
-
var __esDecorate$
|
|
9446
|
+
var __esDecorate$29 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
8958
9447
|
function accept(f) {
|
|
8959
9448
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
8960
9449
|
return f;
|
|
@@ -8989,7 +9478,7 @@ var __esDecorate$28 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
8989
9478
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
8990
9479
|
done = true;
|
|
8991
9480
|
};
|
|
8992
|
-
var __runInitializers$
|
|
9481
|
+
var __runInitializers$29 = function(thisArg, initializers, value) {
|
|
8993
9482
|
var useValue = arguments.length > 2;
|
|
8994
9483
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
8995
9484
|
return useValue ? value : void 0;
|
|
@@ -9033,7 +9522,7 @@ let RageEffects = (() => {
|
|
|
9033
9522
|
}
|
|
9034
9523
|
static {
|
|
9035
9524
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
9036
|
-
__esDecorate$
|
|
9525
|
+
__esDecorate$29(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
9037
9526
|
kind: "class",
|
|
9038
9527
|
name: _classThis.name,
|
|
9039
9528
|
metadata: _metadata
|
|
@@ -9045,7 +9534,7 @@ let RageEffects = (() => {
|
|
|
9045
9534
|
writable: true,
|
|
9046
9535
|
value: _metadata
|
|
9047
9536
|
});
|
|
9048
|
-
__runInitializers$
|
|
9537
|
+
__runInitializers$29(_classThis, _classExtraInitializers);
|
|
9049
9538
|
}
|
|
9050
9539
|
static build() {
|
|
9051
9540
|
return {
|
|
@@ -9058,7 +9547,7 @@ let RageEffects = (() => {
|
|
|
9058
9547
|
})();
|
|
9059
9548
|
// src/effects/rain-water-shield.effect.ts
|
|
9060
9549
|
var rain_water_shield_effect_exports = /* @__PURE__ */ __exportAll({ RainWaterShieldEffects: () => RainWaterShieldEffects });
|
|
9061
|
-
var __esDecorate$
|
|
9550
|
+
var __esDecorate$28 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
9062
9551
|
function accept(f) {
|
|
9063
9552
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
9064
9553
|
return f;
|
|
@@ -9093,7 +9582,7 @@ var __esDecorate$27 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
9093
9582
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
9094
9583
|
done = true;
|
|
9095
9584
|
};
|
|
9096
|
-
var __runInitializers$
|
|
9585
|
+
var __runInitializers$28 = function(thisArg, initializers, value) {
|
|
9097
9586
|
var useValue = arguments.length > 2;
|
|
9098
9587
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
9099
9588
|
return useValue ? value : void 0;
|
|
@@ -9113,7 +9602,7 @@ let RainWaterShieldEffects = (() => {
|
|
|
9113
9602
|
}
|
|
9114
9603
|
static {
|
|
9115
9604
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
9116
|
-
__esDecorate$
|
|
9605
|
+
__esDecorate$28(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
9117
9606
|
kind: "class",
|
|
9118
9607
|
name: _classThis.name,
|
|
9119
9608
|
metadata: _metadata
|
|
@@ -9125,7 +9614,7 @@ let RainWaterShieldEffects = (() => {
|
|
|
9125
9614
|
writable: true,
|
|
9126
9615
|
value: _metadata
|
|
9127
9616
|
});
|
|
9128
|
-
__runInitializers$
|
|
9617
|
+
__runInitializers$28(_classThis, _classExtraInitializers);
|
|
9129
9618
|
}
|
|
9130
9619
|
static build(context) {
|
|
9131
9620
|
const catalog = context.parameters.get("effect_skill_add_mark_shuiwenpingzhang");
|
|
@@ -9146,7 +9635,7 @@ var random_mark_applications_effect_exports = /* @__PURE__ */ __exportAll({
|
|
|
9146
9635
|
RandomMarkApplicationsEffects: () => RandomMarkApplicationsEffects,
|
|
9147
9636
|
randomMarkApplicationDependencies: () => randomMarkApplicationDependencies
|
|
9148
9637
|
});
|
|
9149
|
-
var __esDecorate$
|
|
9638
|
+
var __esDecorate$27 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
9150
9639
|
function accept(f) {
|
|
9151
9640
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
9152
9641
|
return f;
|
|
@@ -9181,7 +9670,7 @@ var __esDecorate$26 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
9181
9670
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
9182
9671
|
done = true;
|
|
9183
9672
|
};
|
|
9184
|
-
var __runInitializers$
|
|
9673
|
+
var __runInitializers$27 = function(thisArg, initializers, value) {
|
|
9185
9674
|
var useValue = arguments.length > 2;
|
|
9186
9675
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
9187
9676
|
return useValue ? value : void 0;
|
|
@@ -9199,7 +9688,7 @@ let RandomMarkApplicationsEffects = (() => {
|
|
|
9199
9688
|
}
|
|
9200
9689
|
static {
|
|
9201
9690
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
9202
|
-
__esDecorate$
|
|
9691
|
+
__esDecorate$27(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
9203
9692
|
kind: "class",
|
|
9204
9693
|
name: _classThis.name,
|
|
9205
9694
|
metadata: _metadata
|
|
@@ -9211,7 +9700,7 @@ let RandomMarkApplicationsEffects = (() => {
|
|
|
9211
9700
|
writable: true,
|
|
9212
9701
|
value: _metadata
|
|
9213
9702
|
});
|
|
9214
|
-
__runInitializers$
|
|
9703
|
+
__runInitializers$27(_classThis, _classExtraInitializers);
|
|
9215
9704
|
}
|
|
9216
9705
|
static build(context) {
|
|
9217
9706
|
const marks = context.marks;
|
|
@@ -9233,7 +9722,7 @@ let RandomMarkApplicationsEffects = (() => {
|
|
|
9233
9722
|
})();
|
|
9234
9723
|
// src/effects/random-skill.effect.ts
|
|
9235
9724
|
var random_skill_effect_exports = /* @__PURE__ */ __exportAll({ RandomSkillEffects: () => RandomSkillEffects });
|
|
9236
|
-
var __esDecorate$
|
|
9725
|
+
var __esDecorate$26 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
9237
9726
|
function accept(f) {
|
|
9238
9727
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
9239
9728
|
return f;
|
|
@@ -9268,7 +9757,7 @@ var __esDecorate$25 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
9268
9757
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
9269
9758
|
done = true;
|
|
9270
9759
|
};
|
|
9271
|
-
var __runInitializers$
|
|
9760
|
+
var __runInitializers$26 = function(thisArg, initializers, value) {
|
|
9272
9761
|
var useValue = arguments.length > 2;
|
|
9273
9762
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
9274
9763
|
return useValue ? value : void 0;
|
|
@@ -9285,7 +9774,7 @@ let RandomSkillEffects = (() => {
|
|
|
9285
9774
|
}
|
|
9286
9775
|
static {
|
|
9287
9776
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
9288
|
-
__esDecorate$
|
|
9777
|
+
__esDecorate$26(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
9289
9778
|
kind: "class",
|
|
9290
9779
|
name: _classThis.name,
|
|
9291
9780
|
metadata: _metadata
|
|
@@ -9297,7 +9786,7 @@ let RandomSkillEffects = (() => {
|
|
|
9297
9786
|
writable: true,
|
|
9298
9787
|
value: _metadata
|
|
9299
9788
|
});
|
|
9300
|
-
__runInitializers$
|
|
9789
|
+
__runInitializers$26(_classThis, _classExtraInitializers);
|
|
9301
9790
|
}
|
|
9302
9791
|
static build() {
|
|
9303
9792
|
const build = (exclude) => ({
|
|
@@ -9316,7 +9805,7 @@ let RandomSkillEffects = (() => {
|
|
|
9316
9805
|
})();
|
|
9317
9806
|
// src/effects/random-stat-actions.effect.ts
|
|
9318
9807
|
var random_stat_actions_effect_exports = /* @__PURE__ */ __exportAll({ RandomStatActionsEffects: () => RandomStatActionsEffects });
|
|
9319
|
-
var __esDecorate$
|
|
9808
|
+
var __esDecorate$25 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
9320
9809
|
function accept(f) {
|
|
9321
9810
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
9322
9811
|
return f;
|
|
@@ -9351,7 +9840,7 @@ var __esDecorate$24 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
9351
9840
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
9352
9841
|
done = true;
|
|
9353
9842
|
};
|
|
9354
|
-
var __runInitializers$
|
|
9843
|
+
var __runInitializers$25 = function(thisArg, initializers, value) {
|
|
9355
9844
|
var useValue = arguments.length > 2;
|
|
9356
9845
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
9357
9846
|
return useValue ? value : void 0;
|
|
@@ -9374,7 +9863,7 @@ let RandomStatActionsEffects = (() => {
|
|
|
9374
9863
|
}
|
|
9375
9864
|
static {
|
|
9376
9865
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
9377
|
-
__esDecorate$
|
|
9866
|
+
__esDecorate$25(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
9378
9867
|
kind: "class",
|
|
9379
9868
|
name: _classThis.name,
|
|
9380
9869
|
metadata: _metadata
|
|
@@ -9386,7 +9875,7 @@ let RandomStatActionsEffects = (() => {
|
|
|
9386
9875
|
writable: true,
|
|
9387
9876
|
value: _metadata
|
|
9388
9877
|
});
|
|
9389
|
-
__runInitializers$
|
|
9878
|
+
__runInitializers$25(_classThis, _classExtraInitializers);
|
|
9390
9879
|
}
|
|
9391
9880
|
static build() {
|
|
9392
9881
|
return defineEffects({
|
|
@@ -9418,7 +9907,7 @@ var random_temporary_effect_effect_exports = /* @__PURE__ */ __exportAll({
|
|
|
9418
9907
|
RandomTemporaryEffectEffects: () => RandomTemporaryEffectEffects,
|
|
9419
9908
|
randomTemporaryEffectDependencies: () => randomTemporaryEffectDependencies
|
|
9420
9909
|
});
|
|
9421
|
-
var __esDecorate$
|
|
9910
|
+
var __esDecorate$24 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
9422
9911
|
function accept(f) {
|
|
9423
9912
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
9424
9913
|
return f;
|
|
@@ -9453,7 +9942,7 @@ var __esDecorate$23 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
9453
9942
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
9454
9943
|
done = true;
|
|
9455
9944
|
};
|
|
9456
|
-
var __runInitializers$
|
|
9945
|
+
var __runInitializers$24 = function(thisArg, initializers, value) {
|
|
9457
9946
|
var useValue = arguments.length > 2;
|
|
9458
9947
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
9459
9948
|
return useValue ? value : void 0;
|
|
@@ -9483,7 +9972,7 @@ let RandomTemporaryEffectEffects = (() => {
|
|
|
9483
9972
|
}
|
|
9484
9973
|
static {
|
|
9485
9974
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
9486
|
-
__esDecorate$
|
|
9975
|
+
__esDecorate$24(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
9487
9976
|
kind: "class",
|
|
9488
9977
|
name: _classThis.name,
|
|
9489
9978
|
metadata: _metadata
|
|
@@ -9495,7 +9984,7 @@ let RandomTemporaryEffectEffects = (() => {
|
|
|
9495
9984
|
writable: true,
|
|
9496
9985
|
value: _metadata
|
|
9497
9986
|
});
|
|
9498
|
-
__runInitializers$
|
|
9987
|
+
__runInitializers$24(_classThis, _classExtraInitializers);
|
|
9499
9988
|
}
|
|
9500
9989
|
static build(context) {
|
|
9501
9990
|
const effects = context.effects;
|
|
@@ -9520,7 +10009,7 @@ var random_weather_application_effect_exports = /* @__PURE__ */ __exportAll({
|
|
|
9520
10009
|
RandomWeatherApplicationEffects: () => RandomWeatherApplicationEffects,
|
|
9521
10010
|
randomWeatherDependencies: () => randomWeatherDependencies
|
|
9522
10011
|
});
|
|
9523
|
-
var __esDecorate$
|
|
10012
|
+
var __esDecorate$23 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
9524
10013
|
function accept(f) {
|
|
9525
10014
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
9526
10015
|
return f;
|
|
@@ -9555,7 +10044,7 @@ var __esDecorate$22 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
9555
10044
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
9556
10045
|
done = true;
|
|
9557
10046
|
};
|
|
9558
|
-
var __runInitializers$
|
|
10047
|
+
var __runInitializers$23 = function(thisArg, initializers, value) {
|
|
9559
10048
|
var useValue = arguments.length > 2;
|
|
9560
10049
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
9561
10050
|
return useValue ? value : void 0;
|
|
@@ -9573,7 +10062,7 @@ let RandomWeatherApplicationEffects = (() => {
|
|
|
9573
10062
|
}
|
|
9574
10063
|
static {
|
|
9575
10064
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
9576
|
-
__esDecorate$
|
|
10065
|
+
__esDecorate$23(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
9577
10066
|
kind: "class",
|
|
9578
10067
|
name: _classThis.name,
|
|
9579
10068
|
metadata: _metadata
|
|
@@ -9585,7 +10074,7 @@ let RandomWeatherApplicationEffects = (() => {
|
|
|
9585
10074
|
writable: true,
|
|
9586
10075
|
value: _metadata
|
|
9587
10076
|
});
|
|
9588
|
-
__runInitializers$
|
|
10077
|
+
__runInitializers$23(_classThis, _classExtraInitializers);
|
|
9589
10078
|
}
|
|
9590
10079
|
static build(context) {
|
|
9591
10080
|
const marks = context.marks;
|
|
@@ -9608,7 +10097,7 @@ let RandomWeatherApplicationEffects = (() => {
|
|
|
9608
10097
|
})();
|
|
9609
10098
|
// src/effects/resource-prevention.effect.ts
|
|
9610
10099
|
var resource_prevention_effect_exports = /* @__PURE__ */ __exportAll({ ResourcePreventionEffects: () => ResourcePreventionEffects });
|
|
9611
|
-
var __esDecorate$
|
|
10100
|
+
var __esDecorate$22 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
9612
10101
|
function accept(f) {
|
|
9613
10102
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
9614
10103
|
return f;
|
|
@@ -9643,7 +10132,7 @@ var __esDecorate$21 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
9643
10132
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
9644
10133
|
done = true;
|
|
9645
10134
|
};
|
|
9646
|
-
var __runInitializers$
|
|
10135
|
+
var __runInitializers$22 = function(thisArg, initializers, value) {
|
|
9647
10136
|
var useValue = arguments.length > 2;
|
|
9648
10137
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
9649
10138
|
return useValue ? value : void 0;
|
|
@@ -9659,7 +10148,7 @@ let ResourcePreventionEffects = (() => {
|
|
|
9659
10148
|
}
|
|
9660
10149
|
static {
|
|
9661
10150
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
9662
|
-
__esDecorate$
|
|
10151
|
+
__esDecorate$22(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
9663
10152
|
kind: "class",
|
|
9664
10153
|
name: _classThis.name,
|
|
9665
10154
|
metadata: _metadata
|
|
@@ -9671,7 +10160,7 @@ let ResourcePreventionEffects = (() => {
|
|
|
9671
10160
|
writable: true,
|
|
9672
10161
|
value: _metadata
|
|
9673
10162
|
});
|
|
9674
|
-
__runInitializers$
|
|
10163
|
+
__runInitializers$22(_classThis, _classExtraInitializers);
|
|
9675
10164
|
}
|
|
9676
10165
|
static build() {
|
|
9677
10166
|
return defineEffects({
|
|
@@ -9694,7 +10183,7 @@ let ResourcePreventionEffects = (() => {
|
|
|
9694
10183
|
})();
|
|
9695
10184
|
// src/effects/shield.effect.ts
|
|
9696
10185
|
var shield_effect_exports = /* @__PURE__ */ __exportAll({ ShieldEffects: () => ShieldEffects });
|
|
9697
|
-
var __esDecorate$
|
|
10186
|
+
var __esDecorate$21 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
9698
10187
|
function accept(f) {
|
|
9699
10188
|
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
9700
10189
|
return f;
|
|
@@ -9729,7 +10218,7 @@ var __esDecorate$20 = function(ctor, descriptorIn, decorators, contextIn, initia
|
|
|
9729
10218
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
9730
10219
|
done = true;
|
|
9731
10220
|
};
|
|
9732
|
-
var __runInitializers$
|
|
10221
|
+
var __runInitializers$21 = function(thisArg, initializers, value) {
|
|
9733
10222
|
var useValue = arguments.length > 2;
|
|
9734
10223
|
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
9735
10224
|
return useValue ? value : void 0;
|
|
@@ -9747,7 +10236,7 @@ let ShieldEffects = (() => {
|
|
|
9747
10236
|
}
|
|
9748
10237
|
static {
|
|
9749
10238
|
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
9750
|
-
__esDecorate$
|
|
10239
|
+
__esDecorate$21(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
9751
10240
|
kind: "class",
|
|
9752
10241
|
name: _classThis.name,
|
|
9753
10242
|
metadata: _metadata
|
|
@@ -9759,7 +10248,7 @@ let ShieldEffects = (() => {
|
|
|
9759
10248
|
writable: true,
|
|
9760
10249
|
value: _metadata
|
|
9761
10250
|
});
|
|
9762
|
-
__runInitializers$
|
|
10251
|
+
__runInitializers$21(_classThis, _classExtraInitializers);
|
|
9763
10252
|
}
|
|
9764
10253
|
static build(context) {
|
|
9765
10254
|
const mark = context.mark("mark_shuiwenpingzhang");
|
|
@@ -9798,6 +10287,167 @@ let ShieldEffects = (() => {
|
|
|
9798
10287
|
};
|
|
9799
10288
|
return _classThis;
|
|
9800
10289
|
})();
|
|
10290
|
+
// src/effects/shifeng.effect.ts
|
|
10291
|
+
var shifeng_effect_exports = /* @__PURE__ */ __exportAll({ ShifengEffects: () => ShifengEffects });
|
|
10292
|
+
var __esDecorate$20 = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
|
|
10293
|
+
function accept(f) {
|
|
10294
|
+
if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
|
|
10295
|
+
return f;
|
|
10296
|
+
}
|
|
10297
|
+
var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
|
|
10298
|
+
var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
|
|
10299
|
+
var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
|
|
10300
|
+
var _, done = false;
|
|
10301
|
+
for (var i = decorators.length - 1; i >= 0; i--) {
|
|
10302
|
+
var context = {};
|
|
10303
|
+
for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
|
|
10304
|
+
for (var p in contextIn.access) context.access[p] = contextIn.access[p];
|
|
10305
|
+
context.addInitializer = function(f) {
|
|
10306
|
+
if (done) throw new TypeError("Cannot add initializers after decoration has completed");
|
|
10307
|
+
extraInitializers.push(accept(f || null));
|
|
10308
|
+
};
|
|
10309
|
+
var result = (0, decorators[i])(kind === "accessor" ? {
|
|
10310
|
+
get: descriptor.get,
|
|
10311
|
+
set: descriptor.set
|
|
10312
|
+
} : descriptor[key], context);
|
|
10313
|
+
if (kind === "accessor") {
|
|
10314
|
+
if (result === void 0) continue;
|
|
10315
|
+
if (result === null || typeof result !== "object") throw new TypeError("Object expected");
|
|
10316
|
+
if (_ = accept(result.get)) descriptor.get = _;
|
|
10317
|
+
if (_ = accept(result.set)) descriptor.set = _;
|
|
10318
|
+
if (_ = accept(result.init)) initializers.unshift(_);
|
|
10319
|
+
} else if (_ = accept(result)) {
|
|
10320
|
+
if (kind === "field") initializers.unshift(_);
|
|
10321
|
+
else descriptor[key] = _;
|
|
10322
|
+
}
|
|
10323
|
+
}
|
|
10324
|
+
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
10325
|
+
done = true;
|
|
10326
|
+
};
|
|
10327
|
+
var __runInitializers$20 = function(thisArg, initializers, value) {
|
|
10328
|
+
var useValue = arguments.length > 2;
|
|
10329
|
+
for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
|
|
10330
|
+
return useValue ? value : void 0;
|
|
10331
|
+
};
|
|
10332
|
+
const NEEDLES = "mark_fenghuangzhen";
|
|
10333
|
+
const POISON = "mark_zhongdu";
|
|
10334
|
+
const PARALYSIS = "mark_mabi";
|
|
10335
|
+
const needles = targets.ownerMarks.where((mark) => mark.baseId === NEEDLES && mark.isActive);
|
|
10336
|
+
const remainingNeedles = needles.first().attribute("stack");
|
|
10337
|
+
const spendNeedle = needles.apply(ops.consumeStacks(1));
|
|
10338
|
+
const rollSecondary = conditions.chance(40);
|
|
10339
|
+
function needleHit(secondary) {
|
|
10340
|
+
return {
|
|
10341
|
+
triggers: [EffectTrigger.OnHit],
|
|
10342
|
+
priority: 0,
|
|
10343
|
+
when: conditions.selfUsesSkill,
|
|
10344
|
+
apply: ((ctx) => {
|
|
10345
|
+
const before = ctx.read(remainingNeedles) ?? 0;
|
|
10346
|
+
if (before > 0) spendNeedle(ctx);
|
|
10347
|
+
if ((ctx.read(remainingNeedles) ?? 0) < before || rollSecondary(ctx)) secondary(ctx);
|
|
10348
|
+
})
|
|
10349
|
+
};
|
|
10350
|
+
}
|
|
10351
|
+
const male = targets.ownerPet.condition((_, pets) => pets[0]?.gender === "Male");
|
|
10352
|
+
const female = targets.ownerPet.condition((_, pets) => pets[0]?.gender === "Female");
|
|
10353
|
+
const attackDamage = contexts.damage.condition((_, events) => events.some((event) => event.damageType === DamageType.Physical || event.damageType === DamageType.Special));
|
|
10354
|
+
function powerWhen(gender, bonus) {
|
|
10355
|
+
return {
|
|
10356
|
+
triggers: [EffectTrigger.AfterUseSkillCheck],
|
|
10357
|
+
priority: 0,
|
|
10358
|
+
when: conditions.all(conditions.selfUsesSkill, gender),
|
|
10359
|
+
apply: contexts.skillUse.apply(ops.addPower(bonus))
|
|
10360
|
+
};
|
|
10361
|
+
}
|
|
10362
|
+
function drainWhen(gender, amount) {
|
|
10363
|
+
const target = contexts.skillUse.flatMap((event) => event.actualTarget ? [event.actualTarget] : []);
|
|
10364
|
+
const hp = target.select((pet) => pet.currentHp).first();
|
|
10365
|
+
return {
|
|
10366
|
+
triggers: [EffectTrigger.OnHit],
|
|
10367
|
+
priority: 0,
|
|
10368
|
+
when: conditions.all(conditions.selfUsesSkill, gender),
|
|
10369
|
+
apply: ((ctx) => {
|
|
10370
|
+
const before = ctx.read(hp) ?? 0;
|
|
10371
|
+
if (before <= 0) return;
|
|
10372
|
+
target.apply(ops.dealDamage(Math.min(amount, before)))(ctx);
|
|
10373
|
+
const lost = before - (ctx.read(hp) ?? before);
|
|
10374
|
+
if (lost > 0) targets.ownerPet.apply(ops.heal(lost))(ctx);
|
|
10375
|
+
})
|
|
10376
|
+
};
|
|
10377
|
+
}
|
|
10378
|
+
let ShifengEffects = (() => {
|
|
10379
|
+
let _classDecorators = [effectGroup({ id: "shifeng" })];
|
|
10380
|
+
let _classDescriptor;
|
|
10381
|
+
let _classExtraInitializers = [];
|
|
10382
|
+
let _classThis;
|
|
10383
|
+
var ShifengEffects = class {
|
|
10384
|
+
static {
|
|
10385
|
+
_classThis = this;
|
|
10386
|
+
}
|
|
10387
|
+
static {
|
|
10388
|
+
const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(null) : void 0;
|
|
10389
|
+
__esDecorate$20(null, _classDescriptor = { value: _classThis }, _classDecorators, {
|
|
10390
|
+
kind: "class",
|
|
10391
|
+
name: _classThis.name,
|
|
10392
|
+
metadata: _metadata
|
|
10393
|
+
}, null, _classExtraInitializers);
|
|
10394
|
+
ShifengEffects = _classThis = _classDescriptor.value;
|
|
10395
|
+
if (_metadata) Object.defineProperty(_classThis, Symbol.metadata, {
|
|
10396
|
+
enumerable: true,
|
|
10397
|
+
configurable: true,
|
|
10398
|
+
writable: true,
|
|
10399
|
+
value: _metadata
|
|
10400
|
+
});
|
|
10401
|
+
__runInitializers$20(_classThis, _classExtraInitializers);
|
|
10402
|
+
}
|
|
10403
|
+
static build({ marks }) {
|
|
10404
|
+
const needleMark = marks.get(NEEDLES);
|
|
10405
|
+
const poison = marks.get(POISON);
|
|
10406
|
+
const paralysis = marks.get(PARALYSIS);
|
|
10407
|
+
if (!needleMark || !poison || !paralysis) throw new Error("Missing needle, poison, or paralysis mark");
|
|
10408
|
+
return defineEffects({
|
|
10409
|
+
effect_shifeng_ability_init_needles: {
|
|
10410
|
+
triggers: [EffectTrigger.OnBattleStart],
|
|
10411
|
+
priority: 0,
|
|
10412
|
+
apply: targets.ownerPet.apply(ops.addMark(needleMark, { stack: 3 }))
|
|
10413
|
+
},
|
|
10414
|
+
effect_shifeng_ability_immune_status: {
|
|
10415
|
+
triggers: [EffectTrigger.OnBeforeAddMark],
|
|
10416
|
+
priority: 0,
|
|
10417
|
+
when: conditions.all(conditions.ownerReceivesMark, (ctx) => ctx.read(remainingNeedles) === 0, contexts.addMark.condition((_, events) => events.some(({ baseMark }) => baseMark.tags.includes("status") || baseMark.tags.includes("exceptional")))),
|
|
10418
|
+
apply: contexts.addMark.apply(ops.disableContext())
|
|
10419
|
+
},
|
|
10420
|
+
effect_shifeng_emblem_male_damage: {
|
|
10421
|
+
triggers: [EffectTrigger.OnBeforeCalculateDamage],
|
|
10422
|
+
priority: 0,
|
|
10423
|
+
when: conditions.all(conditions.selfUsesSkill, male, attackDamage),
|
|
10424
|
+
apply: contexts.damage.apply(ops.modifyDamage({
|
|
10425
|
+
percent: 5,
|
|
10426
|
+
delta: 0
|
|
10427
|
+
}))
|
|
10428
|
+
},
|
|
10429
|
+
effect_shifeng_emblem_female_reduction: {
|
|
10430
|
+
triggers: [EffectTrigger.OnBeforeCalculateDamage],
|
|
10431
|
+
priority: 0,
|
|
10432
|
+
when: conditions.all(conditions.selfBeDamaged, female, attackDamage),
|
|
10433
|
+
apply: contexts.damage.apply(ops.modifyDamage({
|
|
10434
|
+
percent: -5,
|
|
10435
|
+
delta: 0
|
|
10436
|
+
}))
|
|
10437
|
+
},
|
|
10438
|
+
effect_shifeng_skill_fenghuangduzhen: needleHit(targets.opponentActive.apply(ops.addMark(poison))),
|
|
10439
|
+
effect_shifeng_skill_fenghuangjinzhen: needleHit(targets.opponentActive.apply(ops.addMark(paralysis))),
|
|
10440
|
+
effect_shifeng_skill_fenghuangmizhen: needleHit(targets.opponentActive.apply(ops.changeStatStage("spe", -1))),
|
|
10441
|
+
effect_shifeng_skill_fenghuangzhenwu: powerWhen(female, 10),
|
|
10442
|
+
effect_shifeng_skill_xiongfengtuxi: powerWhen(male, 50),
|
|
10443
|
+
effect_shifeng_skill_fenghuangchuji: powerWhen(female, 50),
|
|
10444
|
+
effect_shifeng_skill_xiongfengzhici: drainWhen(male, 50),
|
|
10445
|
+
effect_shifeng_skill_fenghuangjuezhen: drainWhen(female, 65)
|
|
10446
|
+
});
|
|
10447
|
+
}
|
|
10448
|
+
};
|
|
10449
|
+
return _classThis;
|
|
10450
|
+
})();
|
|
9801
10451
|
// src/effects/skill-contributions.generated.effect.ts
|
|
9802
10452
|
var skill_contributions_generated_effect_exports = /* @__PURE__ */ __exportAll({
|
|
9803
10453
|
SkillContributionsGeneratedEffects: () => SkillContributionsGeneratedEffects,
|
|
@@ -14750,10 +15400,18 @@ const effectSources = [
|
|
|
14750
15400
|
file: "src/effects/healing.effect.ts",
|
|
14751
15401
|
exports: healing_effect_exports
|
|
14752
15402
|
},
|
|
15403
|
+
{
|
|
15404
|
+
file: "src/effects/hema.effect.ts",
|
|
15405
|
+
exports: hema_effect_exports
|
|
15406
|
+
},
|
|
14753
15407
|
{
|
|
14754
15408
|
file: "src/effects/ignore-shield.generated.effect.ts",
|
|
14755
15409
|
exports: ignore_shield_generated_effect_exports
|
|
14756
15410
|
},
|
|
15411
|
+
{
|
|
15412
|
+
file: "src/effects/inherited-moves.effect.ts",
|
|
15413
|
+
exports: inherited_moves_effect_exports
|
|
15414
|
+
},
|
|
14757
15415
|
{
|
|
14758
15416
|
file: "src/effects/instant-literals.generated.effect.ts",
|
|
14759
15417
|
exports: instant_literals_generated_effect_exports
|
|
@@ -14790,6 +15448,10 @@ const effectSources = [
|
|
|
14790
15448
|
file: "src/effects/mark-transfers.effect.ts",
|
|
14791
15449
|
exports: mark_transfers_effect_exports
|
|
14792
15450
|
},
|
|
15451
|
+
{
|
|
15452
|
+
file: "src/effects/max-hp-excess.effect.ts",
|
|
15453
|
+
exports: max_hp_excess_effect_exports
|
|
15454
|
+
},
|
|
14793
15455
|
{
|
|
14794
15456
|
file: "src/effects/multihit.generated.effect.ts",
|
|
14795
15457
|
exports: multihit_generated_effect_exports
|
|
@@ -14850,6 +15512,10 @@ const effectSources = [
|
|
|
14850
15512
|
file: "src/effects/shield.effect.ts",
|
|
14851
15513
|
exports: shield_effect_exports
|
|
14852
15514
|
},
|
|
15515
|
+
{
|
|
15516
|
+
file: "src/effects/shifeng.effect.ts",
|
|
15517
|
+
exports: shifeng_effect_exports
|
|
15518
|
+
},
|
|
14853
15519
|
{
|
|
14854
15520
|
file: "src/effects/skill-contributions.generated.effect.ts",
|
|
14855
15521
|
exports: skill_contributions_generated_effect_exports
|
|
@@ -14944,6 +15610,56 @@ function createOfficialContent(data, revision, additional = {}) {
|
|
|
14944
15610
|
}
|
|
14945
15611
|
// src/effect-mark-relations.ts
|
|
14946
15612
|
const officialEffectMarkRelations = {
|
|
15613
|
+
effect_shifeng_ability_init_needles: [{
|
|
15614
|
+
markId: "mark_fenghuangzhen",
|
|
15615
|
+
relationType: "adds"
|
|
15616
|
+
}],
|
|
15617
|
+
effect_shifeng_skill_fenghuangduzhen: [{
|
|
15618
|
+
markId: "mark_fenghuangzhen",
|
|
15619
|
+
relationType: "consumes"
|
|
15620
|
+
}, {
|
|
15621
|
+
markId: "mark_zhongdu",
|
|
15622
|
+
relationType: "adds"
|
|
15623
|
+
}],
|
|
15624
|
+
effect_shifeng_skill_fenghuangjinzhen: [{
|
|
15625
|
+
markId: "mark_fenghuangzhen",
|
|
15626
|
+
relationType: "consumes"
|
|
15627
|
+
}, {
|
|
15628
|
+
markId: "mark_mabi",
|
|
15629
|
+
relationType: "adds"
|
|
15630
|
+
}],
|
|
15631
|
+
effect_shifeng_skill_fenghuangmizhen: [{
|
|
15632
|
+
markId: "mark_fenghuangzhen",
|
|
15633
|
+
relationType: "consumes"
|
|
15634
|
+
}],
|
|
15635
|
+
effect_skill_ganjuebaoli: [
|
|
15636
|
+
{
|
|
15637
|
+
markId: "mark_shiqutingjue",
|
|
15638
|
+
relationType: "adds"
|
|
15639
|
+
},
|
|
15640
|
+
{
|
|
15641
|
+
markId: "mark_shiquxiujue",
|
|
15642
|
+
relationType: "adds"
|
|
15643
|
+
},
|
|
15644
|
+
{
|
|
15645
|
+
markId: "mark_shiquweijue",
|
|
15646
|
+
relationType: "adds"
|
|
15647
|
+
}
|
|
15648
|
+
],
|
|
15649
|
+
effect_skill_chaogansangshibo: [
|
|
15650
|
+
{
|
|
15651
|
+
markId: "mark_shiqutingjue",
|
|
15652
|
+
relationType: "adds"
|
|
15653
|
+
},
|
|
15654
|
+
{
|
|
15655
|
+
markId: "mark_shiquxiujue",
|
|
15656
|
+
relationType: "adds"
|
|
15657
|
+
},
|
|
15658
|
+
{
|
|
15659
|
+
markId: "mark_shiquweijue",
|
|
15660
|
+
relationType: "adds"
|
|
15661
|
+
}
|
|
15662
|
+
],
|
|
14947
15663
|
effect_ability_add_shoufashanghaizengjia_on_lead: [{
|
|
14948
15664
|
markId: "mark_shoufashanghaizengjia",
|
|
14949
15665
|
relationType: "adds"
|