genshin-world 4.2.0 → 4.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (171) hide show
  1. package/README.md +2 -2
  2. package/dist/ElementDamageBonusAttributeMap-Cf1kBcTu.js +12 -0
  3. package/dist/EnemyState-BdsrVDVv.js +13 -0
  4. package/dist/GameDataset-oS0Tc9KV.js +272 -0
  5. package/dist/KitEventKind-DinObjiq.js +33 -0
  6. package/dist/ReactionType-BTiek5WA.js +36 -0
  7. package/dist/TransformativeReactionType-DYhIEAoe.js +14 -0
  8. package/dist/addKitEffect-DEhZUuxo.js +19 -0
  9. package/dist/addKitStatus-CecgwPmO.js +8 -0
  10. package/dist/ainoKit-Z23iOdpE.js +110 -0
  11. package/dist/albedoKit-h6MSXqhl.js +132 -0
  12. package/dist/alhaithamKit-2VrwmZzn.js +225 -0
  13. package/dist/aloyKit-Dlk_fLbL.js +66 -0
  14. package/dist/alyoshaKit-3ky4aL_z.js +3 -0
  15. package/dist/amberKit-BuYU5ACZ.js +85 -0
  16. package/dist/arlecchinoKit-B2WJP5Y5.js +16 -0
  17. package/dist/ayakaKit-D7K6RdMw.js +84 -0
  18. package/dist/ayatoKit-qQp-Ayun.js +136 -0
  19. package/dist/baizhuKit-9i8Hvfeg.js +81 -0
  20. package/dist/barbaraKit-DMo_2qWo.js +122 -0
  21. package/dist/beidouKit-1lURCwhO.js +89 -0
  22. package/dist/bennettKit-B-ipp-MR.js +75 -0
  23. package/dist/candaceKit-oGYu9t5n.js +92 -0
  24. package/dist/castKitField-BhB1fy3l.js +21 -0
  25. package/dist/characterPack-B3e_YsdJ.d.ts +115 -0
  26. package/dist/characterPack-DzYMqBNM.js +697 -0
  27. package/dist/characterPack.d.ts +2 -0
  28. package/dist/characterPack.js +3 -0
  29. package/dist/charlotteKit-BjNvcN8w.js +103 -0
  30. package/dist/chascaKit-isny33W1.js +52 -0
  31. package/dist/checkIsKitShieldLive-DEn8yb0C.js +3 -0
  32. package/dist/chevreuseKit-BppMndmv.js +47 -0
  33. package/dist/chioriKit-CKfqMVtb.js +30 -0
  34. package/dist/chongyunKit-DeZG-qOb.js +99 -0
  35. package/dist/citlaliKit-BLY9P2cd.js +62 -0
  36. package/dist/clorindeKit-DGNp_1SZ.js +61 -0
  37. package/dist/collectKitEnergyDrops-4kTI3aGH.js +61 -0
  38. package/dist/colleiKit-CVBvP9-k.js +51 -0
  39. package/dist/columbinaKit-BqmNtRDK.js +279 -0
  40. package/dist/computeFacingAngle-DapXsgDc.js +7 -0
  41. package/dist/constants-6NEnGOni.js +186 -0
  42. package/dist/constants-BIXoNz1x.js +73 -0
  43. package/dist/constants-DWgLZz-I.js +45 -0
  44. package/dist/constants-jHIdcxxW.js +3 -0
  45. package/dist/constants-r10WzaUG.js +48 -0
  46. package/dist/consumeKitResource-DknosO6e.js +17 -0
  47. package/dist/countKitResource-CPve-dw2.js +4 -0
  48. package/dist/createWindriseGroundPaint-CtFTL5uW.js +293 -0
  49. package/dist/cynoKit-bhub8RfD.js +203 -0
  50. package/dist/dahliaKit-BeEPFn33.js +20 -0
  51. package/dist/dehyaKit-1qJYvLv-.js +23 -0
  52. package/dist/dilucKit-DslGKmxO.js +166 -0
  53. package/dist/dionaKit-B33zk3GI.js +68 -0
  54. package/dist/doriKit-BmYySQcG.js +24 -0
  55. package/dist/durinKit-CpCXxj-r.js +49 -0
  56. package/dist/emilieKit-BZqz4PVs.js +20 -0
  57. package/dist/emitKitEvent-Cb-ZHu50.js +11 -0
  58. package/dist/escoffierKit-DFRj0Hpo.js +95 -0
  59. package/dist/eulaKit-BzD8ye_S.js +144 -0
  60. package/dist/faruzanKit-C5WQz91G.js +72 -0
  61. package/dist/findKitStatus-Dj_zauGj.js +3 -0
  62. package/dist/fischlKit-e4xAt26v.js +95 -0
  63. package/dist/flinsKit-D82N06z5.js +30 -0
  64. package/dist/freminetKit-Dq9ebIts.js +20 -0
  65. package/dist/furinaKit-CzTKkE0N.js +289 -0
  66. package/dist/gainKitResource-3F1z8Aco.js +14 -0
  67. package/dist/gainPartyMemberEnergy-DUbIxe6i.js +10 -0
  68. package/dist/gamingKit-yxYvslgf.js +25 -0
  69. package/dist/ganyuKit-B2pxzHKL.js +84 -0
  70. package/dist/getActiveCharacterId-D9TtVSWj.js +9 -0
  71. package/dist/getBuffedCombatant-CwXmBrc6.js +94 -0
  72. package/dist/getDeployedCharacterIds-TuIRCNKb.js +3 -0
  73. package/dist/getDeployedCombatants-BQdLjZha.js +16 -0
  74. package/dist/getPartyMember-BAb9wUiz.js +8 -0
  75. package/dist/gorouKit--Luf6-WZ.js +153 -0
  76. package/dist/heizouKit-DRleoyzF.js +49 -0
  77. package/dist/huTaoKit-WDMpqAzD.js +146 -0
  78. package/dist/iansanKit-BPzX4C36.js +145 -0
  79. package/dist/ifaKit-Z57TFRSg.js +39 -0
  80. package/dist/illugaKit-86u4wqrU.js +111 -0
  81. package/dist/index-C5rNBYhp.d.ts +26017 -0
  82. package/dist/index.d.ts +4 -0
  83. package/dist/index.js +48495 -0
  84. package/dist/ineffaKit-D0SA01X2.js +154 -0
  85. package/dist/ittoKit-hM51Mywb.js +132 -0
  86. package/dist/jahodaKit-CqtBpzVS.js +344 -0
  87. package/dist/jeanKit-fwjmnF1v.js +89 -0
  88. package/dist/kachinaKit-Dyh5F-ob.js +6 -0
  89. package/dist/kaeyaKit-SBM0QxJ5.js +91 -0
  90. package/dist/kavehKit-1XyMxtUb.js +33 -0
  91. package/dist/kazuhaKit-C726LLZy.js +76 -0
  92. package/dist/keqingKit-O_V-tx1h.js +100 -0
  93. package/dist/kinichKit-DIVa0P5s.js +71 -0
  94. package/dist/kiraraKit-nS9iOECm.js +70 -0
  95. package/dist/kleeKit-DzbELTyN.js +95 -0
  96. package/dist/kokomiKit-BRzXNRVb.js +83 -0
  97. package/dist/kujouSaraKit-BpN3Ipay.js +95 -0
  98. package/dist/kukiKit-DRdmE41e.js +70 -0
  99. package/dist/lanYanKit-CRK1J-LX.js +26 -0
  100. package/dist/laumaKit-CRc88J5l.js +161 -0
  101. package/dist/laylaKit-B7Pjqgzw.js +180 -0
  102. package/dist/linneaKit-CVZeam_T.js +3 -0
  103. package/dist/lisaKit-BJqj8t7j.js +65 -0
  104. package/dist/lohenKit-BZk4IiPV.js +3 -0
  105. package/dist/lynetteKit-CfwhsLsJ.js +39 -0
  106. package/dist/lyneyKit-BQiI15dt.js +42 -0
  107. package/dist/mavuikaKit-MMBY1DJn.js +21 -0
  108. package/dist/mikaKit-BIMafqBI.js +20 -0
  109. package/dist/mizukiKit-CC34yGgJ.js +57 -0
  110. package/dist/monaKit-BlrXXHlB.js +145 -0
  111. package/dist/mualaniKit-BUTB11j2.js +6 -0
  112. package/dist/nahidaKit-ZHrD7-m7.js +112 -0
  113. package/dist/naviaKit-DDttg5Dp.js +139 -0
  114. package/dist/neferKit-Z-QBM46z.js +29 -0
  115. package/dist/neuvilletteKit-B4EhID2O.js +117 -0
  116. package/dist/nicoleKit-Dmrpe0yU.js +281 -0
  117. package/dist/nilouKit-CoztU-uZ.js +104 -0
  118. package/dist/ningguangKit-BGOXmwd-.js +112 -0
  119. package/dist/noelleKit-nl5ar8f1.js +147 -0
  120. package/dist/odetteKit-Bu1W8GX7.js +101 -0
  121. package/dist/ororonKit-CboDk9B8.js +91 -0
  122. package/dist/pruneKit-xgQ9cym6.js +34 -0
  123. package/dist/qiqiKit-lz_qLyLu.js +104 -0
  124. package/dist/raidenKit-CVTi4bpy.js +152 -0
  125. package/dist/razorKit-BHyrlVEl.js +121 -0
  126. package/dist/readCharacterAvatar-xauJoD8Q.js +291 -0
  127. package/dist/removeKitEffects-Csap9Xyn.js +5 -0
  128. package/dist/rosariaKit-DEpP8gj7.js +59 -0
  129. package/dist/sandroneKit-C7vjjwWY.js +3 -0
  130. package/dist/save-W-sjOoN_.js +2475 -0
  131. package/dist/save.d.ts +2 -0
  132. package/dist/save.js +1 -0
  133. package/dist/sayuKit-DQbPlL_6.js +67 -0
  134. package/dist/sceneExport-3Se7hlVa.js +26 -0
  135. package/dist/sceneExport-C-q_cRxm.d.ts +57 -0
  136. package/dist/sceneExport.d.ts +2 -0
  137. package/dist/sceneExport.js +1 -0
  138. package/dist/sethosKit-o-Tz2GFI.js +6 -0
  139. package/dist/shenheKit-Xu_rt5aN.js +152 -0
  140. package/dist/sigewinneKit-NOWCcIW4.js +21 -0
  141. package/dist/skirkKit-CK183sCe.js +9 -0
  142. package/dist/spendKitResource-CC5kZDgu.js +9 -0
  143. package/dist/style.css +4570 -0
  144. package/dist/sucroseKit-Brr_FwwP.js +124 -0
  145. package/dist/tartagliaKit-DQzYxDRn.js +136 -0
  146. package/dist/terrainTileWorker.d.ts +1 -0
  147. package/dist/terrainTileWorker.js +80 -0
  148. package/dist/thomaKit-CesNlmDH.js +95 -0
  149. package/dist/tighnariKit-B9BZlgE9.js +45 -0
  150. package/dist/varesaKit-D5iKxzdo.js +36 -0
  151. package/dist/varkaKit-CNpU_rb3.js +3 -0
  152. package/dist/ventiKit-CM94zgZy.js +52 -0
  153. package/dist/vesnaKit-DtGBZlNW.js +3 -0
  154. package/dist/vodyanitsaKit-BurO3Fqh.js +3 -0
  155. package/dist/wandererKit-CW3sLw53.js +8 -0
  156. package/dist/wriothesleyKit-CPwNVWnr.js +102 -0
  157. package/dist/xianglingKit-DAFhr2LW.js +113 -0
  158. package/dist/xianyunKit-G4ateSub.js +107 -0
  159. package/dist/xiaoKit-CQljYrZS.js +104 -0
  160. package/dist/xilonenKit-39u8vLuk.js +41 -0
  161. package/dist/xingqiuKit-nURrQ7vt.js +126 -0
  162. package/dist/xinyanKit-DU0WpVms.js +144 -0
  163. package/dist/yaeMikoKit-kSDqAFyn.js +56 -0
  164. package/dist/yanfeiKit-Cst973qA.js +118 -0
  165. package/dist/yaoyaoKit-6yjjf3np.js +201 -0
  166. package/dist/yelanKit-SSdzqMQa.js +78 -0
  167. package/dist/yoimiyaKit-DqiQvgAt.js +90 -0
  168. package/dist/yunjinKit-lCP6TTRP.js +86 -0
  169. package/dist/zhongliKit-CTjDWUoW.js +109 -0
  170. package/dist/zibaiKit-CatYt9BG.js +62 -0
  171. package/package.json +11 -14
