genshin-world 4.1.2 → 4.2.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/package.json +8 -8
- package/dist/ReactionType-BBSdxyO3.js +0 -47
- package/dist/addKitEffect-DBqTfm_3.js +0 -17
- package/dist/ainoKit-Dy3vTp3B.js +0 -28
- package/dist/albedoKit-CU5N1Hnm.js +0 -43
- package/dist/alhaithamKit-Bhs-coX9.js +0 -212
- package/dist/aloyKit-C7x_Jf16.js +0 -32
- package/dist/amberKit-BO7ZAQgU.js +0 -38
- package/dist/arlecchinoKit-DJawwVVl.js +0 -4
- package/dist/ayakaKit-Bu_QuYsR.js +0 -26
- package/dist/ayatoKit-BXZNajk7.js +0 -108
- package/dist/baizhuKit-8_4IzZ3A.js +0 -33
- package/dist/barbaraKit-B5DpLyHJ.js +0 -58
- package/dist/beidouKit-sQUahtIk.js +0 -59
- package/dist/bennettKit-Cr-zZ_25.js +0 -66
- package/dist/candaceKit-BUs_wwFU.js +0 -84
- package/dist/characterPack-YAEqbhAX.d.ts +0 -116
- package/dist/characterPack-zycIUHje.js +0 -641
- package/dist/characterPack.d.ts +0 -2
- package/dist/characterPack.js +0 -1
- package/dist/charlotteKit-BOZiCPEb.js +0 -90
- package/dist/chascaKit-C1Csj0Yf.js +0 -4
- package/dist/chevreuseKit-DDHga8Tj.js +0 -20
- package/dist/chioriKit-CxRUSHNw.js +0 -28
- package/dist/chongyunKit-jrWQKRkG.js +0 -104
- package/dist/citlaliKit-sv7XrzVx.js +0 -4
- package/dist/clorindeKit-DxtRn_To.js +0 -4
- package/dist/colleiKit-CO_n9qra.js +0 -28
- package/dist/columbinaKit-DrW0EvqN.js +0 -31
- package/dist/constants--ARZpp1u.js +0 -49
- package/dist/constants-BqrUOf2M.js +0 -48
- package/dist/constants-CSFiwyHy.js +0 -46
- package/dist/createWindriseGroundPaint-BmZkGq-r.js +0 -295
- package/dist/cynoKit-DpfT5dmS.js +0 -179
- package/dist/dahliaKit-B8fOPvvi.js +0 -16
- package/dist/dehyaKit-42tyEI0Z.js +0 -4
- package/dist/dilucKit-EwLUSPgs.js +0 -63
- package/dist/dionaKit-89B1hwYL.js +0 -48
- package/dist/doriKit-G9XTwwCP.js +0 -24
- package/dist/durinKit-BIYdUkbh.js +0 -49
- package/dist/emilieKit-0b2vhNtl.js +0 -21
- package/dist/escoffierKit-Da5UAvAF.js +0 -48
- package/dist/eulaKit-DAENHIEx.js +0 -129
- package/dist/faruzanKit-BcW6D-N3.js +0 -71
- package/dist/fischlKit-Bm8vNmuV.js +0 -98
- package/dist/flinsKit-GUnFJdUg.js +0 -9
- package/dist/freminetKit-CpwsVmTT.js +0 -4
- package/dist/furinaKit-BREisAdJ.js +0 -279
- package/dist/gamingKit-D9ekWGMJ.js +0 -4
- package/dist/ganyuKit-DLJa1t-Z.js +0 -74
- package/dist/gorouKit-DkpaGNA8.js +0 -94
- package/dist/heizouKit-B6kRXVCP.js +0 -35
- package/dist/huTaoKit-drjrzLjf.js +0 -58
- package/dist/iansanKit-RNjD9nSq.js +0 -4
- package/dist/ifaKit-CXWxCOPI.js +0 -4
- package/dist/illugaKit-BFtXIf3P.js +0 -4
- package/dist/index-DQB91Tfq.d.ts +0 -19820
- package/dist/index.d.ts +0 -4
- package/dist/index.js +0 -29218
- package/dist/ineffaKit-3J0FJo2E.js +0 -51
- package/dist/ittoKit-CfwXkR0g.js +0 -112
- package/dist/jahodaKit-C1sdSDfr.js +0 -97
- package/dist/jeanKit-Do8vx5Kp.js +0 -56
- package/dist/kachinaKit-DWLNDpgO.js +0 -4
- package/dist/kaeyaKit-DU8Df4RE.js +0 -14
- package/dist/kavehKit-BWoAaKs4.js +0 -9
- package/dist/kazuhaKit-C5gn8iGg.js +0 -55
- package/dist/keqingKit-uGsb_p7t.js +0 -12
- package/dist/kinichKit-Dp3lNUJt.js +0 -22
- package/dist/kiraraKit-CCAGXouk.js +0 -43
- package/dist/kleeKit-BzcJLC2i.js +0 -48
- package/dist/kokomiKit-DBdTlTDr.js +0 -42
- package/dist/kujouSaraKit-DDE-24jd.js +0 -56
- package/dist/kukiKit-DcARldP9.js +0 -59
- package/dist/lanYanKit-B3lwZ7OW.js +0 -18
- package/dist/laumaKit-DkG-i0rL.js +0 -59
- package/dist/laylaKit-DYtz0tSZ.js +0 -41
- package/dist/linneaKit-DlVhnbGM.js +0 -4
- package/dist/lisaKit-CWUiiam1.js +0 -22
- package/dist/lohenKit-D-uagI_g.js +0 -4
- package/dist/lynetteKit-BnNW81Pm.js +0 -20
- package/dist/lyneyKit-D6yTnfFv.js +0 -19
- package/dist/mavuikaKit-CUC1kHRJ.js +0 -4
- package/dist/mikaKit-C9xDhjJg.js +0 -17
- package/dist/mizukiKit-DY-gHM8N.js +0 -4
- package/dist/monaKit-B748iTEy.js +0 -26
- package/dist/mualaniKit-B-Km_dcQ.js +0 -4
- package/dist/nahidaKit-BGRc-swN.js +0 -4
- package/dist/naviaKit-CHh2VdX3.js +0 -64
- package/dist/neferKit-BTALTTiV.js +0 -4
- package/dist/neuvilletteKit-DAfX_2tC.js +0 -4
- package/dist/nicoleKit-BVjL7LI0.js +0 -4
- package/dist/nilouKit-BgM4u-hg.js +0 -52
- package/dist/ningguangKit-N88BhNb_.js +0 -105
- package/dist/noelleKit-DDewnuJ9.js +0 -48
- package/dist/ororonKit-DiAd2dlh.js +0 -86
- package/dist/pruneKit-CHkC_OSB.js +0 -4
- package/dist/qiqiKit-DCtsriE7.js +0 -88
- package/dist/raidenKit-BBWMmPFn.js +0 -144
- package/dist/razorKit-CBgdHYic.js +0 -90
- package/dist/readCharacterAvatar-C7FufK7J.js +0 -292
- package/dist/rosariaKit-D_RDXpLp.js +0 -29
- package/dist/save-CEbj1mOx.js +0 -854
- package/dist/save.d.ts +0 -2
- package/dist/save.js +0 -1
- package/dist/sayuKit-Hnv4iA3_.js +0 -35
- package/dist/sceneExport-BZaF05K-.d.ts +0 -70
- package/dist/sceneExport-DiiIi0PM.js +0 -27
- package/dist/sceneExport.d.ts +0 -2
- package/dist/sceneExport.js +0 -1
- package/dist/sethosKit-8EK04AA4.js +0 -4
- package/dist/shenheKit-DqrG2I4S.js +0 -50
- package/dist/sigewinneKit-CYJyadTr.js +0 -10
- package/dist/skirkKit-BDjoFGAq.js +0 -10
- package/dist/style.css +0 -3612
- package/dist/sucroseKit-DF0jcI2y.js +0 -101
- package/dist/tartagliaKit-Bbtww18S.js +0 -136
- package/dist/terrainTileWorker.d.ts +0 -1
- package/dist/terrainTileWorker.js +0 -81
- package/dist/thomaKit-Zm5AJ9Fm.js +0 -64
- package/dist/tighnariKit-CSa_Yqpp.js +0 -4
- package/dist/varesaKit-CMXLbBv9.js +0 -4
- package/dist/varkaKit-C8_HlTVH.js +0 -4
- package/dist/ventiKit-BcQkbI-z.js +0 -52
- package/dist/wandererKit-CQM691sn.js +0 -9
- package/dist/wriothesleyKit-CBTnYlOy.js +0 -4
- package/dist/xianglingKit-BPQN7cxU.js +0 -108
- package/dist/xianyunKit-CVhuYBde.js +0 -4
- package/dist/xiaoKit-BDI_SODG.js +0 -90
- package/dist/xilonenKit-YAVOPRwm.js +0 -4
- package/dist/xingqiuKit-Cv8JYeYO.js +0 -106
- package/dist/xinyanKit-CffF-Er0.js +0 -120
- package/dist/yaeMikoKit-xAKYm2K6.js +0 -44
- package/dist/yanfeiKit-C6elnkmn.js +0 -86
- package/dist/yaoyaoKit-CaPIIp-i.js +0 -4
- package/dist/yelanKit-Da0oQ6yu.js +0 -33
- package/dist/yoimiyaKit-DTENWB4y.js +0 -49
- package/dist/yunjinKit-PP4yeyn1.js +0 -22
- package/dist/zhongliKit-uMdKUTP-.js +0 -100
- package/dist/zibaiKit-Dq6mFWSx.js +0 -4
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import "./characterPack-zycIUHje.js";
|
|
2
|
-
import "./index.js";
|
|
3
|
-
//#region src/services/kit/characters/emilieKit.ts
|
|
4
|
-
const CONSTELLATION_2 = 2;
|
|
5
|
-
const CONSTELLATION_2_STATUS = {
|
|
6
|
-
damageTakenBonus: 0,
|
|
7
|
-
id: "emilie-constellation-2",
|
|
8
|
-
resistanceReduction: { ["Grass"]: .3 },
|
|
9
|
-
secondsRemaining: 10
|
|
10
|
-
};
|
|
11
|
-
const ASCENSION_4 = 4;
|
|
12
|
-
const ASCENSION_4_ATTACK_SHARE = .15;
|
|
13
|
-
const ASCENSION_4_DAMAGE_BONUS_CAP = .36;
|
|
14
|
-
const getConstellationStatus = ({ constellationCount }) => constellationCount >= CONSTELLATION_2 ? CONSTELLATION_2_STATUS : void 0;
|
|
15
|
-
const getAscension4DamageBonus = (combatant, enemy) => combatant.ascension >= ASCENSION_4 && enemy.elementalState.auras.has("Burning") ? Math.min(combatant.attributes.attack / 1e3 * ASCENSION_4_ATTACK_SHARE, ASCENSION_4_DAMAGE_BONUS_CAP) : 0;
|
|
16
|
-
const createEmilieKitBehaviour = () => ({
|
|
17
|
-
getStrikeDamageBonus: ({ combatant }, enemy) => getAscension4DamageBonus(combatant, enemy),
|
|
18
|
-
skill: { hits: [{ enemyStatus: getConstellationStatus }, { enemyStatus: getConstellationStatus }] }
|
|
19
|
-
});
|
|
20
|
-
//#endregion
|
|
21
|
-
export { createEmilieKitBehaviour };
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { castKitField, castKitSummon, changeKitMemberHealth, startKitCooldown } from "./index.js";
|
|
2
|
-
import { takeOne } from "@esposter/shared";
|
|
3
|
-
//#region src/services/kit/characters/escoffierKit.ts
|
|
4
|
-
const ALIGNED_INTERVAL_STATUS_ID = "escoffier-aligned-icd";
|
|
5
|
-
const BURST_HEAL_FIELD_ID = "escoffier-scoring-cuts-heal";
|
|
6
|
-
const REHAB_DIET_SCALING = 1.3824;
|
|
7
|
-
const REHAB_DIET_FIELD_ID = "escoffier-rehab-diet";
|
|
8
|
-
const REHAB_DIET_ASCENSION = 1;
|
|
9
|
-
const createEscoffierKitBehaviour = ({ kit, readHit, readHits, readParameter, readSeconds }) => {
|
|
10
|
-
const skillTickHits = readHits("frostyParfaitTicks");
|
|
11
|
-
const surgingBladeHit = readHit("surgingBlade");
|
|
12
|
-
const alignedIntervalSeconds = readParameter("alignedIntervalSeconds");
|
|
13
|
-
const burstHealFlat = readParameter("scoringCutsFlatHeal");
|
|
14
|
-
const burstHealAttackShare = readParameter("scoringCutsHealAttackShare");
|
|
15
|
-
const burstHealSeconds = readSeconds("burstHeal");
|
|
16
|
-
const burstRadius = takeOne(kit.elementalBurst.hits).hitArea.radius;
|
|
17
|
-
const rehabDietFirstTickSeconds = readSeconds("rehabDietFirstTick");
|
|
18
|
-
const rehabDietIntervalSeconds = readSeconds("rehabDietInterval");
|
|
19
|
-
const rehabDietLastTickSeconds = readSeconds("rehabDietLastTick");
|
|
20
|
-
return {
|
|
21
|
-
burst: { onStart: ({ activeCombatant: combatant, body, kitEffectState }) => {
|
|
22
|
-
castKitField(kitEffectState, combatant.characterId, body.position, {
|
|
23
|
-
id: BURST_HEAL_FIELD_ID,
|
|
24
|
-
nextTickSeconds: burstHealSeconds,
|
|
25
|
-
onTick: (tick) => changeKitMemberHealth(tick, combatant, tick.activeCombatant.characterId, burstHealFlat + burstHealAttackShare * combatant.attributes.attack),
|
|
26
|
-
radius: burstRadius,
|
|
27
|
-
secondsRemaining: burstHealSeconds + .5,
|
|
28
|
-
tickIntervalSeconds: 1
|
|
29
|
-
});
|
|
30
|
-
if (combatant.ascension < REHAB_DIET_ASCENSION) return;
|
|
31
|
-
castKitField(kitEffectState, combatant.characterId, body.position, {
|
|
32
|
-
id: REHAB_DIET_FIELD_ID,
|
|
33
|
-
nextTickSeconds: rehabDietFirstTickSeconds,
|
|
34
|
-
onTick: (tick) => changeKitMemberHealth(tick, combatant, tick.activeCombatant.characterId, REHAB_DIET_SCALING * combatant.attributes.attack),
|
|
35
|
-
radius: burstRadius,
|
|
36
|
-
secondsRemaining: rehabDietLastTickSeconds + .5,
|
|
37
|
-
tickIntervalSeconds: rehabDietIntervalSeconds
|
|
38
|
-
});
|
|
39
|
-
} },
|
|
40
|
-
skill: { onStart: ({ activeCombatant: combatant, body, kitEffectState }) => {
|
|
41
|
-
castKitSummon(kitEffectState, body, combatant, skillTickHits);
|
|
42
|
-
if (!startKitCooldown(kitEffectState, combatant.characterId, ALIGNED_INTERVAL_STATUS_ID, alignedIntervalSeconds)) return;
|
|
43
|
-
castKitSummon(kitEffectState, body, combatant, [surgingBladeHit]);
|
|
44
|
-
} }
|
|
45
|
-
};
|
|
46
|
-
};
|
|
47
|
-
//#endregion
|
|
48
|
-
export { createEscoffierKitBehaviour };
|
package/dist/eulaKit-DAENHIEx.js
DELETED
|
@@ -1,129 +0,0 @@
|
|
|
1
|
-
import "./characterPack-zycIUHje.js";
|
|
2
|
-
import { addKitStatus, buffKitMember, castKitSummon, countKitResource, findStandingKitSummon, gainKitResource, removeKitEffects, spendKitResource, startKitCooldown } from "./index.js";
|
|
3
|
-
//#region src/services/kit/characters/eulaKit.ts
|
|
4
|
-
const GRIMHEART_ICD_SECONDS = .3;
|
|
5
|
-
const GRIMHEART_STACK_IDS = ["eula-grimheart-stack-0", "eula-grimheart-stack-1"];
|
|
6
|
-
const GRIMHEART_MAX_STACKS = 2;
|
|
7
|
-
const GRIMHEART_ICD_ID = "eula-grimheart-icd";
|
|
8
|
-
const ICEWHIRL_SHRED_ID = "eula-icewhirl-shred";
|
|
9
|
-
const CONSTELLATION_1_PHYSICAL_BONUS = .3;
|
|
10
|
-
const CONSTELLATION_1_BASE_SECONDS = 6;
|
|
11
|
-
const CONSTELLATION_1_SECONDS_PER_STACK = 6;
|
|
12
|
-
const CONSTELLATION_4_DAMAGE_BONUS = .25;
|
|
13
|
-
const CONSTELLATION_4_HEALTH_SHARE = .5;
|
|
14
|
-
const LIGHTFALL_STACK_ICD_SECONDS = .1;
|
|
15
|
-
const LIGHTFALL_STACK_ICD_ID = "eula-lightfall-stack-icd";
|
|
16
|
-
const LIGHTFALL_MAX_STACKS = 30;
|
|
17
|
-
const LIGHTFALL_STACKS_RESOURCE_ID = "eula-lightfall-stacks";
|
|
18
|
-
const LIGHTFALL_SUMMON_ID = "eula-lightfall";
|
|
19
|
-
const CONSTELLATION_6_STARTING_STACKS = 5;
|
|
20
|
-
const checkIsGrimheartStack = (effect, characterId) => effect.kind === "status" && effect.characterId === characterId && GRIMHEART_STACK_IDS.includes(effect.id);
|
|
21
|
-
const countGrimheartStacks = (effects, characterId) => effects.filter((effect) => checkIsGrimheartStack(effect, characterId)).length;
|
|
22
|
-
const gainGrimheartStack = (kitEffectState, combatant, seconds) => {
|
|
23
|
-
const count = Math.min(countGrimheartStacks(kitEffectState.effects, combatant.characterId) + 1, GRIMHEART_MAX_STACKS);
|
|
24
|
-
for (const id of GRIMHEART_STACK_IDS.slice(0, count)) addKitStatus(kitEffectState, combatant.characterId, {
|
|
25
|
-
id,
|
|
26
|
-
secondsRemaining: seconds
|
|
27
|
-
});
|
|
28
|
-
};
|
|
29
|
-
const clearGrimheartStacks = (kitEffectState, characterId) => removeKitEffects(kitEffectState, (effect) => checkIsGrimheartStack(effect, characterId));
|
|
30
|
-
const createEulaKitBehaviour = ({ kit, readArea, readHit, readHitFields, readParameter, readSeconds, readSecondsList }) => {
|
|
31
|
-
const [burstInitialHit] = kit.elementalBurst.hits;
|
|
32
|
-
const explodeBase = readParameter("lightfallSwordBaseMultiplier");
|
|
33
|
-
const explodePerStack = readParameter("lightfallSwordStackMultiplier");
|
|
34
|
-
const shredResistance = readParameter("shredResistance");
|
|
35
|
-
const shredPhysicalResistance = readParameter("shredPhysicalResistance");
|
|
36
|
-
const shredSecondsPerStack = readParameter("shredSecondsPerStack");
|
|
37
|
-
const grimheartSeconds = readParameter("grimheartSeconds");
|
|
38
|
-
const icewhirlArea = readArea("icewhirls");
|
|
39
|
-
const icewhirlHitmarkSecondsList = readSecondsList("icewhirlHitmark");
|
|
40
|
-
const icewhirlMultiplier = readParameter("icewhirlMultiplier");
|
|
41
|
-
const shatteredLightfall = readHit("shatteredLightfall");
|
|
42
|
-
const lightfallExplosionFields = readHitFields("lightfallExplosion", ["hitmarkSeconds", "talentMultiplier"]);
|
|
43
|
-
const lightfallStatusStartSeconds = readSeconds("lightfallStatusStart");
|
|
44
|
-
const lightfallStatusEndSeconds = readSeconds("lightfallStatusEnd");
|
|
45
|
-
const lightfallExplosionSeconds = readSeconds("lightfallExplosion");
|
|
46
|
-
const lightfallTriggerDelaySeconds = readSeconds("lightfallTriggerDelay");
|
|
47
|
-
const createLightfallExplosion = (stacks, hitmarkSeconds) => ({
|
|
48
|
-
...lightfallExplosionFields,
|
|
49
|
-
hitmarkSeconds,
|
|
50
|
-
talentMultiplier: explodeBase + explodePerStack * Math.min(stacks, LIGHTFALL_MAX_STACKS)
|
|
51
|
-
});
|
|
52
|
-
const gainLightfallStack = (kitEffectState, combatant) => {
|
|
53
|
-
const { characterId } = combatant;
|
|
54
|
-
const summon = findStandingKitSummon(kitEffectState.effects, LIGHTFALL_SUMMON_ID, characterId);
|
|
55
|
-
if (summon === void 0 || summon.elapsedSeconds < lightfallStatusStartSeconds || summon.elapsedSeconds >= lightfallStatusEndSeconds || !startKitCooldown(kitEffectState, characterId, LIGHTFALL_STACK_ICD_ID, LIGHTFALL_STACK_ICD_SECONDS)) return;
|
|
56
|
-
const count = countKitResource(kitEffectState.effects, characterId, LIGHTFALL_STACKS_RESOURCE_ID);
|
|
57
|
-
if (count >= LIGHTFALL_MAX_STACKS) return;
|
|
58
|
-
gainKitResource(kitEffectState, characterId, LIGHTFALL_STACKS_RESOURCE_ID, 1, LIGHTFALL_MAX_STACKS);
|
|
59
|
-
const hits = [createLightfallExplosion(count + 1, lightfallExplosionSeconds)];
|
|
60
|
-
kitEffectState.effects = kitEffectState.effects.map((effect) => effect === summon ? {
|
|
61
|
-
...summon,
|
|
62
|
-
hits
|
|
63
|
-
} : effect);
|
|
64
|
-
};
|
|
65
|
-
const lightfallStackHit = { onStrike: ({ kitEffectState }, { combatant }) => gainLightfallStack(kitEffectState, combatant) };
|
|
66
|
-
return {
|
|
67
|
-
burst: { onStart: ({ activeCombatant: combatant, body, kitEffectState }) => {
|
|
68
|
-
const { characterId } = combatant;
|
|
69
|
-
spendKitResource(kitEffectState, characterId, LIGHTFALL_STACKS_RESOURCE_ID);
|
|
70
|
-
removeKitEffects(kitEffectState, (effect) => effect.kind === "summon" && effect.id === LIGHTFALL_SUMMON_ID);
|
|
71
|
-
if (combatant.ascension >= 4 && countGrimheartStacks(kitEffectState.effects, characterId) > 0) gainGrimheartStack(kitEffectState, combatant, grimheartSeconds);
|
|
72
|
-
const startingStacks = combatant.constellationCount >= 6 ? CONSTELLATION_6_STARTING_STACKS : 0;
|
|
73
|
-
gainKitResource(kitEffectState, characterId, LIGHTFALL_STACKS_RESOURCE_ID, startingStacks, LIGHTFALL_MAX_STACKS);
|
|
74
|
-
castKitSummon(kitEffectState, body, combatant, [createLightfallExplosion(startingStacks, lightfallExplosionSeconds)], { id: LIGHTFALL_SUMMON_ID });
|
|
75
|
-
} },
|
|
76
|
-
getStrikeDamageBonus: ({ combatant, hit }, enemy) => combatant.constellationCount >= 4 && hit === burstInitialHit && enemy.health / enemy.maxHealth < CONSTELLATION_4_HEALTH_SHARE ? CONSTELLATION_4_DAMAGE_BONUS : 0,
|
|
77
|
-
normalAttacks: kit.normalAttacks.map(({ hits }) => ({ hits: hits.map(() => lightfallStackHit) })),
|
|
78
|
-
onKitEvent: (event, { kitEffectState }, { characterId }) => {
|
|
79
|
-
if (event.kind !== "CharacterSwapped") return;
|
|
80
|
-
const summon = findStandingKitSummon(kitEffectState.effects, LIGHTFALL_SUMMON_ID, characterId);
|
|
81
|
-
if (summon === void 0) return;
|
|
82
|
-
const stacks = spendKitResource(kitEffectState, characterId, LIGHTFALL_STACKS_RESOURCE_ID);
|
|
83
|
-
const hit = createLightfallExplosion(stacks, lightfallTriggerDelaySeconds);
|
|
84
|
-
removeKitEffects(kitEffectState, (effect) => effect === summon);
|
|
85
|
-
castKitSummon(kitEffectState, summon.body, summon.combatant, [hit]);
|
|
86
|
-
},
|
|
87
|
-
skill: { hits: [{ onStrike: ({ kitEffectState }, { combatant }) => {
|
|
88
|
-
if (!startKitCooldown(kitEffectState, combatant.characterId, GRIMHEART_ICD_ID, GRIMHEART_ICD_SECONDS)) return;
|
|
89
|
-
gainGrimheartStack(kitEffectState, combatant, grimheartSeconds);
|
|
90
|
-
gainLightfallStack(kitEffectState, combatant);
|
|
91
|
-
} }] },
|
|
92
|
-
skillHolds: [{
|
|
93
|
-
hits: [lightfallStackHit],
|
|
94
|
-
onStart: ({ activeCombatant: combatant, body, kitEffectState }) => {
|
|
95
|
-
const { characterId } = combatant;
|
|
96
|
-
const stacks = countGrimheartStacks(kitEffectState.effects, characterId);
|
|
97
|
-
clearGrimheartStacks(kitEffectState, characterId);
|
|
98
|
-
if (stacks === 0) return;
|
|
99
|
-
const shred = () => ({
|
|
100
|
-
damageTakenBonus: 0,
|
|
101
|
-
id: ICEWHIRL_SHRED_ID,
|
|
102
|
-
physicalResistanceReduction: shredPhysicalResistance,
|
|
103
|
-
resistanceReduction: { ["Ice"]: shredResistance },
|
|
104
|
-
secondsRemaining: shredSecondsPerStack * stacks
|
|
105
|
-
});
|
|
106
|
-
const icewhirls = icewhirlHitmarkSecondsList.slice(0, stacks).map((hitmarkSeconds) => ({
|
|
107
|
-
element: "Ice",
|
|
108
|
-
enemyStatus: shred,
|
|
109
|
-
gauge: 1,
|
|
110
|
-
hitArea: icewhirlArea,
|
|
111
|
-
hitmarkSeconds,
|
|
112
|
-
onStrike: ({ kitEffectState: strikeEffectState }, { combatant: striker }) => gainLightfallStack(strikeEffectState, striker),
|
|
113
|
-
poiseDamage: 0,
|
|
114
|
-
talentMultiplier: icewhirlMultiplier
|
|
115
|
-
}));
|
|
116
|
-
castKitSummon(kitEffectState, body, combatant, icewhirls);
|
|
117
|
-
if (stacks === GRIMHEART_MAX_STACKS && combatant.ascension >= 1) castKitSummon(kitEffectState, body, combatant, [shatteredLightfall]);
|
|
118
|
-
if (combatant.constellationCount >= 1) buffKitMember(kitEffectState, characterId, {
|
|
119
|
-
amount: CONSTELLATION_1_PHYSICAL_BONUS,
|
|
120
|
-
attribute: "FIGHT_PROP_PHYSICAL_ADD_HURT",
|
|
121
|
-
secondsRemaining: CONSTELLATION_1_BASE_SECONDS + CONSTELLATION_1_SECONDS_PER_STACK * stacks,
|
|
122
|
-
source: "eula-c1"
|
|
123
|
-
});
|
|
124
|
-
}
|
|
125
|
-
}]
|
|
126
|
-
};
|
|
127
|
-
};
|
|
128
|
-
//#endregion
|
|
129
|
-
export { createEulaKitBehaviour };
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import "./characterPack-zycIUHje.js";
|
|
2
|
-
import { h as SUMMON_LINGER_SECONDS } from "./constants-BqrUOf2M.js";
|
|
3
|
-
import { buffKitTeam, castKitField, castKitSummon } from "./index.js";
|
|
4
|
-
//#region src/services/kit/characters/faruzanKit.ts
|
|
5
|
-
const WHIRLWIND_GADGET_OFFSETS = [
|
|
6
|
-
{
|
|
7
|
-
forward: 10.5,
|
|
8
|
-
lateral: 5.19
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
forward: 10.5,
|
|
12
|
-
lateral: -5.19
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
forward: 1.5,
|
|
16
|
-
lateral: 0
|
|
17
|
-
}
|
|
18
|
-
];
|
|
19
|
-
const PRAYERFUL_WIND_SOURCE = "faruzan-prayerful-wind";
|
|
20
|
-
const PERFIDIOUS_WIND_RUIN_ID = "faruzan-perfidious-wind-ruin";
|
|
21
|
-
const createOffsetBody = ({ facing, height, position }, { forward, lateral }) => ({
|
|
22
|
-
facing,
|
|
23
|
-
height,
|
|
24
|
-
position: {
|
|
25
|
-
x: position.x - Math.sin(facing) * forward + Math.cos(facing) * lateral,
|
|
26
|
-
z: position.z - Math.cos(facing) * forward - Math.sin(facing) * lateral
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
const createFaruzanKitBehaviour = ({ readHit, readParameter, readSeconds }) => {
|
|
30
|
-
const perfidiousWindRuinResistanceReduction = readParameter("perfidiousWindRuinResistanceReduction");
|
|
31
|
-
const perfidiousWindRuinSeconds = readParameter("perfidiousWindRuinSeconds");
|
|
32
|
-
const prayerfulWindAnemoDamageBonus = readParameter("prayerfulWindAnemoDamageBonus");
|
|
33
|
-
const prayerfulWindSeconds = readParameter("prayerfulWindSeconds");
|
|
34
|
-
const firstWhirlwindPulseSeconds = readSeconds("firstWhirlwindPulse");
|
|
35
|
-
const dazzlingPolyhedronSeconds = readSeconds("dazzlingPolyhedron");
|
|
36
|
-
const whirlwindPulseIntervalSeconds = readSeconds("whirlwindPulseInterval");
|
|
37
|
-
const createPerfidiousWindRuin = () => ({
|
|
38
|
-
damageTakenBonus: 0,
|
|
39
|
-
id: PERFIDIOUS_WIND_RUIN_ID,
|
|
40
|
-
resistanceReduction: { ["Wind"]: perfidiousWindRuinResistanceReduction },
|
|
41
|
-
secondsRemaining: perfidiousWindRuinSeconds
|
|
42
|
-
});
|
|
43
|
-
const whirlwindPulse = readHit("whirlwindPulse", { enemyStatus: createPerfidiousWindRuin });
|
|
44
|
-
const prayerfulWindsGift = {
|
|
45
|
-
amount: prayerfulWindAnemoDamageBonus,
|
|
46
|
-
attribute: "FIGHT_PROP_WIND_ADD_HURT",
|
|
47
|
-
secondsRemaining: prayerfulWindSeconds,
|
|
48
|
-
source: PRAYERFUL_WIND_SOURCE
|
|
49
|
-
};
|
|
50
|
-
const castDazzlingPolyhedron = (kitEffectState, castBody, combatant) => {
|
|
51
|
-
castKitField(kitEffectState, combatant.characterId, castBody.position, {
|
|
52
|
-
nextTickSeconds: firstWhirlwindPulseSeconds,
|
|
53
|
-
onTick: ({ kitEffectState: tickKitEffectState, party }, tickIndex) => {
|
|
54
|
-
buffKitTeam(tickKitEffectState, party, prayerfulWindsGift);
|
|
55
|
-
const gadgetOffset = WHIRLWIND_GADGET_OFFSETS[tickIndex % WHIRLWIND_GADGET_OFFSETS.length];
|
|
56
|
-
if (gadgetOffset) castKitSummon(tickKitEffectState, createOffsetBody(castBody, gadgetOffset), combatant, [whirlwindPulse]);
|
|
57
|
-
},
|
|
58
|
-
secondsRemaining: dazzlingPolyhedronSeconds + SUMMON_LINGER_SECONDS,
|
|
59
|
-
tickIntervalSeconds: whirlwindPulseIntervalSeconds
|
|
60
|
-
});
|
|
61
|
-
};
|
|
62
|
-
return { burst: {
|
|
63
|
-
hits: [{ enemyStatus: createPerfidiousWindRuin }],
|
|
64
|
-
onStart: ({ activeCombatant: combatant, body, kitEffectState, party }) => {
|
|
65
|
-
castDazzlingPolyhedron(kitEffectState, body, combatant);
|
|
66
|
-
buffKitTeam(kitEffectState, party, prayerfulWindsGift);
|
|
67
|
-
}
|
|
68
|
-
} };
|
|
69
|
-
};
|
|
70
|
-
//#endregion
|
|
71
|
-
export { createFaruzanKitBehaviour };
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import "./characterPack-zycIUHje.js";
|
|
2
|
-
import { t as ReactionType } from "./ReactionType-BBSdxyO3.js";
|
|
3
|
-
import { a as ELECTRO_REACTION_TYPES } from "./constants-BqrUOf2M.js";
|
|
4
|
-
import { castKitSummon, changeKitMemberHealth, findStandingKitSummon, scheduleKitTask, startKitCooldown } from "./index.js";
|
|
5
|
-
//#region src/services/kit/characters/fischlKit.ts
|
|
6
|
-
const UNDONE_BE_THY_SINFUL_HEX_ASCENSION = 4;
|
|
7
|
-
const THUNDERING_RETRIBUTION_COOLDOWN_STATUS_ID = "fischl-thundering-retribution-cooldown";
|
|
8
|
-
const THUNDERING_RETRIBUTION_COOLDOWN_SECONDS = .5;
|
|
9
|
-
const GAZE_OF_THE_DEEP_CONSTELLATION = 1;
|
|
10
|
-
const DEVOURER_OF_ALL_SINS_CONSTELLATION = 2;
|
|
11
|
-
const HER_PILGRIMAGE_OF_BLEAK_CONSTELLATION = 4;
|
|
12
|
-
const HER_PILGRIMAGE_OF_BLEAK_HEALTH_SHARE = .2;
|
|
13
|
-
const EVERNIGHT_RAVEN_CONSTELLATION = 6;
|
|
14
|
-
const OZ_SUMMON_ID = "fischl-oz";
|
|
15
|
-
const checkIsElectroReaction = ({ element, reactionType }) => ELECTRO_REACTION_TYPES.has(reactionType) || (reactionType === ReactionType.Swirl || reactionType === ReactionType.Crystallize) && element === "Electric";
|
|
16
|
-
const createFischlKitBehaviour = ({ readHit, readHitFields, readSeconds }) => {
|
|
17
|
-
const ozSummon = readHit("ozSummon");
|
|
18
|
-
const devourerOfAllSins = readHit("devourerOfAllSins");
|
|
19
|
-
const herPilgrimageOfBleak = readHit("herPilgrimageOfBleak");
|
|
20
|
-
const thunderingRetribution = readHit("thunderingRetribution");
|
|
21
|
-
const gazeOfTheDeep = readHit("gazeOfTheDeep");
|
|
22
|
-
const evernightRavenFields = readHitFields("evernightRaven", ["hitArea"]);
|
|
23
|
-
const ozAttack = readHit("ozAttack");
|
|
24
|
-
const ozSpawnSeconds = readSeconds("ozSpawn");
|
|
25
|
-
const ozFirstTickSeconds = readSeconds("ozFirstTick");
|
|
26
|
-
const ozTickIntervalSeconds = readSeconds("ozTickInterval");
|
|
27
|
-
const ozSeconds = readSeconds("ozDuration");
|
|
28
|
-
const evernightRavenExtraSeconds = readSeconds("evernightRavenOzExtension");
|
|
29
|
-
const burstOzSpawnSeconds = readSeconds("burstOzSpawn");
|
|
30
|
-
const burstOzFirstTickSeconds = readSeconds("burstOzFirstTick");
|
|
31
|
-
const swapOzSpawnSeconds = readSeconds("burstShortOzSpawn");
|
|
32
|
-
const swapOzFirstTickSeconds = readSeconds("burstShortOzFirstTick");
|
|
33
|
-
const herPilgrimageOfBleakHealSeconds = readSeconds("herPilgrimageOfBleakHeal");
|
|
34
|
-
const castOz = (kitEffectState, body, combatant, { firstTickSeconds, hits, spawnSeconds }) => {
|
|
35
|
-
for (const effect of kitEffectState.effects) if (effect.kind === "summon" && effect.id === OZ_SUMMON_ID) effect.secondsRemaining = 0;
|
|
36
|
-
const seconds = combatant.constellationCount >= EVERNIGHT_RAVEN_CONSTELLATION ? ozSeconds + evernightRavenExtraSeconds : ozSeconds;
|
|
37
|
-
const ozAttacks = Array.from({ length: Math.ceil((seconds - firstTickSeconds) / ozTickIntervalSeconds) }, (_value, index) => ({
|
|
38
|
-
...ozAttack,
|
|
39
|
-
hitmarkSeconds: spawnSeconds + firstTickSeconds + ozAttack.hitmarkSeconds + ozTickIntervalSeconds * index
|
|
40
|
-
}));
|
|
41
|
-
castKitSummon(kitEffectState, body, combatant, [...hits, ...ozAttacks], {
|
|
42
|
-
id: OZ_SUMMON_ID,
|
|
43
|
-
spawnSeconds
|
|
44
|
-
});
|
|
45
|
-
};
|
|
46
|
-
return {
|
|
47
|
-
burst: { onStart: ({ activeCombatant: combatant, body, kitEffectState }) => {
|
|
48
|
-
castOz(kitEffectState, body, combatant, {
|
|
49
|
-
firstTickSeconds: burstOzFirstTickSeconds,
|
|
50
|
-
hits: [],
|
|
51
|
-
spawnSeconds: burstOzSpawnSeconds
|
|
52
|
-
});
|
|
53
|
-
if (combatant.constellationCount < HER_PILGRIMAGE_OF_BLEAK_CONSTELLATION) return;
|
|
54
|
-
castKitSummon(kitEffectState, body, combatant, [herPilgrimageOfBleak]);
|
|
55
|
-
scheduleKitTask(kitEffectState, combatant.characterId, herPilgrimageOfBleakHealSeconds, (tick) => changeKitMemberHealth(tick, combatant, combatant.characterId, HER_PILGRIMAGE_OF_BLEAK_HEALTH_SHARE * combatant.attributes.maxHealth));
|
|
56
|
-
} },
|
|
57
|
-
onKitEvent: (event, { activeCombatant, body, kitEffectState }, combatant) => {
|
|
58
|
-
const { ascension, characterId, constellationCount } = combatant;
|
|
59
|
-
const { effects } = kitEffectState;
|
|
60
|
-
if (event.kind === "CharacterSwapped") {
|
|
61
|
-
if (event.previousCharacterId !== characterId) return;
|
|
62
|
-
const pendingOz = effects.find((effect) => effect.kind === "summon" && effect.id === OZ_SUMMON_ID && effect.spawnSeconds === burstOzSpawnSeconds && effect.elapsedSeconds < effect.spawnSeconds);
|
|
63
|
-
if (pendingOz) castOz(kitEffectState, pendingOz.body, pendingOz.combatant, {
|
|
64
|
-
firstTickSeconds: swapOzFirstTickSeconds,
|
|
65
|
-
hits: [],
|
|
66
|
-
spawnSeconds: swapOzSpawnSeconds
|
|
67
|
-
});
|
|
68
|
-
} else if (event.kind === "ReactionTriggered") {
|
|
69
|
-
const { enemy, reactions, striker } = event;
|
|
70
|
-
const activeCharacterId = activeCombatant.characterId;
|
|
71
|
-
if (ascension < UNDONE_BE_THY_SINFUL_HEX_ASCENSION || striker.characterId !== activeCharacterId || !reactions.some((reaction) => checkIsElectroReaction(reaction))) return;
|
|
72
|
-
const oz = findStandingKitSummon(effects, OZ_SUMMON_ID, characterId);
|
|
73
|
-
if (!oz || !startKitCooldown(kitEffectState, activeCharacterId, THUNDERING_RETRIBUTION_COOLDOWN_STATUS_ID, THUNDERING_RETRIBUTION_COOLDOWN_SECONDS)) return;
|
|
74
|
-
castKitSummon(kitEffectState, {
|
|
75
|
-
facing: 0,
|
|
76
|
-
height: 0,
|
|
77
|
-
position: enemy.position
|
|
78
|
-
}, oz.combatant, [thunderingRetribution], { attackTag: "ElementalSkill" });
|
|
79
|
-
} else if (event.kind === "NormalAttackLanded") {
|
|
80
|
-
const oz = findStandingKitSummon(effects, OZ_SUMMON_ID, characterId);
|
|
81
|
-
const [normalAttackHit] = event.action.hits;
|
|
82
|
-
if (oz && normalAttackHit && constellationCount >= EVERNIGHT_RAVEN_CONSTELLATION) castKitSummon(kitEffectState, body, oz.combatant, [{
|
|
83
|
-
...ozAttack,
|
|
84
|
-
...evernightRavenFields,
|
|
85
|
-
hitArea: normalAttackHit.hitArea
|
|
86
|
-
}]);
|
|
87
|
-
else if (!oz && activeCombatant.characterId === characterId && constellationCount >= GAZE_OF_THE_DEEP_CONSTELLATION) castKitSummon(kitEffectState, body, combatant, [gazeOfTheDeep]);
|
|
88
|
-
}
|
|
89
|
-
},
|
|
90
|
-
skill: { onStart: ({ activeCombatant: combatant, body, kitEffectState }) => castOz(kitEffectState, body, combatant, {
|
|
91
|
-
firstTickSeconds: ozFirstTickSeconds,
|
|
92
|
-
hits: [combatant.constellationCount >= DEVOURER_OF_ALL_SINS_CONSTELLATION ? devourerOfAllSins : ozSummon],
|
|
93
|
-
spawnSeconds: ozSpawnSeconds
|
|
94
|
-
}) }
|
|
95
|
-
};
|
|
96
|
-
};
|
|
97
|
-
//#endregion
|
|
98
|
-
export { createFischlKitBehaviour };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { enterKitStance } from "./index.js";
|
|
2
|
-
//#region src/services/kit/characters/flinsKit.ts
|
|
3
|
-
const createFlinsKitBehaviour = ({ readParameter, readStance }) => {
|
|
4
|
-
const manifestFlameSeconds = readParameter("manifestFlameSeconds");
|
|
5
|
-
const manifestFlame = readStance("manifestFlame");
|
|
6
|
-
return { skill: { onStart: ({ activeCombatant: combatant, kitEffectState }) => enterKitStance(kitEffectState, combatant, manifestFlame, manifestFlameSeconds, { isEndedOnSwap: true }) } };
|
|
7
|
-
};
|
|
8
|
-
//#endregion
|
|
9
|
-
export { createFlinsKitBehaviour };
|