@@ -0,0 +1,166 @@
1
+ import "./GameDataset-oS0Tc9KV.js";
2
+ import { t as addKitEffect } from "./addKitEffect-DEhZUuxo.js";
3
+ import { t as findKitStatus } from "./findKitStatus-Dj_zauGj.js";
4
+ import { t as addKitStatus } from "./addKitStatus-CecgwPmO.js";
5
+ import { buffKitMember, castKitSummon, checkIsKitStatusActive, checkIsStrikeOn } from "./index.js";
6
+ import { takeOne } from "@esposter/shared";
7
+ // src/services/kit/characters/dilucKit.ts
8
+ const DILUC_INFUSION_SECONDS = 8;
9
+ const DILUC_A4_EXTRA_INFUSION_SECONDS = 4;
10
+ const DILUC_A4_PYRO_DAMAGE_BONUS = .2;
11
+ const DILUC_RELENTLESS_ASCENSION = 1;
12
+ const DILUC_RELENTLESS_STAMINA_MULTIPLIER = .5;
13
+ const DAWN_SPAWN_METRES = 1;
14
+ const DAWN_METRES_PER_SECOND = 14;
15
+ const DAWN_TICK_COUNT = 8;
16
+ const DAWN_EXPLOSION_SECONDS = 1.7;
17
+ const CONSTELLATION_4 = 4;
18
+ const CONSTELLATION_4_DAMAGE_BONUS = .4;
19
+ const CONSTELLATION_4_SECONDS = 2;
20
+ const CONSTELLATION_4_STATUS_ID = "diluc-constellation-4-press";
21
+ const CONSTELLATION_6 = 6;
22
+ const CONSTELLATION_6_BONUS = .3;
23
+ const CONSTELLATION_6_SECONDS = 6;
24
+ const CONSTELLATION_6_ATTACKS = 2;
25
+ const CONSTELLATION_6_ARMED_STATUS_ID = "diluc-constellation-6-armed";
26
+ const CONSTELLATION_6_ATTACK_STATUS_ID = "diluc-constellation-6-attack";
27
+ const CONSTELLATION_1 = 1;
28
+ const CONSTELLATION_1_DAMAGE_BONUS = .15;
29
+ const CONSTELLATION_1_HEALTH_SHARE = .5;
30
+ const CONSTELLATION_2 = 2;
31
+ const CONSTELLATION_2_ATTACK_BONUS_PER_STACK = .1;
32
+ const CONSTELLATION_2_ATTACK_SPEED_BONUS_PER_STACK = .05;
33
+ const CONSTELLATION_2_STACK_CAP = 3;
34
+ const CONSTELLATION_2_SECONDS = 10;
35
+ const CONSTELLATION_2_INTERVAL_SECONDS = 1.5;
36
+ const CONSTELLATION_2_STACK_STATUS_ID = "diluc-constellation-2-stacks";
37
+ const CONSTELLATION_2_INTERVAL_STATUS_ID = "diluc-constellation-2-interval";
38
+ const CONSTELLATION_2_SOURCE = "diluc-constellation-2";
39
+ const addSearingEmberStack = (kitEffectState, characterId) => {
40
+ const previousStacks = checkIsKitStatusActive(kitEffectState.effects, characterId, CONSTELLATION_2_STACK_STATUS_ID) ? findKitStatus(kitEffectState.effects, characterId, CONSTELLATION_2_STACK_STATUS_ID)?.stacks ?? 0 : 0;
41
+ const stacks = Math.min(CONSTELLATION_2_STACK_CAP, previousStacks + 1);
42
+ addKitStatus(kitEffectState, characterId, {
43
+ id: CONSTELLATION_2_STACK_STATUS_ID,
44
+ secondsRemaining: CONSTELLATION_2_SECONDS,
45
+ stacks
46
+ });
47
+ buffKitMember(kitEffectState, characterId, {
48
+ amount: stacks * CONSTELLATION_2_ATTACK_BONUS_PER_STACK,
49
+ attribute: "FIGHT_PROP_ATTACK_PERCENT",
50
+ secondsRemaining: CONSTELLATION_2_SECONDS,
51
+ source: CONSTELLATION_2_SOURCE
52
+ });
53
+ buffKitMember(kitEffectState, characterId, {
54
+ amount: stacks * CONSTELLATION_2_ATTACK_SPEED_BONUS_PER_STACK,
55
+ attribute: "FIGHT_PROP_NORMAL_ATTACK_SPEED",
56
+ secondsRemaining: CONSTELLATION_2_SECONDS,
57
+ source: CONSTELLATION_2_SOURCE
58
+ });
59
+ };
60
+ const createSearingOnslaughtPress = (isFollowUp) => ({ activeCombatant: combatant, kitEffectState }) => {
61
+ const { characterId, constellationCount } = combatant;
62
+ if (constellationCount >= CONSTELLATION_4) {
63
+ const isWithinTwoSeconds = checkIsKitStatusActive(kitEffectState.effects, characterId, CONSTELLATION_4_STATUS_ID);
64
+ addKitStatus(kitEffectState, characterId, {
65
+ id: CONSTELLATION_4_STATUS_ID,
66
+ secondsRemaining: CONSTELLATION_4_SECONDS,
67
+ stacks: isFollowUp && !isWithinTwoSeconds ? 1 : 0
68
+ });
69
+ }
70
+ if (constellationCount >= CONSTELLATION_6) addKitStatus(kitEffectState, characterId, {
71
+ id: CONSTELLATION_6_ARMED_STATUS_ID,
72
+ secondsRemaining: CONSTELLATION_6_SECONDS,
73
+ stacks: CONSTELLATION_6_ATTACKS
74
+ });
75
+ };
76
+ const createNormalAttackStart = (seconds) => ({ activeCombatant: combatant, kitEffectState }) => {
77
+ if (combatant.constellationCount < CONSTELLATION_6) return;
78
+ const { characterId } = combatant;
79
+ const armed = findKitStatus(kitEffectState.effects, characterId, CONSTELLATION_6_ARMED_STATUS_ID);
80
+ const armedStacks = armed?.stacks ?? 0;
81
+ const isBuffed = checkIsKitStatusActive(kitEffectState.effects, characterId, CONSTELLATION_6_ARMED_STATUS_ID) && armedStacks > 0;
82
+ if (isBuffed && armed) addKitStatus(kitEffectState, characterId, {
83
+ id: CONSTELLATION_6_ARMED_STATUS_ID,
84
+ secondsRemaining: armed.secondsRemaining,
85
+ stacks: armedStacks - 1
86
+ });
87
+ addKitStatus(kitEffectState, characterId, {
88
+ id: CONSTELLATION_6_ATTACK_STATUS_ID,
89
+ secondsRemaining: isBuffed ? seconds : 0
90
+ });
91
+ };
92
+ const checkIsConstellation6Buffed = (characterId, effects) => checkIsKitStatusActive(effects, characterId, CONSTELLATION_6_ATTACK_STATUS_ID);
93
+ const getConstellation4DamageBonus = ({ attackTag, combatant }, effects) => combatant.constellationCount >= CONSTELLATION_4 && attackTag === "ElementalSkill" && checkIsKitStatusActive(effects, combatant.characterId, CONSTELLATION_4_STATUS_ID) && findKitStatus(effects, combatant.characterId, CONSTELLATION_4_STATUS_ID)?.stacks === 1 ? CONSTELLATION_4_DAMAGE_BONUS : 0;
94
+ const createDilucKitBehaviour = ({ kit, readArea, readHitFields, readParameter, readSeconds }) => {
95
+ const launchSeconds = takeOne(kit.elementalBurst.hits).hitmarkSeconds;
96
+ const dawnPhoenixFields = readHitFields("dawnPhoenixHit", [
97
+ "hitArea",
98
+ "hitmarkSeconds",
99
+ "talentMultiplier"
100
+ ]);
101
+ const dawnTickArea = readArea("dawnTick");
102
+ const dawnTickIntervalSeconds = readSeconds("dawnTickInterval");
103
+ const dawnTickMultiplier = readParameter("dawnTickMultiplier");
104
+ const dawnPhoenixTicks = Array.from({ length: DAWN_TICK_COUNT }, (_value, index) => ({
105
+ ...dawnPhoenixFields,
106
+ hitArea: dawnTickArea,
107
+ hitmarkSeconds: launchSeconds + dawnTickIntervalSeconds * (index + 1),
108
+ talentMultiplier: dawnTickMultiplier
109
+ }));
110
+ const dawnPhoenixExplosion = {
111
+ ...dawnPhoenixFields,
112
+ hitArea: readArea("dawnExplosion"),
113
+ hitmarkSeconds: launchSeconds + DAWN_EXPLOSION_SECONDS,
114
+ talentMultiplier: readParameter("dawnExplosionMultiplier")
115
+ };
116
+ return {
117
+ burst: { onStart: ({ activeCombatant: combatant, body: { facing, height, position }, kitEffectState }) => {
118
+ const hasA4 = combatant.ascension >= 4;
119
+ const secondsRemaining = DILUC_INFUSION_SECONDS + (hasA4 ? DILUC_A4_EXTRA_INFUSION_SECONDS : 0);
120
+ addKitEffect(kitEffectState, {
121
+ characterId: combatant.characterId,
122
+ element: "Fire",
123
+ kind: "infusion",
124
+ secondsRemaining
125
+ });
126
+ if (hasA4) buffKitMember(kitEffectState, combatant.characterId, {
127
+ amount: DILUC_A4_PYRO_DAMAGE_BONUS,
128
+ attribute: "FIGHT_PROP_FIRE_ADD_HURT",
129
+ secondsRemaining
130
+ });
131
+ castKitSummon(kitEffectState, {
132
+ facing,
133
+ height,
134
+ position: {
135
+ x: position.x - Math.sin(facing) * DAWN_SPAWN_METRES,
136
+ z: position.z - Math.cos(facing) * DAWN_SPAWN_METRES
137
+ }
138
+ }, combatant, [...dawnPhoenixTicks, dawnPhoenixExplosion], {
139
+ attackTag: "ElementalBurst",
140
+ travel: {
141
+ metresPerSecond: DAWN_METRES_PER_SECOND,
142
+ startSeconds: launchSeconds
143
+ }
144
+ });
145
+ } },
146
+ getChargedAttackStaminaMultiplier: ({ activeCombatant }) => activeCombatant.ascension >= DILUC_RELENTLESS_ASCENSION ? DILUC_RELENTLESS_STAMINA_MULTIPLIER : 1,
147
+ getNormalAttackSpeedBonus: ({ activeCombatant, kitEffectState }) => activeCombatant.constellationCount >= CONSTELLATION_6 && checkIsConstellation6Buffed(activeCombatant.characterId, kitEffectState.effects) ? CONSTELLATION_6_BONUS : 0,
148
+ getStrikeDamageBonus: (strike, enemy, _party, effects) => (strike.combatant.constellationCount >= CONSTELLATION_1 && enemy.health > enemy.maxHealth * CONSTELLATION_1_HEALTH_SHARE ? CONSTELLATION_1_DAMAGE_BONUS : 0) + getConstellation4DamageBonus(strike, effects) + (strike.combatant.constellationCount >= CONSTELLATION_6 && strike.attackTag === "NormalAttack" && checkIsConstellation6Buffed(strike.combatant.characterId, effects) ? CONSTELLATION_6_BONUS : 0),
149
+ keepsNormalAttackCombo: ({ activeCombatant }, action) => activeCombatant.constellationCount >= CONSTELLATION_6 && (action === kit.elementalSkill || kit.elementalSkillChain?.followUps.includes(action) === true),
150
+ normalAttacks: kit.normalAttacks.map((action) => ({ onStart: createNormalAttackStart(action.seconds) })),
151
+ onKitEvent: (event, { kitEffectState }, combatant) => {
152
+ if (combatant.constellationCount < CONSTELLATION_2) return;
153
+ const { characterId } = combatant;
154
+ if (!checkIsStrikeOn(event, characterId)) return;
155
+ if (checkIsKitStatusActive(kitEffectState.effects, characterId, CONSTELLATION_2_INTERVAL_STATUS_ID)) return;
156
+ addKitStatus(kitEffectState, characterId, {
157
+ id: CONSTELLATION_2_INTERVAL_STATUS_ID,
158
+ secondsRemaining: CONSTELLATION_2_INTERVAL_SECONDS
159
+ });
160
+ addSearingEmberStack(kitEffectState, characterId);
161
+ },
162
+ skill: { onStart: createSearingOnslaughtPress(false) },
163
+ skillChain: kit.elementalSkillChain?.followUps.map(() => ({ onStart: createSearingOnslaughtPress(true) }))
164
+ };
165
+ };
166
+ export { createDilucKitBehaviour };
@@ -0,0 +1,68 @@
1
+ import "./GameDataset-oS0Tc9KV.js";
2
+ import { t as gainPartyMemberEnergy } from "./gainPartyMemberEnergy-DUbIxe6i.js";
3
+ import "./KitEventKind-DinObjiq.js";
4
+ import { t as castKitField } from "./castKitField-BhB1fy3l.js";
5
+ import { castKitShield, castKitSummon, changeKitMemberHealth, getKitMaxHealth } from "./index.js";
6
+ import { takeOne } from "@esposter/shared";
7
+ // src/services/kit/characters/dionaKit.ts
8
+ const SIGNATURE_MIX_FIELD_RADIUS = 7;
9
+ const SIGNATURE_MIX_TICK_SECONDS = 2;
10
+ const SIGNATURE_MIX_FIELD_MARGIN_SECONDS = .5;
11
+ const SIGNATURE_MIX_FIELD_ID = "diona-signature-mix-field";
12
+ const SHIELD_CONSTELLATION = 2;
13
+ const SHIELD_CONSTELLATION_MULTIPLIER = 1.15;
14
+ const SIGNATURE_MIX_CONSTELLATION = 1;
15
+ const SIGNATURE_MIX_CONSTELLATION_ENERGY = 15;
16
+ const DRUNKARDS_FARCE_ASCENSION = 4;
17
+ const DRUNKARDS_FARCE_STATUS = {
18
+ attackReduction: .1,
19
+ damageTakenBonus: 0,
20
+ id: "diona-drunkards-farce",
21
+ secondsRemaining: 15
22
+ };
23
+ const getDrunkardsFarceStatus = ({ ascension }) => ascension >= DRUNKARDS_FARCE_ASCENSION ? DRUNKARDS_FARCE_STATUS : void 0;
24
+ const createDionaKitBehaviour = ({ kit, readHits, readParameter }) => {
25
+ const shieldMaxHealthShare = readParameter("shieldMaxHealthShare");
26
+ const shieldFlatHealth = readParameter("shieldFlatHealth");
27
+ const shieldSeconds = readParameter("shieldSeconds");
28
+ const holdShieldMultiplier = readParameter("holdShieldMultiplier");
29
+ const signatureMixHealMaxHealthShare = readParameter("signatureMixHealMaxHealthShare");
30
+ const signatureMixHealFlatHealth = readParameter("signatureMixHealFlatHealth");
31
+ const signatureMixSeconds = readParameter("signatureMixSeconds") + SIGNATURE_MIX_FIELD_MARGIN_SECONDS;
32
+ const signatureMixTicks = readHits("signatureMixTicks", { enemyStatus: getDrunkardsFarceStatus });
33
+ const signatureMixHitmarkSeconds = takeOne(kit.elementalBurst.hits).hitmarkSeconds;
34
+ const castShield = (context, combatant, strengthMultiplier) => {
35
+ const { characterIdCombatantMap, kitEffectState, party } = context;
36
+ const maxHealth = getKitMaxHealth(combatant, kitEffectState.effects, party, characterIdCombatantMap);
37
+ return castKitShield(context, combatant.characterId, {
38
+ element: "Ice",
39
+ health: (shieldMaxHealthShare * maxHealth + shieldFlatHealth) * strengthMultiplier * (combatant.constellationCount >= SHIELD_CONSTELLATION ? SHIELD_CONSTELLATION_MULTIPLIER : 1),
40
+ secondsRemaining: shieldSeconds
41
+ });
42
+ };
43
+ return {
44
+ burst: {
45
+ hits: [{ enemyStatus: getDrunkardsFarceStatus }],
46
+ onStart: ({ activeCombatant: combatant, body, kitEffectState }) => {
47
+ castKitField(kitEffectState, combatant.characterId, body.position, {
48
+ id: SIGNATURE_MIX_FIELD_ID,
49
+ nextTickSeconds: signatureMixHitmarkSeconds + SIGNATURE_MIX_TICK_SECONDS,
50
+ onTick: (tick) => changeKitMemberHealth(tick, combatant, tick.activeCombatant.characterId, signatureMixHealMaxHealthShare * getKitMaxHealth(combatant, tick.kitEffectState.effects, tick.party, tick.characterIdCombatantMap) + signatureMixHealFlatHealth),
51
+ radius: SIGNATURE_MIX_FIELD_RADIUS,
52
+ secondsRemaining: signatureMixSeconds,
53
+ tickIntervalSeconds: SIGNATURE_MIX_TICK_SECONDS
54
+ });
55
+ castKitSummon(kitEffectState, body, combatant, signatureMixTicks, {
56
+ attackTag: "ElementalBurst",
57
+ secondsRemaining: signatureMixSeconds
58
+ });
59
+ }
60
+ },
61
+ onKitEvent: (event, { party }, combatant) => {
62
+ if (event.kind === "EffectExpired" && event.effect.kind === "field" && event.effect.id === SIGNATURE_MIX_FIELD_ID && event.effect.characterId === combatant.characterId && combatant.constellationCount >= SIGNATURE_MIX_CONSTELLATION) gainPartyMemberEnergy(party, combatant, SIGNATURE_MIX_CONSTELLATION_ENERGY);
63
+ },
64
+ skill: { onStart: (context) => castShield(context, context.activeCombatant, 1) },
65
+ skillHolds: [{ onStart: (context) => castShield(context, context.activeCombatant, holdShieldMultiplier) }]
66
+ };
67
+ };
68
+ export { createDionaKitBehaviour };
@@ -0,0 +1,24 @@
1
+ import { t as castKitField } from "./castKitField-BhB1fy3l.js";
2
+ import { castKitSummon, createAheadBody } from "./index.js";
3
+ // src/services/kit/characters/doriKit.ts
4
+ const CONNECTOR_FIELD_RADIUS = 10;
5
+ const CONNECTOR_AHEAD_METRES = 5;
6
+ const createDoriKitBehaviour = ({ readHit, readSeconds }) => {
7
+ const connector = readHit("connector");
8
+ const connectorFirstTickSeconds = readSeconds("connectorFirstTick");
9
+ const connectorTickIntervalSeconds = readSeconds("connectorTickInterval");
10
+ const connectorSeconds = readSeconds("connector");
11
+ return { burst: { onStart: ({ activeCombatant: combatant, body, kitEffectState }) => {
12
+ const spot = createAheadBody(body, CONNECTOR_AHEAD_METRES);
13
+ castKitField(kitEffectState, combatant.characterId, spot.position, {
14
+ nextTickSeconds: connectorFirstTickSeconds,
15
+ onTick: ({ kitEffectState: tickEffectState }) => {
16
+ castKitSummon(tickEffectState, spot, combatant, [connector], { attackTag: "ElementalBurst" });
17
+ },
18
+ radius: CONNECTOR_FIELD_RADIUS,
19
+ secondsRemaining: connectorSeconds,
20
+ tickIntervalSeconds: connectorTickIntervalSeconds
21
+ });
22
+ } } };
23
+ };
24
+ export { createDoriKitBehaviour };
@@ -0,0 +1,49 @@
1
+ import { t as gainPartyMemberEnergy } from "./gainPartyMemberEnergy-DUbIxe6i.js";
2
+ import { t as addKitStatus } from "./addKitStatus-CecgwPmO.js";
3
+ import { castKitSummon, checkHasKitStatus, createKitBody, enterKitStance, startKitCooldown } from "./index.js";
4
+ // src/services/kit/characters/durinKit.ts
5
+ const BLACK_STATUS_SECONDS = 30;
6
+ const BLACK_STATUS_ID = "denial-of-darkness";
7
+ const SKILL_ENERGY_ICD_SECONDS = 6;
8
+ const SKILL_ENERGY_ICD_STATUS_ID = "durin-skill-energy-icd";
9
+ const DRAGON_SUMMON_ID = "durin-dragon";
10
+ const createDragonOnStart = (hits) => ({ activeCombatant: combatant, body, kitEffectState }, target) => {
11
+ for (const effect of kitEffectState.effects) if (effect.kind === "summon" && effect.id === DRAGON_SUMMON_ID && effect.combatant.characterId === combatant.characterId) effect.secondsRemaining = 0;
12
+ castKitSummon(kitEffectState, target ? createKitBody(target.position) : body, combatant, hits, {
13
+ attackTag: "ElementalBurst",
14
+ id: DRAGON_SUMMON_ID
15
+ });
16
+ };
17
+ const endWindow = ({ activeCombatant: combatant, kitEffectState }) => {
18
+ for (const effect of kitEffectState.effects) if (effect.kind === "stance" && effect.characterId === combatant.characterId) effect.secondsRemaining = 0;
19
+ };
20
+ const createDurinKitBehaviour = ({ kit, readHits, readParameter, readStance }) => {
21
+ const windowSeconds = kit.elementalSkillChain?.windowSeconds ?? 0;
22
+ const recastEnergy = readParameter("recastEnergy");
23
+ const gainRecastEnergy = ({ activeCombatant: combatant, kitEffectState, party }) => {
24
+ if (!startKitCooldown(kitEffectState, combatant.characterId, SKILL_ENERGY_ICD_STATUS_ID, SKILL_ENERGY_ICD_SECONDS)) return;
25
+ gainPartyMemberEnergy(party, combatant, recastEnergy);
26
+ };
27
+ const recastWindow = readStance("recastWindow", { normalAttacks: [{ onStart: (start) => {
28
+ endWindow(start);
29
+ gainRecastEnergy(start);
30
+ addKitStatus(start.kitEffectState, start.activeCombatant.characterId, {
31
+ id: BLACK_STATUS_ID,
32
+ secondsRemaining: BLACK_STATUS_SECONDS
33
+ });
34
+ } }] });
35
+ return {
36
+ burst: { onStart: createDragonOnStart(readHits("whiteDragonTicks")) },
37
+ burstVariant: {
38
+ checkIsActive: ({ activeCombatant: combatant, kitEffectState }) => checkHasKitStatus(kitEffectState.effects, combatant.characterId, BLACK_STATUS_ID),
39
+ onStart: createDragonOnStart(readHits("blackDragonTicks"))
40
+ },
41
+ skill: { onStart: ({ activeCombatant: combatant, kitEffectState }) => enterKitStance(kitEffectState, combatant, recastWindow, windowSeconds) },
42
+ skillChain: [{ onStart: (start) => {
43
+ endWindow(start);
44
+ gainRecastEnergy(start);
45
+ for (const effect of start.kitEffectState.effects) if (effect.kind === "status" && effect.id === BLACK_STATUS_ID && effect.characterId === start.activeCombatant.characterId) effect.secondsRemaining = 0;
46
+ } }]
47
+ };
48
+ };
49
+ export { createDurinKitBehaviour };
@@ -0,0 +1,20 @@
1
+ import "./GameDataset-oS0Tc9KV.js";
2
+ import "./index.js";
3
+ // 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
+ export { createEmilieKitBehaviour };
@@ -0,0 +1,11 @@
1
+ import { t as getDeployedCharacterIds } from "./getDeployedCharacterIds-TuIRCNKb.js";
2
+ // src/services/kit/emitKitEvent.ts
3
+ const emitKitEvent = (event, context) => {
4
+ const { characterIdCombatantMap, kitEffectState, party } = context;
5
+ for (const characterId of getDeployedCharacterIds(party)) {
6
+ const combatant = characterIdCombatantMap.get(characterId);
7
+ combatant?.kit.onKitEvent?.(event, context, combatant);
8
+ }
9
+ for (const effect of kitEffectState.effects) if (effect.kind === "field") effect.onEvent?.(event, effect);
10
+ };
11
+ export { emitKitEvent as t };
@@ -0,0 +1,95 @@
1
+ import "./GameDataset-oS0Tc9KV.js";
2
+ import { t as addKitStatus } from "./addKitStatus-CecgwPmO.js";
3
+ import { t as castKitField } from "./castKitField-BhB1fy3l.js";
4
+ import { castKitSummon, changeKitMemberHealth, checkIsKitStatusActive, countDeployedElements, getKitHitElement, startKitCooldown } from "./index.js";
5
+ import { takeOne } from "@esposter/shared";
6
+ import "vue";
7
+ // src/services/kit/characters/escoffierKit.ts
8
+ const ALIGNED_INTERVAL_STATUS_ID = "escoffier-aligned-icd";
9
+ const BURST_HEAL_FIELD_ID = "escoffier-scoring-cuts-heal";
10
+ const REHAB_DIET_SCALING = 1.3824;
11
+ const REHAB_DIET_FIELD_ID = "escoffier-rehab-diet";
12
+ const REHAB_DIET_ASCENSION = 1;
13
+ const ASCENSION_4 = 4;
14
+ const ASCENSION_4_RES_SHREDS = [
15
+ 0,
16
+ .05,
17
+ .1,
18
+ .15,
19
+ .55
20
+ ];
21
+ const ASCENSION_4_SECONDS = 12;
22
+ const ASCENSION_4_STATUS_ID = "escoffier-ascension-4-res-shred";
23
+ const CONSTELLATION_1 = 1;
24
+ const CONSTELLATION_1_CRITICAL_DAMAGE = .6;
25
+ const CONSTELLATION_1_SECONDS = 15;
26
+ const CONSTELLATION_1_STATUS_ID = "escoffier-constellation-1-cryo-crit-dmg";
27
+ const CRYO_HYDRO_ELEMENTS = ["Ice", "Water"];
28
+ const checkIsCryoHydroTeam = (deployedElements) => deployedElements !== void 0 && deployedElements.length > 0 && countDeployedElements(deployedElements, CRYO_HYDRO_ELEMENTS) === deployedElements.length;
29
+ const startConstellation1 = (combatant, kitEffectState) => {
30
+ if (combatant.constellationCount < CONSTELLATION_1 || combatant.ascension < ASCENSION_4 || !checkIsCryoHydroTeam(combatant.deployedElements)) return;
31
+ addKitStatus(kitEffectState, combatant.characterId, {
32
+ id: CONSTELLATION_1_STATUS_ID,
33
+ secondsRemaining: CONSTELLATION_1_SECONDS
34
+ });
35
+ };
36
+ const getConstellation1CriticalDamage = (ownerCharacterId, striker, hit, effects) => getKitHitElement(hit, striker) === "Ice" && checkIsKitStatusActive(effects, ownerCharacterId, CONSTELLATION_1_STATUS_ID) ? CONSTELLATION_1_CRITICAL_DAMAGE : 0;
37
+ const getAscension4Status = (combatant) => {
38
+ const shred = ASCENSION_4_RES_SHREDS[countDeployedElements(combatant.deployedElements, CRYO_HYDRO_ELEMENTS)];
39
+ if (combatant.ascension < ASCENSION_4 || !shred) return void 0;
40
+ return {
41
+ damageTakenBonus: 0,
42
+ id: ASCENSION_4_STATUS_ID,
43
+ resistanceReduction: {
44
+ ["Ice"]: shred,
45
+ ["Water"]: shred
46
+ },
47
+ secondsRemaining: ASCENSION_4_SECONDS
48
+ };
49
+ };
50
+ const createEscoffierKitBehaviour = ({ kit, readHit, readHits, readParameter, readSeconds }) => {
51
+ const skillTickHits = readHits("frostyParfaitTicks", { enemyStatus: getAscension4Status });
52
+ const surgingBladeHit = readHit("surgingBlade", { enemyStatus: getAscension4Status });
53
+ const alignedIntervalSeconds = readParameter("alignedIntervalSeconds");
54
+ const burstHealFlat = readParameter("scoringCutsFlatHeal");
55
+ const burstHealAttackShare = readParameter("scoringCutsHealAttackShare");
56
+ const burstHealSeconds = readSeconds("burstHeal");
57
+ const burstRadius = takeOne(kit.elementalBurst.hits).hitArea.radius;
58
+ const rehabDietFirstTickSeconds = readSeconds("rehabDietFirstTick");
59
+ const rehabDietIntervalSeconds = readSeconds("rehabDietInterval");
60
+ const rehabDietLastTickSeconds = readSeconds("rehabDietLastTick");
61
+ return {
62
+ burst: {
63
+ hits: [{ enemyStatus: getAscension4Status }],
64
+ onStart: ({ activeCombatant: combatant, body, kitEffectState }) => {
65
+ startConstellation1(combatant, kitEffectState);
66
+ castKitField(kitEffectState, combatant.characterId, body.position, {
67
+ id: BURST_HEAL_FIELD_ID,
68
+ nextTickSeconds: burstHealSeconds,
69
+ onTick: (tick) => changeKitMemberHealth(tick, combatant, tick.activeCombatant.characterId, burstHealFlat + burstHealAttackShare * combatant.attributes.attack),
70
+ radius: burstRadius,
71
+ secondsRemaining: burstHealSeconds + .5,
72
+ tickIntervalSeconds: 1
73
+ });
74
+ if (combatant.ascension < REHAB_DIET_ASCENSION) return;
75
+ castKitField(kitEffectState, combatant.characterId, body.position, {
76
+ id: REHAB_DIET_FIELD_ID,
77
+ nextTickSeconds: rehabDietFirstTickSeconds,
78
+ onTick: (tick) => changeKitMemberHealth(tick, combatant, tick.activeCombatant.characterId, REHAB_DIET_SCALING * combatant.attributes.attack),
79
+ radius: burstRadius,
80
+ secondsRemaining: rehabDietLastTickSeconds + .5,
81
+ tickIntervalSeconds: rehabDietIntervalSeconds
82
+ });
83
+ }
84
+ },
85
+ getPartyStrikeBonus: (member, { combatant, hit }, _enemy, _party, effects) => ({ criticalDamageBonus: getConstellation1CriticalDamage(member.characterId, combatant, hit, effects) }),
86
+ getStrikeCriticalDamageBonus: ({ combatant, hit }, _enemy, _party, effects) => getConstellation1CriticalDamage(combatant.characterId, combatant, hit, effects),
87
+ skill: { onStart: ({ activeCombatant: combatant, body, kitEffectState }) => {
88
+ startConstellation1(combatant, kitEffectState);
89
+ castKitSummon(kitEffectState, body, combatant, skillTickHits, { attackTag: "ElementalSkill" });
90
+ if (!startKitCooldown(kitEffectState, combatant.characterId, ALIGNED_INTERVAL_STATUS_ID, alignedIntervalSeconds)) return;
91
+ castKitSummon(kitEffectState, body, combatant, [surgingBladeHit], { attackTag: "ElementalSkill" });
92
+ } }
93
+ };
94
+ };
95
+ export { createEscoffierKitBehaviour };
@@ -0,0 +1,144 @@
1
+ import "./GameDataset-oS0Tc9KV.js";
2
+ import { t as getPartyMember } from "./getPartyMember-BAb9wUiz.js";
3
+ import "./KitEventKind-DinObjiq.js";
4
+ import { t as addKitStatus } from "./addKitStatus-CecgwPmO.js";
5
+ import { t as countKitResource } from "./countKitResource-CPve-dw2.js";
6
+ import { t as removeKitEffects } from "./removeKitEffects-Csap9Xyn.js";
7
+ import { t as spendKitResource } from "./spendKitResource-CC5kZDgu.js";
8
+ import { t as gainKitResource } from "./gainKitResource-3F1z8Aco.js";
9
+ import { buffKitMember, castKitSummon, findStandingKitSummon, startKitCooldown } from "./index.js";
10
+ // src/services/kit/characters/eulaKit.ts
11
+ const GRIMHEART_ICD_SECONDS = .3;
12
+ const GRIMHEART_STACK_IDS = ["eula-grimheart-stack-0", "eula-grimheart-stack-1"];
13
+ const GRIMHEART_MAX_STACKS = 2;
14
+ const GRIMHEART_ICD_ID = "eula-grimheart-icd";
15
+ const ICEWHIRL_SHRED_ID = "eula-icewhirl-shred";
16
+ const CONSTELLATION_1_PHYSICAL_BONUS = .3;
17
+ const CONSTELLATION_1_BASE_SECONDS = 6;
18
+ const CONSTELLATION_1_SECONDS_PER_STACK = 6;
19
+ const CONSTELLATION_4_DAMAGE_BONUS = .25;
20
+ const CONSTELLATION_4_HEALTH_SHARE = .5;
21
+ const LIGHTFALL_STACK_ICD_SECONDS = .1;
22
+ const LIGHTFALL_STACK_ICD_ID = "eula-lightfall-stack-icd";
23
+ const LIGHTFALL_MAX_STACKS = 30;
24
+ const LIGHTFALL_STACKS_RESOURCE_ID = "eula-lightfall-stacks";
25
+ const LIGHTFALL_SUMMON_ID = "eula-lightfall";
26
+ const ASCENSION_1 = 1;
27
+ const ASCENSION_4 = 4;
28
+ const CONSTELLATION_6 = 6;
29
+ const CONSTELLATION_6_STARTING_STACKS = 5;
30
+ const CONSTELLATION_6_EXTRA_STACK_CHANCE = .5;
31
+ const checkIsGrimheartStack = (effect, characterId) => effect.kind === "status" && effect.characterId === characterId && GRIMHEART_STACK_IDS.includes(effect.id);
32
+ const countGrimheartStacks = (effects, characterId) => effects.filter((effect) => checkIsGrimheartStack(effect, characterId)).length;
33
+ const gainGrimheartStack = (kitEffectState, combatant, seconds) => {
34
+ const count = Math.min(countGrimheartStacks(kitEffectState.effects, combatant.characterId) + 1, GRIMHEART_MAX_STACKS);
35
+ for (const id of GRIMHEART_STACK_IDS.slice(0, count)) addKitStatus(kitEffectState, combatant.characterId, {
36
+ id,
37
+ secondsRemaining: seconds
38
+ });
39
+ };
40
+ const clearGrimheartStacks = (kitEffectState, characterId) => removeKitEffects(kitEffectState, (effect) => checkIsGrimheartStack(effect, characterId));
41
+ const createEulaKitBehaviour = ({ kit, readArea, readHit, readHitFields, readParameter, readSeconds, readSecondsList }) => {
42
+ const [burstInitialHit] = kit.elementalBurst.hits;
43
+ const explodeBase = readParameter("lightfallSwordBaseMultiplier");
44
+ const explodePerStack = readParameter("lightfallSwordStackMultiplier");
45
+ const shredResistance = readParameter("shredResistance");
46
+ const shredPhysicalResistance = readParameter("shredPhysicalResistance");
47
+ const shredSecondsPerStack = readParameter("shredSecondsPerStack");
48
+ const grimheartSeconds = readParameter("grimheartSeconds");
49
+ const icewhirlArea = readArea("icewhirls");
50
+ const icewhirlHitmarkSecondsList = readSecondsList("icewhirlHitmark");
51
+ const icewhirlMultiplier = readParameter("icewhirlMultiplier");
52
+ const shatteredLightfall = readHit("shatteredLightfall");
53
+ const lightfallExplosionFields = readHitFields("lightfallExplosion", ["hitmarkSeconds", "talentMultiplier"]);
54
+ const lightfallStatusStartSeconds = readSeconds("lightfallStatusStart");
55
+ const lightfallStatusEndSeconds = readSeconds("lightfallStatusEnd");
56
+ const lightfallExplosionSeconds = readSeconds("lightfallExplosion");
57
+ const lightfallTriggerDelaySeconds = readSeconds("lightfallTriggerDelay");
58
+ const createLightfallExplosion = (stacks, hitmarkSeconds) => ({
59
+ ...lightfallExplosionFields,
60
+ hitmarkSeconds,
61
+ talentMultiplier: explodeBase + explodePerStack * Math.min(stacks, LIGHTFALL_MAX_STACKS)
62
+ });
63
+ const gainLightfallStack = (kitEffectState, combatant, random) => {
64
+ const { characterId } = combatant;
65
+ const summon = findStandingKitSummon(kitEffectState.effects, LIGHTFALL_SUMMON_ID, characterId);
66
+ if (summon === void 0 || summon.elapsedSeconds < lightfallStatusStartSeconds || summon.elapsedSeconds >= lightfallStatusEndSeconds || !startKitCooldown(kitEffectState, characterId, LIGHTFALL_STACK_ICD_ID, LIGHTFALL_STACK_ICD_SECONDS)) return;
67
+ const count = countKitResource(kitEffectState.effects, characterId, LIGHTFALL_STACKS_RESOURCE_ID);
68
+ if (count >= LIGHTFALL_MAX_STACKS) return;
69
+ const gained = combatant.constellationCount >= CONSTELLATION_6 && random() < CONSTELLATION_6_EXTRA_STACK_CHANCE ? 2 : 1;
70
+ gainKitResource(kitEffectState, characterId, LIGHTFALL_STACKS_RESOURCE_ID, gained, LIGHTFALL_MAX_STACKS);
71
+ const hits = [createLightfallExplosion(count + gained, lightfallExplosionSeconds)];
72
+ kitEffectState.effects = kitEffectState.effects.map((effect) => effect === summon ? {
73
+ ...summon,
74
+ hits
75
+ } : effect);
76
+ };
77
+ const lightfallStackHit = { onStrike: ({ kitEffectState, random }, { combatant }) => gainLightfallStack(kitEffectState, combatant, random) };
78
+ return {
79
+ burst: { onStart: ({ activeCombatant: combatant, body, kitEffectState, party }) => {
80
+ const { characterId } = combatant;
81
+ if (combatant.ascension >= ASCENSION_4) getPartyMember(party, characterId).skillCooldownSeconds = 0;
82
+ spendKitResource(kitEffectState, characterId, LIGHTFALL_STACKS_RESOURCE_ID);
83
+ removeKitEffects(kitEffectState, (effect) => effect.kind === "summon" && effect.id === LIGHTFALL_SUMMON_ID);
84
+ if (combatant.ascension >= ASCENSION_4 && countGrimheartStacks(kitEffectState.effects, characterId) > 0) gainGrimheartStack(kitEffectState, combatant, grimheartSeconds);
85
+ const startingStacks = combatant.constellationCount >= CONSTELLATION_6 ? CONSTELLATION_6_STARTING_STACKS : 0;
86
+ gainKitResource(kitEffectState, characterId, LIGHTFALL_STACKS_RESOURCE_ID, startingStacks, LIGHTFALL_MAX_STACKS);
87
+ castKitSummon(kitEffectState, body, combatant, [createLightfallExplosion(startingStacks, lightfallExplosionSeconds)], {
88
+ attackTag: "ElementalBurst",
89
+ id: LIGHTFALL_SUMMON_ID
90
+ });
91
+ } },
92
+ getStrikeDamageBonus: ({ combatant, hit }, enemy) => combatant.constellationCount >= 4 && hit === burstInitialHit && enemy.health / enemy.maxHealth < CONSTELLATION_4_HEALTH_SHARE ? CONSTELLATION_4_DAMAGE_BONUS : 0,
93
+ normalAttacks: kit.normalAttacks.map(({ hits }) => ({ hits: hits.map(() => lightfallStackHit) })),
94
+ onKitEvent: (event, { kitEffectState }, { characterId }) => {
95
+ if (event.kind !== "CharacterSwapped") return;
96
+ const summon = findStandingKitSummon(kitEffectState.effects, LIGHTFALL_SUMMON_ID, characterId);
97
+ if (summon === void 0) return;
98
+ const stacks = spendKitResource(kitEffectState, characterId, LIGHTFALL_STACKS_RESOURCE_ID);
99
+ const hit = createLightfallExplosion(stacks, lightfallTriggerDelaySeconds);
100
+ removeKitEffects(kitEffectState, (effect) => effect === summon);
101
+ castKitSummon(kitEffectState, summon.body, summon.combatant, [hit], { attackTag: "ElementalBurst" });
102
+ },
103
+ skill: { hits: [{ onStrike: ({ kitEffectState, random }, { combatant }) => {
104
+ if (!startKitCooldown(kitEffectState, combatant.characterId, GRIMHEART_ICD_ID, GRIMHEART_ICD_SECONDS)) return;
105
+ gainGrimheartStack(kitEffectState, combatant, grimheartSeconds);
106
+ gainLightfallStack(kitEffectState, combatant, random);
107
+ } }] },
108
+ skillHolds: [{
109
+ hits: [lightfallStackHit],
110
+ onStart: ({ activeCombatant: combatant, body, kitEffectState }) => {
111
+ const { characterId } = combatant;
112
+ const stacks = countGrimheartStacks(kitEffectState.effects, characterId);
113
+ clearGrimheartStacks(kitEffectState, characterId);
114
+ if (stacks === 0) return;
115
+ const shred = () => ({
116
+ damageTakenBonus: 0,
117
+ id: ICEWHIRL_SHRED_ID,
118
+ physicalResistanceReduction: shredPhysicalResistance,
119
+ resistanceReduction: { ["Ice"]: shredResistance },
120
+ secondsRemaining: shredSecondsPerStack * stacks
121
+ });
122
+ const icewhirls = icewhirlHitmarkSecondsList.slice(0, stacks).map((hitmarkSeconds) => ({
123
+ element: "Ice",
124
+ enemyStatus: shred,
125
+ gauge: 1,
126
+ hitArea: icewhirlArea,
127
+ hitmarkSeconds,
128
+ onStrike: ({ kitEffectState: strikeEffectState, random }, { combatant: striker }) => gainLightfallStack(strikeEffectState, striker, random),
129
+ poiseDamage: 0,
130
+ talentMultiplier: icewhirlMultiplier
131
+ }));
132
+ castKitSummon(kitEffectState, body, combatant, icewhirls, { attackTag: "ElementalSkill" });
133
+ if (stacks === GRIMHEART_MAX_STACKS && combatant.ascension >= ASCENSION_1) castKitSummon(kitEffectState, body, combatant, [shatteredLightfall], { attackTag: "ElementalBurst" });
134
+ if (combatant.constellationCount >= 1) buffKitMember(kitEffectState, characterId, {
135
+ amount: CONSTELLATION_1_PHYSICAL_BONUS,
136
+ attribute: "FIGHT_PROP_PHYSICAL_ADD_HURT",
137
+ secondsRemaining: CONSTELLATION_1_BASE_SECONDS + CONSTELLATION_1_SECONDS_PER_STACK * stacks,
138
+ source: "eula-c1"
139
+ });
140
+ }
141
+ }]
142
+ };
143
+ };
144
+ export { createEulaKitBehaviour };
@@ -0,0 +1,72 @@
1
+ import "./GameDataset-oS0Tc9KV.js";
2
+ import { B as SUMMON_LINGER_SECONDS } from "./constants-BIXoNz1x.js";
3
+ import { t as castKitField } from "./castKitField-BhB1fy3l.js";
4
+ import { buffKitTeam, castKitSummon } from "./index.js";
5
+ // src/services/kit/characters/faruzanKit.ts
6
+ const WHIRLWIND_GADGET_OFFSETS = [
7
+ {
8
+ forward: 10.5,
9
+ lateral: 5.19
10
+ },
11
+ {
12
+ forward: 10.5,
13
+ lateral: -5.19
14
+ },
15
+ {
16
+ forward: 1.5,
17
+ lateral: 0
18
+ }
19
+ ];
20
+ const PRAYERFUL_WIND_SOURCE = "faruzan-prayerful-wind";
21
+ const PERFIDIOUS_WIND_RUIN_ID = "faruzan-perfidious-wind-ruin";
22
+ const CONSTELLATION_2_EXTRA_POLYHEDRON_SECONDS = 6;
23
+ const createOffsetBody = ({ facing, height, position }, { forward, lateral }) => ({
24
+ facing,
25
+ height,
26
+ position: {
27
+ x: position.x - Math.sin(facing) * forward + Math.cos(facing) * lateral,
28
+ z: position.z - Math.cos(facing) * forward - Math.sin(facing) * lateral
29
+ }
30
+ });
31
+ const createFaruzanKitBehaviour = ({ readHit, readParameter, readSeconds }) => {
32
+ const perfidiousWindRuinResistanceReduction = readParameter("perfidiousWindRuinResistanceReduction");
33
+ const perfidiousWindRuinSeconds = readParameter("perfidiousWindRuinSeconds");
34
+ const prayerfulWindAnemoDamageBonus = readParameter("prayerfulWindAnemoDamageBonus");
35
+ const prayerfulWindSeconds = readParameter("prayerfulWindSeconds");
36
+ const firstWhirlwindPulseSeconds = readSeconds("firstWhirlwindPulse");
37
+ const dazzlingPolyhedronSeconds = readSeconds("dazzlingPolyhedron");
38
+ const whirlwindPulseIntervalSeconds = readSeconds("whirlwindPulseInterval");
39
+ const createPerfidiousWindRuin = () => ({
40
+ damageTakenBonus: 0,
41
+ id: PERFIDIOUS_WIND_RUIN_ID,
42
+ resistanceReduction: { ["Wind"]: perfidiousWindRuinResistanceReduction },
43
+ secondsRemaining: perfidiousWindRuinSeconds
44
+ });
45
+ const whirlwindPulse = readHit("whirlwindPulse", { enemyStatus: createPerfidiousWindRuin });
46
+ const prayerfulWindsGift = {
47
+ amount: prayerfulWindAnemoDamageBonus,
48
+ attribute: "FIGHT_PROP_WIND_ADD_HURT",
49
+ secondsRemaining: prayerfulWindSeconds,
50
+ source: PRAYERFUL_WIND_SOURCE
51
+ };
52
+ const castDazzlingPolyhedron = (kitEffectState, castBody, combatant) => {
53
+ castKitField(kitEffectState, combatant.characterId, castBody.position, {
54
+ nextTickSeconds: firstWhirlwindPulseSeconds,
55
+ onTick: ({ kitEffectState: tickKitEffectState, party }, tickIndex) => {
56
+ buffKitTeam(tickKitEffectState, party, prayerfulWindsGift);
57
+ const gadgetOffset = WHIRLWIND_GADGET_OFFSETS[tickIndex % WHIRLWIND_GADGET_OFFSETS.length];
58
+ if (gadgetOffset) castKitSummon(tickKitEffectState, createOffsetBody(castBody, gadgetOffset), combatant, [whirlwindPulse]);
59
+ },
60
+ secondsRemaining: dazzlingPolyhedronSeconds + SUMMON_LINGER_SECONDS + (combatant.constellationCount >= 2 ? CONSTELLATION_2_EXTRA_POLYHEDRON_SECONDS : 0),
61
+ tickIntervalSeconds: whirlwindPulseIntervalSeconds
62
+ });
63
+ };
64
+ return { burst: {
65
+ hits: [{ enemyStatus: createPerfidiousWindRuin }],
66
+ onStart: ({ activeCombatant: combatant, body, kitEffectState, party }) => {
67
+ castDazzlingPolyhedron(kitEffectState, body, combatant);
68
+ buffKitTeam(kitEffectState, party, prayerfulWindsGift);
69
+ }
70
+ } };
71
+ };
72
+ export { createFaruzanKitBehaviour };