genshin-world 4.3.1 → 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.
- package/dist/{ElementDamageBonusAttributeMap-r29fkvtM.js → ElementDamageBonusAttributeMap-Cf1kBcTu.js} +2 -3
- package/dist/{EnemyState-DV57Bh7L.js → EnemyState-BdsrVDVv.js} +1 -2
- package/dist/{GameDataset-B6H7oezV.js → GameDataset-oS0Tc9KV.js} +7 -14
- package/dist/{KitEventKind-CGMNB7W9.js → KitEventKind-DinObjiq.js} +1 -2
- package/dist/{ReactionType-hpFnoVev.js → ReactionType-BTiek5WA.js} +6 -11
- package/dist/{TransformativeReactionType-CleFzf8J.js → TransformativeReactionType-DYhIEAoe.js} +1 -2
- package/dist/{addKitEffect-B922PsCn.js → addKitEffect-DEhZUuxo.js} +1 -2
- package/dist/{addKitStatus-B0kqLgt1.js → addKitStatus-CecgwPmO.js} +2 -3
- package/dist/{ainoKit-9nNWJtt8.js → ainoKit-Z23iOdpE.js} +7 -8
- package/dist/{albedoKit-CqDSRYSS.js → albedoKit-h6MSXqhl.js} +7 -8
- package/dist/{alhaithamKit-CPqHnLHg.js → alhaithamKit-2VrwmZzn.js} +8 -9
- package/dist/{aloyKit-mX4ue1UK.js → aloyKit-Dlk_fLbL.js} +6 -7
- package/dist/{alyoshaKit-BT4RmJiZ.js → alyoshaKit-3ky4aL_z.js} +1 -2
- package/dist/{amberKit-DiseylUk.js → amberKit-BuYU5ACZ.js} +2 -3
- package/dist/{arlecchinoKit-Ktk2qBrZ.js → arlecchinoKit-B2WJP5Y5.js} +3 -4
- package/dist/{ayakaKit-B8lRaVEX.js → ayakaKit-D7K6RdMw.js} +5 -6
- package/dist/{ayatoKit-C1d3zZO0.js → ayatoKit-qQp-Ayun.js} +7 -8
- package/dist/{baizhuKit-BahbIHOM.js → baizhuKit-9i8Hvfeg.js} +6 -7
- package/dist/{barbaraKit-DyVdn4JU.js → barbaraKit-DMo_2qWo.js} +9 -10
- package/dist/{beidouKit-DtdW2iYD.js → beidouKit-1lURCwhO.js} +4 -5
- package/dist/{bennettKit-DMybe5yt.js → bennettKit-B-ipp-MR.js} +6 -7
- package/dist/{candaceKit-D2JxxJ-U.js → candaceKit-oGYu9t5n.js} +8 -9
- package/dist/{castKitField-_74Co83C.js → castKitField-BhB1fy3l.js} +4 -6
- package/dist/{characterPack-COXASMYv.d.ts → characterPack-B3e_YsdJ.d.ts} +0 -28
- package/dist/{characterPack-DibegH5Y.js → characterPack-DzYMqBNM.js} +28 -54
- package/dist/characterPack.d.ts +1 -1
- package/dist/characterPack.js +2 -2
- package/dist/{charlotteKit-BHanMBgA.js → charlotteKit-BjNvcN8w.js} +6 -7
- package/dist/{chascaKit-CF8KPyfH.js → chascaKit-isny33W1.js} +3 -4
- package/dist/{checkIsKitShieldLive-Ch8BgpHZ.js → checkIsKitShieldLive-DEn8yb0C.js} +1 -2
- package/dist/{chevreuseKit-CH5xu1yJ.js → chevreuseKit-BppMndmv.js} +7 -8
- package/dist/{chioriKit-CyJV9RuV.js → chioriKit-CKfqMVtb.js} +1 -2
- package/dist/{chongyunKit-Bfp6g05V.js → chongyunKit-DeZG-qOb.js} +8 -9
- package/dist/{citlaliKit-BFxlFfsf.js → citlaliKit-BLY9P2cd.js} +5 -6
- package/dist/{clorindeKit-CVP7rxb2.js → clorindeKit-DGNp_1SZ.js} +3 -4
- package/dist/{collectKitEnergyDrops-Bt4C9o5I.js → collectKitEnergyDrops-4kTI3aGH.js} +11 -16
- package/dist/{colleiKit-CCIYW8bc.js → colleiKit-CVBvP9-k.js} +5 -6
- package/dist/{columbinaKit-CJ0as-TP.js → columbinaKit-BqmNtRDK.js} +11 -13
- package/dist/{computeFacingAngle-BaRnmfMH.js → computeFacingAngle-DapXsgDc.js} +1 -2
- package/dist/{constants-CFW7hhnp.js → constants-6NEnGOni.js} +2 -3
- package/dist/{constants-C5MNdAtu.js → constants-BIXoNz1x.js} +4 -5
- package/dist/{constants-CSFiwyHy.js → constants-DWgLZz-I.js} +1 -2
- package/dist/{constants-DCZ-jxqC.js → constants-jHIdcxxW.js} +1 -2
- package/dist/{constants--ARZpp1u.js → constants-r10WzaUG.js} +1 -2
- package/dist/{consumeKitResource-CbrNQtZP.js → consumeKitResource-DknosO6e.js} +5 -6
- package/dist/{countKitResource-DvrWXcCc.js → countKitResource-CPve-dw2.js} +2 -3
- package/dist/{createWindriseGroundPaint-3I4-42A5.js → createWindriseGroundPaint-CtFTL5uW.js} +6 -12
- package/dist/{cynoKit-BsdVe5ip.js → cynoKit-bhub8RfD.js} +10 -11
- package/dist/{dahliaKit-BvAE-bdw.js → dahliaKit-BeEPFn33.js} +2 -3
- package/dist/{dehyaKit-DiC7yHRH.js → dehyaKit-1qJYvLv-.js} +3 -4
- package/dist/{dilucKit-C9Nz6xLi.js → dilucKit-DslGKmxO.js} +5 -6
- package/dist/{dionaKit-CSA9iGCG.js → dionaKit-B33zk3GI.js} +5 -6
- package/dist/{doriKit-MallfU4i.js → doriKit-BmYySQcG.js} +2 -3
- package/dist/{durinKit-Cwno0X9u.js → durinKit-CpCXxj-r.js} +3 -4
- package/dist/{emilieKit-WNRG1HiW.js → emilieKit-BZqz4PVs.js} +2 -3
- package/dist/{emitKitEvent-MEMMkn9X.js → emitKitEvent-Cb-ZHu50.js} +2 -3
- package/dist/{escoffierKit-DC0knooj.js → escoffierKit-DFRj0Hpo.js} +4 -5
- package/dist/{eulaKit-B714Qm9u.js → eulaKit-BzD8ye_S.js} +9 -10
- package/dist/{faruzanKit-Bnz3BRKw.js → faruzanKit-C5WQz91G.js} +4 -5
- package/dist/{findKitStatus-c5kVgwo6.js → findKitStatus-Dj_zauGj.js} +1 -2
- package/dist/{fischlKit-BKJSDlae.js → fischlKit-e4xAt26v.js} +5 -6
- package/dist/{flinsKit-CP5D22yk.js → flinsKit-D82N06z5.js} +2 -3
- package/dist/{freminetKit-BKugfnRC.js → freminetKit-Dq9ebIts.js} +2 -3
- package/dist/{furinaKit-BGd_lLjr.js → furinaKit-CzTKkE0N.js} +12 -13
- package/dist/{gainKitResource-Cb8C2L3s.js → gainKitResource-3F1z8Aco.js} +3 -4
- package/dist/{gainPartyMemberEnergy-D9hiqeb4.js → gainPartyMemberEnergy-DUbIxe6i.js} +3 -5
- package/dist/{gamingKit-kIgqMnFq.js → gamingKit-yxYvslgf.js} +3 -4
- package/dist/{ganyuKit-DemmOZho.js → ganyuKit-B2pxzHKL.js} +3 -4
- package/dist/{getActiveCharacterId-BAGBdS2c.js → getActiveCharacterId-D9TtVSWj.js} +2 -3
- package/dist/{getBuffedCombatant-B7Fe7E_P.js → getBuffedCombatant-CwXmBrc6.js} +13 -20
- package/dist/{getDeployedCharacterIds-ED-6JY4w.js → getDeployedCharacterIds-TuIRCNKb.js} +1 -2
- package/dist/{getDeployedCombatants-BqXm9a6o.js → getDeployedCombatants-BQdLjZha.js} +3 -4
- package/dist/{getPartyMember-CPyR8-gA.js → getPartyMember-BAb9wUiz.js} +1 -2
- package/dist/{gorouKit-D1aEnA6A.js → gorouKit--Luf6-WZ.js} +7 -8
- package/dist/{heizouKit-ePG5r1Cn.js → heizouKit-DRleoyzF.js} +6 -7
- package/dist/{huTaoKit-4-GOh-Vv.js → huTaoKit-WDMpqAzD.js} +7 -8
- package/dist/{iansanKit-CRWpDWLi.js → iansanKit-BPzX4C36.js} +9 -10
- package/dist/{ifaKit-DIM0kU9K.js → ifaKit-Z57TFRSg.js} +7 -8
- package/dist/{illugaKit-D1QkAPS6.js → illugaKit-86u4wqrU.js} +10 -11
- package/dist/{index-CPoeaSkB.d.ts → index-C5rNBYhp.d.ts} +12 -6110
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2575 -4994
- package/dist/{ineffaKit-vPT9zyfI.js → ineffaKit-D0SA01X2.js} +8 -9
- package/dist/{ittoKit-DzOW-TE9.js → ittoKit-hM51Mywb.js} +7 -8
- package/dist/{jahodaKit-9YGHCAcA.js → jahodaKit-CqtBpzVS.js} +11 -14
- package/dist/{jeanKit-9eNCZ6dx.js → jeanKit-fwjmnF1v.js} +5 -6
- package/dist/{kachinaKit-BrwrswKB.js → kachinaKit-Dyh5F-ob.js} +2 -3
- package/dist/{kaeyaKit-CY35PXmA.js → kaeyaKit-SBM0QxJ5.js} +7 -8
- package/dist/{kavehKit-BE7gKtWP.js → kavehKit-1XyMxtUb.js} +3 -4
- package/dist/{kazuhaKit-qOCjcrqH.js → kazuhaKit-C726LLZy.js} +8 -9
- package/dist/{keqingKit-BzAWT9BG.js → keqingKit-O_V-tx1h.js} +5 -6
- package/dist/{kinichKit-CymKuu1M.js → kinichKit-DIVa0P5s.js} +4 -5
- package/dist/{kiraraKit-DyhPmhEL.js → kiraraKit-nS9iOECm.js} +2 -3
- package/dist/{kleeKit-BwHcJznq.js → kleeKit-DzbELTyN.js} +7 -8
- package/dist/{kokomiKit-CA0CzriO.js → kokomiKit-BRzXNRVb.js} +4 -5
- package/dist/{kujouSaraKit-BW83jN0G.js → kujouSaraKit-BpN3Ipay.js} +9 -10
- package/dist/{kukiKit-AxsqxqeV.js → kukiKit-DRdmE41e.js} +5 -6
- package/dist/{lanYanKit-ttJg9kuB.js → lanYanKit-CRK1J-LX.js} +2 -3
- package/dist/{laumaKit-Byo_-u9y.js → laumaKit-CRc88J5l.js} +10 -11
- package/dist/{laylaKit-L2t_Rj6L.js → laylaKit-B7Pjqgzw.js} +12 -13
- package/dist/{linneaKit-DlVhnbGM.js → linneaKit-CVZeam_T.js} +1 -2
- package/dist/{lisaKit-BsYIJpRR.js → lisaKit-BJqj8t7j.js} +3 -4
- package/dist/{lohenKit-D-uagI_g.js → lohenKit-BZk4IiPV.js} +1 -2
- package/dist/{lynetteKit-N8fgD5-q.js → lynetteKit-CfwhsLsJ.js} +4 -5
- package/dist/{lyneyKit-T586Gpbd.js → lyneyKit-BQiI15dt.js} +2 -3
- package/dist/{mavuikaKit-nJaEDdfr.js → mavuikaKit-MMBY1DJn.js} +2 -3
- package/dist/{mikaKit-CdLY5aCh.js → mikaKit-BIMafqBI.js} +2 -3
- package/dist/{mizukiKit-BEXzx_Y6.js → mizukiKit-CC34yGgJ.js} +4 -5
- package/dist/{monaKit-ONoXQhmJ.js → monaKit-BlrXXHlB.js} +8 -9
- package/dist/{mualaniKit-DXSW984Q.js → mualaniKit-BUTB11j2.js} +1 -2
- package/dist/{nahidaKit-f_e4vgfj.js → nahidaKit-ZHrD7-m7.js} +9 -10
- package/dist/{naviaKit-BtcUuWFE.js → naviaKit-DDttg5Dp.js} +7 -8
- package/dist/{neferKit-12ZI_Dj4.js → neferKit-Z-QBM46z.js} +5 -6
- package/dist/{neuvilletteKit-l08eZ2jR.js → neuvilletteKit-B4EhID2O.js} +5 -7
- package/dist/{nicoleKit-BGBQ8CMU.js → nicoleKit-Dmrpe0yU.js} +12 -13
- package/dist/{nilouKit-BH5jWBqC.js → nilouKit-CoztU-uZ.js} +7 -8
- package/dist/{ningguangKit-YmHdRYcn.js → ningguangKit-BGOXmwd-.js} +6 -7
- package/dist/{noelleKit-IDYWuE-6.js → noelleKit-nl5ar8f1.js} +7 -8
- package/dist/{odetteKit-Dw5i_A2J.js → odetteKit-Bu1W8GX7.js} +5 -6
- package/dist/{ororonKit-HsTfXvsW.js → ororonKit-CboDk9B8.js} +9 -10
- package/dist/{pruneKit-PR-_GqAt.js → pruneKit-xgQ9cym6.js} +2 -3
- package/dist/{qiqiKit-HX-bDmRf.js → qiqiKit-lz_qLyLu.js} +6 -7
- package/dist/{raidenKit-DUUHQxaP.js → raidenKit-CVTi4bpy.js} +11 -12
- package/dist/{razorKit-BQIWQCQH.js → razorKit-BHyrlVEl.js} +7 -8
- package/dist/{readCharacterAvatar-QXdaK_b0.js → readCharacterAvatar-xauJoD8Q.js} +8 -12
- package/dist/{removeKitEffects--6C1cGOY.js → removeKitEffects-Csap9Xyn.js} +1 -2
- package/dist/{rosariaKit-Dn-L-EAF.js → rosariaKit-DEpP8gj7.js} +4 -5
- package/dist/{sandroneKit-BwVm_e-C.js → sandroneKit-C7vjjwWY.js} +1 -2
- package/dist/{save-BONR7TY2.js → save-W-sjOoN_.js} +129 -256
- package/dist/save.d.ts +1 -1
- package/dist/save.js +1 -1
- package/dist/{sayuKit-CzPYsFzM.js → sayuKit-DQbPlL_6.js} +6 -7
- package/dist/{sceneExport-p78Obc7R.js → sceneExport-3Se7hlVa.js} +2 -4
- package/dist/{sceneExport-BmTj9FRK.d.ts → sceneExport-C-q_cRxm.d.ts} +0 -14
- package/dist/sceneExport.d.ts +1 -1
- package/dist/sceneExport.js +1 -1
- package/dist/{sethosKit-Dnj7Y8q0.js → sethosKit-o-Tz2GFI.js} +1 -2
- package/dist/{shenheKit-DyoqKfsa.js → shenheKit-Xu_rt5aN.js} +10 -11
- package/dist/{sigewinneKit-a6h94xdX.js → sigewinneKit-NOWCcIW4.js} +2 -3
- package/dist/{skirkKit-BDjoFGAq.js → skirkKit-CK183sCe.js} +1 -2
- package/dist/{spendKitResource-BMOGVq9a.js → spendKitResource-CC5kZDgu.js} +3 -4
- package/dist/{sucroseKit-D2zXGz1h.js → sucroseKit-Brr_FwwP.js} +9 -10
- package/dist/{tartagliaKit-BwGA6N1Y.js → tartagliaKit-DQzYxDRn.js} +7 -8
- package/dist/terrainTileWorker.js +2 -3
- package/dist/{thomaKit-BJfMbEIx.js → thomaKit-CesNlmDH.js} +5 -6
- package/dist/{tighnariKit-RYM02O_t.js → tighnariKit-B9BZlgE9.js} +4 -5
- package/dist/{varesaKit-tl3QT31L.js → varesaKit-D5iKxzdo.js} +3 -4
- package/dist/{varkaKit-C8_HlTVH.js → varkaKit-CNpU_rb3.js} +1 -2
- package/dist/{ventiKit-FYuBhbPY.js → ventiKit-CM94zgZy.js} +3 -4
- package/dist/{vesnaKit-CmM1CVe6.js → vesnaKit-DtGBZlNW.js} +1 -2
- package/dist/{vodyanitsaKit-7WoQIUHv.js → vodyanitsaKit-BurO3Fqh.js} +1 -2
- package/dist/{wandererKit-CQM691sn.js → wandererKit-CW3sLw53.js} +1 -2
- package/dist/{wriothesleyKit-BtcN4_Bv.js → wriothesleyKit-CPwNVWnr.js} +6 -7
- package/dist/{xianglingKit-BQjcNu7M.js → xianglingKit-DAFhr2LW.js} +5 -6
- package/dist/{xianyunKit-D76nKV4f.js → xianyunKit-G4ateSub.js} +6 -7
- package/dist/{xiaoKit-DPd4UkOr.js → xiaoKit-CQljYrZS.js} +5 -6
- package/dist/{xilonenKit-BykTSGYe.js → xilonenKit-39u8vLuk.js} +4 -5
- package/dist/{xingqiuKit-BZz9JUTt.js → xingqiuKit-nURrQ7vt.js} +4 -5
- package/dist/{xinyanKit-DN0kCOuW.js → xinyanKit-DU0WpVms.js} +8 -9
- package/dist/{yaeMikoKit-hw1By6wO.js → yaeMikoKit-kSDqAFyn.js} +2 -3
- package/dist/{yanfeiKit-CnIuIJrr.js → yanfeiKit-Cst973qA.js} +7 -8
- package/dist/{yaoyaoKit-5ny2CT69.js → yaoyaoKit-6yjjf3np.js} +10 -11
- package/dist/{yelanKit-CQcriSs3.js → yelanKit-SSdzqMQa.js} +6 -7
- package/dist/{yoimiyaKit-BlohgeOv.js → yoimiyaKit-DqiQvgAt.js} +6 -7
- package/dist/{yunjinKit-BJEkLGZt.js → yunjinKit-lCP6TTRP.js} +9 -10
- package/dist/{zhongliKit-Cm3k5sX5.js → zhongliKit-CTjDWUoW.js} +5 -6
- package/dist/{zibaiKit-C0elIlw8.js → zibaiKit-CatYt9BG.js} +7 -8
- package/package.json +10 -10
package/dist/{createWindriseGroundPaint-3I4-42A5.js → createWindriseGroundPaint-CtFTL5uW.js}
RENAMED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import "vue";
|
|
2
2
|
import { Color, MathUtils, Matrix4, Quaternion, Vector2, Vector3 } from "three";
|
|
3
3
|
import { GroundLayer, computeScatterPoints, createSeededRandom, createTerrainShapeHeight, getTerrainTileColumn, getTerrainTileRow } from "genshin-engine/terrainWorker";
|
|
4
|
-
|
|
4
|
+
// src/services/windrise/constants.ts
|
|
5
5
|
const WINDRISE_SEED = 0;
|
|
6
6
|
const WINDRISE_SCENE_EXPORT_COMPONENT = "windrise";
|
|
7
7
|
const WATER_SHALLOW_COLOR = 6280136;
|
|
@@ -208,8 +208,7 @@ const WINDRISE_SKY_KEYFRAMES = [
|
|
|
208
208
|
zenithColor: new Color(1450572)
|
|
209
209
|
}
|
|
210
210
|
];
|
|
211
|
-
|
|
212
|
-
//#region src/models/world/TerrainWorkerMessageKind.ts
|
|
211
|
+
// src/models/world/TerrainWorkerMessageKind.ts
|
|
213
212
|
let TerrainWorkerMessageKind = /* @__PURE__ */ function(TerrainWorkerMessageKind) {
|
|
214
213
|
TerrainWorkerMessageKind["Failed"] = "failed";
|
|
215
214
|
TerrainWorkerMessageKind["Load"] = "load";
|
|
@@ -217,19 +216,16 @@ let TerrainWorkerMessageKind = /* @__PURE__ */ function(TerrainWorkerMessageKind
|
|
|
217
216
|
TerrainWorkerMessageKind["Tile"] = "tile";
|
|
218
217
|
return TerrainWorkerMessageKind;
|
|
219
218
|
}({});
|
|
220
|
-
|
|
221
|
-
//#region src/services/world/createWorldHeight.ts
|
|
219
|
+
// src/services/world/createWorldHeight.ts
|
|
222
220
|
const createWorldHeight = (baseGrounds, regionGrounds) => createTerrainShapeHeight(...baseGrounds, ...regionGrounds);
|
|
223
|
-
|
|
224
|
-
//#region src/services/windrise/getSlope.ts
|
|
221
|
+
// src/services/windrise/getSlope.ts
|
|
225
222
|
const getSlope = (getHeight, x, z) => {
|
|
226
223
|
const acrossX = getHeight(x - SLOPE_REACH, z) - getHeight(x + SLOPE_REACH, z);
|
|
227
224
|
const acrossZ = getHeight(x, z - SLOPE_REACH) - getHeight(x, z + SLOPE_REACH);
|
|
228
225
|
const up = SLOPE_REACH * 2;
|
|
229
226
|
return 1 - up / Math.hypot(acrossX, up, acrossZ);
|
|
230
227
|
};
|
|
231
|
-
|
|
232
|
-
//#region src/services/windrise/computeWindrisePlants.ts
|
|
228
|
+
// src/services/windrise/computeWindrisePlants.ts
|
|
233
229
|
const flowerColors = FLOWER_COLORS.map((flowerColor) => new Color(flowerColor));
|
|
234
230
|
const matrix = new Matrix4();
|
|
235
231
|
const rotation = new Quaternion();
|
|
@@ -269,8 +265,7 @@ const computeWindrisePlants = (key, size, { getHeight, getWeights, waterLevel })
|
|
|
269
265
|
plantMatrices
|
|
270
266
|
};
|
|
271
267
|
};
|
|
272
|
-
|
|
273
|
-
//#region src/services/windrise/createWindriseGroundPaint.ts
|
|
268
|
+
// src/services/windrise/createWindriseGroundPaint.ts
|
|
274
269
|
const createWindriseGroundPaint = (groundLayers, surfaces) => {
|
|
275
270
|
const { color: groundColor, layers } = surfaces.Ground;
|
|
276
271
|
const getGroundLayerColors = (layer) => {
|
|
@@ -295,5 +290,4 @@ const createWindriseGroundPaint = (groundLayers, surfaces) => {
|
|
|
295
290
|
paths: []
|
|
296
291
|
};
|
|
297
292
|
};
|
|
298
|
-
//#endregion
|
|
299
293
|
export { UNDERWATER_FOG_COLOR as A, WINDRISE_SCENE_EXPORT_COMPONENT as B, PLANT_DRAW_DISTANCE as C, SUN_DISTANCE as D, SLOPE_REACH as E, WATER_DEEP_DEPTH as F, WIND_DIRECTION as G, WINDRISE_SKY_KEYFRAMES as H, WATER_FOAM_DEPTH as I, WIND_GUST_WIDTH as J, WIND_GUST_SPEED as K, WATER_SHALLOW_COLOR as L, UP as M, WATER_CAUSTIC_STRENGTH as N, SUN_TILT as O, WATER_DEEP_COLOR as P, WINDRISE_GRADE_OPTIONS as R, PLANT_DOME_SCALE as S, SHADOW_MAX_FAR as T, WINDRISE_START_MINUTES as U, WINDRISE_SEED as V, WINDRISE_START_POINT as W, WIND_STRENGTH as Y, GRASS_BLADE_WIDTH as _, TerrainWorkerMessageKind as a, OAK_BARK_PART as b, FLOWER_COLORS as c, FLOWER_MIN_SIZE as d, FLOWER_SPACING as f, GRASS_BLADE_HEIGHT as g, FOG_START_DISTANCE as h, createWorldHeight as i, UNDERWATER_FOG_DENSITY as j, TREE_PREFAB_NAME_PART as k, FLOWER_MAX_SIZE as l, FOG_HEIGHT_FALLOFF as m, computeWindrisePlants as n, CLOUD_COVERAGE as o, FOG_DENSITY as p, WIND_GUST_STRENGTH as q, getSlope as r, FLOWER_CANDIDATE_COUNT as s, createWindriseGroundPaint as t, FLOWER_MIN_GRASS as u, MIDDLE_GRASS_RING as v, RIM_STRENGTH as w, OAK_LEAF_PART as x, NEAR_GRASS_RING as y, WINDRISE_RAMP_OPTIONS as z };
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import "./GameDataset-
|
|
2
|
-
import { t as gainPartyMemberEnergy } from "./gainPartyMemberEnergy-
|
|
3
|
-
import { t as getDeployedCharacterIds } from "./getDeployedCharacterIds-
|
|
4
|
-
import { t as ReactionType } from "./ReactionType-
|
|
5
|
-
import "./KitEventKind-
|
|
6
|
-
import { t as findKitStatus } from "./findKitStatus-
|
|
7
|
-
import { a as ELECTRO_REACTION_TYPES } from "./constants-
|
|
8
|
-
import { t as addKitStatus } from "./addKitStatus-
|
|
9
|
-
import { t as castKitField } from "./castKitField-
|
|
1
|
+
import "./GameDataset-oS0Tc9KV.js";
|
|
2
|
+
import { t as gainPartyMemberEnergy } from "./gainPartyMemberEnergy-DUbIxe6i.js";
|
|
3
|
+
import { t as getDeployedCharacterIds } from "./getDeployedCharacterIds-TuIRCNKb.js";
|
|
4
|
+
import { t as ReactionType } from "./ReactionType-BTiek5WA.js";
|
|
5
|
+
import "./KitEventKind-DinObjiq.js";
|
|
6
|
+
import { t as findKitStatus } from "./findKitStatus-Dj_zauGj.js";
|
|
7
|
+
import { a as ELECTRO_REACTION_TYPES } from "./constants-BIXoNz1x.js";
|
|
8
|
+
import { t as addKitStatus } from "./addKitStatus-CecgwPmO.js";
|
|
9
|
+
import { t as castKitField } from "./castKitField-BhB1fy3l.js";
|
|
10
10
|
import { buffKitMember, castKitSummon, checkHasKitStatus, elementalMasteryMultiplier, enterKitStance, findKitStance, startKitCooldown } from "./index.js";
|
|
11
11
|
import { takeOne } from "@esposter/shared";
|
|
12
|
-
|
|
12
|
+
// src/services/kit/characters/cynoKit.ts
|
|
13
13
|
const BURST_EXTENSIONS_MAX = 2;
|
|
14
14
|
const BURST_EXTENSIONS_STATUS_ID = "cyno-burst-extensions";
|
|
15
15
|
const BURST_BUFF_SOURCE = "cyno-burst";
|
|
@@ -200,5 +200,4 @@ const createCynoKitBehaviour = ({ kit, readHit, readHits, readParameter, readSec
|
|
|
200
200
|
}
|
|
201
201
|
};
|
|
202
202
|
};
|
|
203
|
-
//#endregion
|
|
204
203
|
export { createCynoKitBehaviour };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./GameDataset-
|
|
1
|
+
import "./GameDataset-oS0Tc9KV.js";
|
|
2
2
|
import { castKitShield, getKitMaxHealth, scheduleKitTask } from "./index.js";
|
|
3
|
-
|
|
3
|
+
// src/services/kit/characters/dahliaKit.ts
|
|
4
4
|
const CONSTELLATION_4 = 4;
|
|
5
5
|
const FAVONIAN_FAVOR_EXTENSION_SECONDS = 3;
|
|
6
6
|
const createDahliaKitBehaviour = ({ readParameter, readSeconds }) => {
|
|
@@ -17,5 +17,4 @@ const createDahliaKitBehaviour = ({ readParameter, readSeconds }) => {
|
|
|
17
17
|
});
|
|
18
18
|
}) } };
|
|
19
19
|
};
|
|
20
|
-
//#endregion
|
|
21
20
|
export { createDahliaKitBehaviour };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as getPartyMember } from "./getPartyMember-
|
|
2
|
-
import "./KitEventKind-
|
|
1
|
+
import { t as getPartyMember } from "./getPartyMember-BAb9wUiz.js";
|
|
2
|
+
import "./KitEventKind-DinObjiq.js";
|
|
3
3
|
import { changeKitMemberHealth, getKitMaxHealth, scheduleKitTask, startKitCooldown } from "./index.js";
|
|
4
|
-
|
|
4
|
+
// src/services/kit/characters/dehyaKit.ts
|
|
5
5
|
const ASCENSION_4 = 4;
|
|
6
6
|
const STALWART_AND_TRUE_THRESHOLD = .4;
|
|
7
7
|
const STALWART_AND_TRUE_COOLDOWN_SECONDS = 20;
|
|
@@ -20,5 +20,4 @@ const createDehyaKitBehaviour = () => ({ onKitEvent: (event, context, combatant)
|
|
|
20
20
|
changeKitMemberHealth(context, combatant, characterId, STALWART_AND_TRUE_INITIAL_HEAL_SHARE * maxHealth);
|
|
21
21
|
for (const tick of Array.from({ length: STALWART_AND_TRUE_TICK_COUNT }, (_value, index) => index + 1)) scheduleKitTask(kitEffectState, characterId, tick * STALWART_AND_TRUE_TICK_INTERVAL_SECONDS, (tickContext) => changeKitMemberHealth(tickContext, combatant, characterId, STALWART_AND_TRUE_TICK_HEAL_SHARE * getKitMaxHealth(combatant, tickContext.kitEffectState.effects, tickContext.party, tickContext.characterIdCombatantMap)));
|
|
22
22
|
} });
|
|
23
|
-
//#endregion
|
|
24
23
|
export { createDehyaKitBehaviour };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./GameDataset-
|
|
2
|
-
import { t as addKitEffect } from "./addKitEffect-
|
|
3
|
-
import { t as findKitStatus } from "./findKitStatus-
|
|
4
|
-
import { t as addKitStatus } from "./addKitStatus-
|
|
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
5
|
import { buffKitMember, castKitSummon, checkIsKitStatusActive, checkIsStrikeOn } from "./index.js";
|
|
6
6
|
import { takeOne } from "@esposter/shared";
|
|
7
|
-
|
|
7
|
+
// src/services/kit/characters/dilucKit.ts
|
|
8
8
|
const DILUC_INFUSION_SECONDS = 8;
|
|
9
9
|
const DILUC_A4_EXTRA_INFUSION_SECONDS = 4;
|
|
10
10
|
const DILUC_A4_PYRO_DAMAGE_BONUS = .2;
|
|
@@ -163,5 +163,4 @@ const createDilucKitBehaviour = ({ kit, readArea, readHitFields, readParameter,
|
|
|
163
163
|
skillChain: kit.elementalSkillChain?.followUps.map(() => ({ onStart: createSearingOnslaughtPress(true) }))
|
|
164
164
|
};
|
|
165
165
|
};
|
|
166
|
-
//#endregion
|
|
167
166
|
export { createDilucKitBehaviour };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./GameDataset-
|
|
2
|
-
import { t as gainPartyMemberEnergy } from "./gainPartyMemberEnergy-
|
|
3
|
-
import "./KitEventKind-
|
|
4
|
-
import { t as castKitField } from "./castKitField-
|
|
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
5
|
import { castKitShield, castKitSummon, changeKitMemberHealth, getKitMaxHealth } from "./index.js";
|
|
6
6
|
import { takeOne } from "@esposter/shared";
|
|
7
|
-
|
|
7
|
+
// src/services/kit/characters/dionaKit.ts
|
|
8
8
|
const SIGNATURE_MIX_FIELD_RADIUS = 7;
|
|
9
9
|
const SIGNATURE_MIX_TICK_SECONDS = 2;
|
|
10
10
|
const SIGNATURE_MIX_FIELD_MARGIN_SECONDS = .5;
|
|
@@ -65,5 +65,4 @@ const createDionaKitBehaviour = ({ kit, readHits, readParameter }) => {
|
|
|
65
65
|
skillHolds: [{ onStart: (context) => castShield(context, context.activeCombatant, holdShieldMultiplier) }]
|
|
66
66
|
};
|
|
67
67
|
};
|
|
68
|
-
//#endregion
|
|
69
68
|
export { createDionaKitBehaviour };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as castKitField } from "./castKitField-
|
|
1
|
+
import { t as castKitField } from "./castKitField-BhB1fy3l.js";
|
|
2
2
|
import { castKitSummon, createAheadBody } from "./index.js";
|
|
3
|
-
|
|
3
|
+
// src/services/kit/characters/doriKit.ts
|
|
4
4
|
const CONNECTOR_FIELD_RADIUS = 10;
|
|
5
5
|
const CONNECTOR_AHEAD_METRES = 5;
|
|
6
6
|
const createDoriKitBehaviour = ({ readHit, readSeconds }) => {
|
|
@@ -21,5 +21,4 @@ const createDoriKitBehaviour = ({ readHit, readSeconds }) => {
|
|
|
21
21
|
});
|
|
22
22
|
} } };
|
|
23
23
|
};
|
|
24
|
-
//#endregion
|
|
25
24
|
export { createDoriKitBehaviour };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { t as gainPartyMemberEnergy } from "./gainPartyMemberEnergy-
|
|
2
|
-
import { t as addKitStatus } from "./addKitStatus-
|
|
1
|
+
import { t as gainPartyMemberEnergy } from "./gainPartyMemberEnergy-DUbIxe6i.js";
|
|
2
|
+
import { t as addKitStatus } from "./addKitStatus-CecgwPmO.js";
|
|
3
3
|
import { castKitSummon, checkHasKitStatus, createKitBody, enterKitStance, startKitCooldown } from "./index.js";
|
|
4
|
-
|
|
4
|
+
// src/services/kit/characters/durinKit.ts
|
|
5
5
|
const BLACK_STATUS_SECONDS = 30;
|
|
6
6
|
const BLACK_STATUS_ID = "denial-of-darkness";
|
|
7
7
|
const SKILL_ENERGY_ICD_SECONDS = 6;
|
|
@@ -46,5 +46,4 @@ const createDurinKitBehaviour = ({ kit, readHits, readParameter, readStance }) =
|
|
|
46
46
|
} }]
|
|
47
47
|
};
|
|
48
48
|
};
|
|
49
|
-
//#endregion
|
|
50
49
|
export { createDurinKitBehaviour };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./GameDataset-
|
|
1
|
+
import "./GameDataset-oS0Tc9KV.js";
|
|
2
2
|
import "./index.js";
|
|
3
|
-
|
|
3
|
+
// src/services/kit/characters/emilieKit.ts
|
|
4
4
|
const CONSTELLATION_2 = 2;
|
|
5
5
|
const CONSTELLATION_2_STATUS = {
|
|
6
6
|
damageTakenBonus: 0,
|
|
@@ -17,5 +17,4 @@ const createEmilieKitBehaviour = () => ({
|
|
|
17
17
|
getStrikeDamageBonus: ({ combatant }, enemy) => getAscension4DamageBonus(combatant, enemy),
|
|
18
18
|
skill: { hits: [{ enemyStatus: getConstellationStatus }, { enemyStatus: getConstellationStatus }] }
|
|
19
19
|
});
|
|
20
|
-
//#endregion
|
|
21
20
|
export { createEmilieKitBehaviour };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { t as getDeployedCharacterIds } from "./getDeployedCharacterIds-
|
|
2
|
-
|
|
1
|
+
import { t as getDeployedCharacterIds } from "./getDeployedCharacterIds-TuIRCNKb.js";
|
|
2
|
+
// src/services/kit/emitKitEvent.ts
|
|
3
3
|
const emitKitEvent = (event, context) => {
|
|
4
4
|
const { characterIdCombatantMap, kitEffectState, party } = context;
|
|
5
5
|
for (const characterId of getDeployedCharacterIds(party)) {
|
|
@@ -8,5 +8,4 @@ const emitKitEvent = (event, context) => {
|
|
|
8
8
|
}
|
|
9
9
|
for (const effect of kitEffectState.effects) if (effect.kind === "field") effect.onEvent?.(event, effect);
|
|
10
10
|
};
|
|
11
|
-
//#endregion
|
|
12
11
|
export { emitKitEvent as t };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import "./GameDataset-
|
|
2
|
-
import { t as addKitStatus } from "./addKitStatus-
|
|
3
|
-
import { t as castKitField } from "./castKitField-
|
|
1
|
+
import "./GameDataset-oS0Tc9KV.js";
|
|
2
|
+
import { t as addKitStatus } from "./addKitStatus-CecgwPmO.js";
|
|
3
|
+
import { t as castKitField } from "./castKitField-BhB1fy3l.js";
|
|
4
4
|
import { castKitSummon, changeKitMemberHealth, checkIsKitStatusActive, countDeployedElements, getKitHitElement, startKitCooldown } from "./index.js";
|
|
5
5
|
import { takeOne } from "@esposter/shared";
|
|
6
6
|
import "vue";
|
|
7
|
-
|
|
7
|
+
// src/services/kit/characters/escoffierKit.ts
|
|
8
8
|
const ALIGNED_INTERVAL_STATUS_ID = "escoffier-aligned-icd";
|
|
9
9
|
const BURST_HEAL_FIELD_ID = "escoffier-scoring-cuts-heal";
|
|
10
10
|
const REHAB_DIET_SCALING = 1.3824;
|
|
@@ -92,5 +92,4 @@ const createEscoffierKitBehaviour = ({ kit, readHit, readHits, readParameter, re
|
|
|
92
92
|
} }
|
|
93
93
|
};
|
|
94
94
|
};
|
|
95
|
-
//#endregion
|
|
96
95
|
export { createEscoffierKitBehaviour };
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import "./GameDataset-
|
|
2
|
-
import { t as getPartyMember } from "./getPartyMember-
|
|
3
|
-
import "./KitEventKind-
|
|
4
|
-
import { t as addKitStatus } from "./addKitStatus-
|
|
5
|
-
import { t as countKitResource } from "./countKitResource-
|
|
6
|
-
import { t as removeKitEffects } from "./removeKitEffects
|
|
7
|
-
import { t as spendKitResource } from "./spendKitResource-
|
|
8
|
-
import { t as gainKitResource } from "./gainKitResource-
|
|
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
9
|
import { buffKitMember, castKitSummon, findStandingKitSummon, startKitCooldown } from "./index.js";
|
|
10
|
-
|
|
10
|
+
// src/services/kit/characters/eulaKit.ts
|
|
11
11
|
const GRIMHEART_ICD_SECONDS = .3;
|
|
12
12
|
const GRIMHEART_STACK_IDS = ["eula-grimheart-stack-0", "eula-grimheart-stack-1"];
|
|
13
13
|
const GRIMHEART_MAX_STACKS = 2;
|
|
@@ -141,5 +141,4 @@ const createEulaKitBehaviour = ({ kit, readArea, readHit, readHitFields, readPar
|
|
|
141
141
|
}]
|
|
142
142
|
};
|
|
143
143
|
};
|
|
144
|
-
//#endregion
|
|
145
144
|
export { createEulaKitBehaviour };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./GameDataset-
|
|
2
|
-
import { B as SUMMON_LINGER_SECONDS } from "./constants-
|
|
3
|
-
import { t as castKitField } from "./castKitField-
|
|
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
4
|
import { buffKitTeam, castKitSummon } from "./index.js";
|
|
5
|
-
|
|
5
|
+
// src/services/kit/characters/faruzanKit.ts
|
|
6
6
|
const WHIRLWIND_GADGET_OFFSETS = [
|
|
7
7
|
{
|
|
8
8
|
forward: 10.5,
|
|
@@ -69,5 +69,4 @@ const createFaruzanKitBehaviour = ({ readHit, readParameter, readSeconds }) => {
|
|
|
69
69
|
}
|
|
70
70
|
} };
|
|
71
71
|
};
|
|
72
|
-
//#endregion
|
|
73
72
|
export { createFaruzanKitBehaviour };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/services/kit/effects/findKitStatus.ts
|
|
2
2
|
const findKitStatus = (effects, characterId, id) => effects.find((effect) => effect.kind === "status" && effect.characterId === characterId && effect.id === id);
|
|
3
|
-
//#endregion
|
|
4
3
|
export { findKitStatus as t };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import "./GameDataset-
|
|
2
|
-
import { t as ReactionType } from "./ReactionType-
|
|
3
|
-
import "./KitEventKind-
|
|
4
|
-
import { a as ELECTRO_REACTION_TYPES } from "./constants-
|
|
1
|
+
import "./GameDataset-oS0Tc9KV.js";
|
|
2
|
+
import { t as ReactionType } from "./ReactionType-BTiek5WA.js";
|
|
3
|
+
import "./KitEventKind-DinObjiq.js";
|
|
4
|
+
import { a as ELECTRO_REACTION_TYPES } from "./constants-BIXoNz1x.js";
|
|
5
5
|
import { castKitSummon, changeKitMemberHealth, createKitBody, findStandingKitSummon, getKitMaxHealth, scheduleKitTask, startKitCooldown } from "./index.js";
|
|
6
|
-
|
|
6
|
+
// src/services/kit/characters/fischlKit.ts
|
|
7
7
|
const UNDONE_BE_THY_SINFUL_HEX_ASCENSION = 4;
|
|
8
8
|
const THUNDERING_RETRIBUTION_COOLDOWN_STATUS_ID = "fischl-thundering-retribution-cooldown";
|
|
9
9
|
const THUNDERING_RETRIBUTION_COOLDOWN_SECONDS = .5;
|
|
@@ -92,5 +92,4 @@ const createFischlKitBehaviour = ({ readHit, readHitFields, readSeconds }) => {
|
|
|
92
92
|
}) }
|
|
93
93
|
};
|
|
94
94
|
};
|
|
95
|
-
//#endregion
|
|
96
95
|
export { createFischlKitBehaviour };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import "./GameDataset-
|
|
1
|
+
import "./GameDataset-oS0Tc9KV.js";
|
|
2
2
|
import { checkIsAscendantGleam, enterKitStance } from "./index.js";
|
|
3
|
-
|
|
3
|
+
// src/services/kit/characters/flinsKit.ts
|
|
4
4
|
const ASCENSION_4 = 4;
|
|
5
5
|
const WHISPERING_FLAME_ATTACK_SHARE = .08;
|
|
6
6
|
const WHISPERING_FLAME_MAX_BONUS = 160;
|
|
@@ -27,5 +27,4 @@ const createFlinsKitBehaviour = ({ readParameter, readStance }) => {
|
|
|
27
27
|
skill: { onStart: ({ activeCombatant: combatant, kitEffectState }) => enterKitStance(kitEffectState, combatant, manifestFlame, manifestFlameSeconds, { isEndedOnSwap: true }) }
|
|
28
28
|
};
|
|
29
29
|
};
|
|
30
|
-
//#endregion
|
|
31
30
|
export { createFlinsKitBehaviour };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as addKitStatus } from "./addKitStatus-
|
|
1
|
+
import { t as addKitStatus } from "./addKitStatus-CecgwPmO.js";
|
|
2
2
|
import { checkIsKitStatusActive, queueKitPassiveHit, scheduleKitTask } from "./index.js";
|
|
3
|
-
|
|
3
|
+
// src/services/kit/characters/freminetKit.ts
|
|
4
4
|
const SKILL_ALIGNED_SECONDS = 9;
|
|
5
5
|
const SPIRITBREATH_THORN_STATUS_ID = "freminet-spiritbreath-thorn";
|
|
6
6
|
const createFreminetKitBehaviour = ({ readHit }) => {
|
|
@@ -17,5 +17,4 @@ const createFreminetKitBehaviour = ({ readHit }) => {
|
|
|
17
17
|
});
|
|
18
18
|
} } };
|
|
19
19
|
};
|
|
20
|
-
//#endregion
|
|
21
20
|
export { createFreminetKitBehaviour };
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import "./GameDataset-
|
|
2
|
-
import { u as DAMAGE_BONUS_ATTRIBUTES } from "./getBuffedCombatant-
|
|
3
|
-
import { t as gainPartyMemberEnergy } from "./gainPartyMemberEnergy-
|
|
4
|
-
import { t as getDeployedCharacterIds } from "./getDeployedCharacterIds-
|
|
5
|
-
import { t as getPartyMember } from "./getPartyMember-
|
|
6
|
-
import "./KitEventKind-
|
|
7
|
-
import { t as addKitEffect } from "./addKitEffect-
|
|
8
|
-
import { t as findKitStatus } from "./findKitStatus-
|
|
9
|
-
import { t as addKitStatus } from "./addKitStatus-
|
|
10
|
-
import { t as castKitField } from "./castKitField-
|
|
11
|
-
import { t as removeKitEffects } from "./removeKitEffects
|
|
1
|
+
import "./GameDataset-oS0Tc9KV.js";
|
|
2
|
+
import { u as DAMAGE_BONUS_ATTRIBUTES } from "./getBuffedCombatant-CwXmBrc6.js";
|
|
3
|
+
import { t as gainPartyMemberEnergy } from "./gainPartyMemberEnergy-DUbIxe6i.js";
|
|
4
|
+
import { t as getDeployedCharacterIds } from "./getDeployedCharacterIds-TuIRCNKb.js";
|
|
5
|
+
import { t as getPartyMember } from "./getPartyMember-BAb9wUiz.js";
|
|
6
|
+
import "./KitEventKind-DinObjiq.js";
|
|
7
|
+
import { t as addKitEffect } from "./addKitEffect-DEhZUuxo.js";
|
|
8
|
+
import { t as findKitStatus } from "./findKitStatus-Dj_zauGj.js";
|
|
9
|
+
import { t as addKitStatus } from "./addKitStatus-CecgwPmO.js";
|
|
10
|
+
import { t as castKitField } from "./castKitField-BhB1fy3l.js";
|
|
11
|
+
import { t as removeKitEffects } from "./removeKitEffects-Csap9Xyn.js";
|
|
12
12
|
import { buffKitMember, castKitSummon, changeKitMemberHealth, checkHasKitStatus, checkIsKitStatusActive, createKitBody, createMaxHealthScaledBonus, getKitMaxHealth, scheduleKitTask, selectAttackTarget, startKitCooldown, toKitSeconds } from "./index.js";
|
|
13
13
|
import { takeOne } from "@esposter/shared";
|
|
14
|
-
|
|
14
|
+
// src/services/kit/characters/furinaKit.ts
|
|
15
15
|
const PNEUMA_STATUS_ID = "furina-pneuma";
|
|
16
16
|
const SPIRITBREATH_THORN_COOLDOWN_STATUS_ID = "furina-spiritbreath-thorn-cooldown";
|
|
17
17
|
const SURGING_BLADE_COOLDOWN_STATUS_ID = "furina-surging-blade-cooldown";
|
|
@@ -286,5 +286,4 @@ const createFurinaKitBehaviour = ({ kit, readFrames, readHit, readHits, readPara
|
|
|
286
286
|
} }
|
|
287
287
|
};
|
|
288
288
|
};
|
|
289
|
-
//#endregion
|
|
290
289
|
export { createFurinaKitBehaviour };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as addKitStatus } from "./addKitStatus-
|
|
2
|
-
import { t as countKitResource } from "./countKitResource-
|
|
3
|
-
|
|
1
|
+
import { t as addKitStatus } from "./addKitStatus-CecgwPmO.js";
|
|
2
|
+
import { t as countKitResource } from "./countKitResource-CPve-dw2.js";
|
|
3
|
+
// src/services/kit/effects/gainKitResource.ts
|
|
4
4
|
const gainKitResource = (kitEffectState, characterId, id, amount, maximum) => {
|
|
5
5
|
const held = countKitResource(kitEffectState.effects, characterId, id);
|
|
6
6
|
const total = Math.min(held + amount, maximum);
|
|
@@ -11,5 +11,4 @@ const gainKitResource = (kitEffectState, characterId, id, amount, maximum) => {
|
|
|
11
11
|
});
|
|
12
12
|
return total;
|
|
13
13
|
};
|
|
14
|
-
//#endregion
|
|
15
14
|
export { gainKitResource as t };
|
|
@@ -1,12 +1,10 @@
|
|
|
1
|
-
import { t as getPartyMember } from "./getPartyMember-
|
|
2
|
-
|
|
1
|
+
import { t as getPartyMember } from "./getPartyMember-BAb9wUiz.js";
|
|
2
|
+
// src/services/party/checkIsCharacterDown.ts
|
|
3
3
|
const checkIsCharacterDown = (party, characterId) => party.characterIdMemberMap.get(characterId)?.healthShare === 0;
|
|
4
|
-
|
|
5
|
-
//#region src/services/party/gainPartyMemberEnergy.ts
|
|
4
|
+
// src/services/party/gainPartyMemberEnergy.ts
|
|
6
5
|
const gainPartyMemberEnergy = (party, { characterId, kit }, energy) => {
|
|
7
6
|
if (checkIsCharacterDown(party, characterId)) return;
|
|
8
7
|
const partyMember = getPartyMember(party, characterId);
|
|
9
8
|
partyMember.energy = Math.min(kit.burstEnergyCost, partyMember.energy + energy);
|
|
10
9
|
};
|
|
11
|
-
//#endregion
|
|
12
10
|
export { checkIsCharacterDown as n, gainPartyMemberEnergy as t };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import "./GameDataset-
|
|
2
|
-
import "./KitEventKind-
|
|
1
|
+
import "./GameDataset-oS0Tc9KV.js";
|
|
2
|
+
import "./KitEventKind-DinObjiq.js";
|
|
3
3
|
import { buffKitMember } from "./index.js";
|
|
4
|
-
|
|
4
|
+
// src/services/kit/characters/gamingKit.ts
|
|
5
5
|
const CONSTELLATION_2_ATTACK_PERCENT = .2;
|
|
6
6
|
const CONSTELLATION_2_SECONDS = 5;
|
|
7
7
|
const ASCENSION_4 = 4;
|
|
@@ -22,5 +22,4 @@ const createGamingKitBehaviour = () => ({
|
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
24
|
});
|
|
25
|
-
//#endregion
|
|
26
25
|
export { createGamingKitBehaviour };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import "./GameDataset-
|
|
2
|
-
import { t as castKitField } from "./castKitField-
|
|
1
|
+
import "./GameDataset-oS0Tc9KV.js";
|
|
2
|
+
import { t as castKitField } from "./castKitField-BhB1fy3l.js";
|
|
3
3
|
import { buffKitMember, castKitSummon, castKitTaunt, createConstellationSkillChargeBonus, grantKitChargeSkip, toKitSeconds } from "./index.js";
|
|
4
4
|
import { takeOne } from "@esposter/shared";
|
|
5
|
-
|
|
5
|
+
// src/services/kit/characters/ganyuKit.ts
|
|
6
6
|
const ICE_LOTUS_HEALTH = Number.POSITIVE_INFINITY;
|
|
7
7
|
const CELESTIAL_SHOWER_RADIUS = 10;
|
|
8
8
|
const HARMONY_ASCENSION = 4;
|
|
@@ -81,5 +81,4 @@ const createGanyuKitBehaviour = ({ kit, readHit, readParameter, readSeconds }) =
|
|
|
81
81
|
} }
|
|
82
82
|
};
|
|
83
83
|
};
|
|
84
|
-
//#endregion
|
|
85
84
|
export { createGanyuKitBehaviour };
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { t as getDeployedCharacterIds } from "./getDeployedCharacterIds-
|
|
1
|
+
import { t as getDeployedCharacterIds } from "./getDeployedCharacterIds-TuIRCNKb.js";
|
|
2
2
|
import { InvalidOperationError, Operation } from "@esposter/shared";
|
|
3
|
-
|
|
3
|
+
// src/services/party/getActiveCharacterId.ts
|
|
4
4
|
const getActiveCharacterId = (party) => {
|
|
5
5
|
const characterId = getDeployedCharacterIds(party)[party.activeIndex];
|
|
6
6
|
if (characterId === void 0) throw new InvalidOperationError(Operation.Read, getActiveCharacterId.name, "no member on the field");
|
|
7
7
|
return characterId;
|
|
8
8
|
};
|
|
9
|
-
//#endregion
|
|
10
9
|
export { getActiveCharacterId as t };
|
|
@@ -1,20 +1,18 @@
|
|
|
1
|
-
import "./GameDataset-
|
|
2
|
-
import { Ir as ENDURING_ROCK_DAMAGE_BONUS } from "./save-
|
|
3
|
-
import { t as getPartyMember } from "./getPartyMember-
|
|
4
|
-
import { t as ElementDamageBonusAttributeMap } from "./ElementDamageBonusAttributeMap-
|
|
5
|
-
import { t as checkIsKitShieldLive } from "./checkIsKitShieldLive-
|
|
6
|
-
import { t as getDeployedCombatants } from "./getDeployedCombatants-
|
|
7
|
-
|
|
1
|
+
import "./GameDataset-oS0Tc9KV.js";
|
|
2
|
+
import { Ir as ENDURING_ROCK_DAMAGE_BONUS } from "./save-W-sjOoN_.js";
|
|
3
|
+
import { t as getPartyMember } from "./getPartyMember-BAb9wUiz.js";
|
|
4
|
+
import { t as ElementDamageBonusAttributeMap } from "./ElementDamageBonusAttributeMap-Cf1kBcTu.js";
|
|
5
|
+
import { t as checkIsKitShieldLive } from "./checkIsKitShieldLive-DEn8yb0C.js";
|
|
6
|
+
import { t as getDeployedCombatants } from "./getDeployedCombatants-BQdLjZha.js";
|
|
7
|
+
// src/services/character/computeStatTotal.ts
|
|
8
8
|
const computeStatTotal = (attributeTotalMap, base, percentage, flat) => attributeTotalMap[base] * (1 + attributeTotalMap[percentage]) + attributeTotalMap[flat];
|
|
9
|
-
|
|
10
|
-
//#region src/services/character/computeCharacterStats.ts
|
|
9
|
+
// src/services/character/computeCharacterStats.ts
|
|
11
10
|
const computeCharacterStats = (attributeTotalMap) => ({
|
|
12
11
|
attack: computeStatTotal(attributeTotalMap, "FIGHT_PROP_BASE_ATTACK", "FIGHT_PROP_ATTACK_PERCENT", "FIGHT_PROP_ATTACK"),
|
|
13
12
|
defense: computeStatTotal(attributeTotalMap, "FIGHT_PROP_BASE_DEFENSE", "FIGHT_PROP_DEFENSE_PERCENT", "FIGHT_PROP_DEFENSE"),
|
|
14
13
|
maxHealth: computeStatTotal(attributeTotalMap, "FIGHT_PROP_BASE_HP", "FIGHT_PROP_HP_PERCENT", "FIGHT_PROP_HP")
|
|
15
14
|
});
|
|
16
|
-
|
|
17
|
-
//#region src/services/combat/damage/constants.ts
|
|
15
|
+
// src/services/combat/damage/constants.ts
|
|
18
16
|
const AMPLIFYING_ELEMENTAL_MASTERY_CURVE = Object.freeze({
|
|
19
17
|
offset: 1400,
|
|
20
18
|
scale: 2.78
|
|
@@ -59,8 +57,7 @@ const STELLAR_VORTEX_LEVEL_TWO_STACKS = 3;
|
|
|
59
57
|
const STELLAR_VORTEX_LEVEL_ONE_COEFFICIENT = 2;
|
|
60
58
|
const STELLAR_VORTEX_LEVEL_TWO_COEFFICIENT = 3;
|
|
61
59
|
const STELLAR_SWIRL_ANEMO_COEFFICIENT = .75;
|
|
62
|
-
|
|
63
|
-
//#region src/services/kit/effects/applyCombatantBonuses.ts
|
|
60
|
+
// src/services/kit/effects/applyCombatantBonuses.ts
|
|
64
61
|
const applyCombatantBonuses = (combatant, bonuses) => {
|
|
65
62
|
if (bonuses.length === 0) return combatant;
|
|
66
63
|
const attributeTotalMap = { ...combatant.attributes.attributeTotalMap };
|
|
@@ -74,14 +71,11 @@ const applyCombatantBonuses = (combatant, bonuses) => {
|
|
|
74
71
|
}
|
|
75
72
|
};
|
|
76
73
|
};
|
|
77
|
-
|
|
78
|
-
//#region src/services/party/checkIsNearMoondrift.ts
|
|
74
|
+
// src/services/party/checkIsNearMoondrift.ts
|
|
79
75
|
const checkIsNearMoondrift = (moondrift, point) => Math.hypot(moondrift.position.x - point.x, moondrift.position.z - point.z) < 20;
|
|
80
|
-
|
|
81
|
-
//#region src/services/party/checkIsEnduringRock.ts
|
|
76
|
+
// src/services/party/checkIsEnduringRock.ts
|
|
82
77
|
const checkIsEnduringRock = (combatant, effects, moondrifts = [], position) => combatant.elementalResonances.includes("Rock") && (effects.some((effect) => checkIsKitShieldLive(effect)) || position !== void 0 && moondrifts.some((moondrift) => checkIsNearMoondrift(moondrift, position)));
|
|
83
|
-
|
|
84
|
-
//#region src/services/kit/effects/getBuffedCombatant.ts
|
|
78
|
+
// src/services/kit/effects/getBuffedCombatant.ts
|
|
85
79
|
const getBuffedCombatant = (combatant, effects, party, characterIdCombatantMap, position) => {
|
|
86
80
|
const buffs = effects.filter((effect) => effect.kind === "buff" && effect.characterId === combatant.characterId);
|
|
87
81
|
const passiveBonuses = combatant.kit.getPassiveBonuses?.(combatant, getPartyMember(party, combatant.characterId).healthShare, getDeployedCombatants(party, characterIdCombatantMap), effects) ?? [];
|
|
@@ -97,5 +91,4 @@ const getBuffedCombatant = (combatant, effects, party, characterIdCombatantMap,
|
|
|
97
91
|
const conversionBonuses = combatant.kit.getConversionBonuses?.(buffed, getPartyMember(party, combatant.characterId).healthShare) ?? [];
|
|
98
92
|
return applyCombatantBonuses(buffed, conversionBonuses);
|
|
99
93
|
};
|
|
100
|
-
//#endregion
|
|
101
94
|
export { computeStatTotal as A, STELLAR_VORTEX_LEVEL_TWO_COEFFICIENT as C, SUPERCONDUCT_STATUS_ID as D, SUPERCONDUCT_SECONDS as E, TRANSFORMATIVE_ELEMENTAL_MASTERY_CURVE as O, STELLAR_VORTEX_LEVEL_ONE_COEFFICIENT as S, SUPERCONDUCT_PHYSICAL_RESISTANCE_REDUCTION as T, STELLAR_CONDUCT_ELEMENTAL_DAMAGE_BONUS_PER_HIT as _, AMPLIFYING_ELEMENTAL_MASTERY_CURVE as a, STELLAR_CONDUCT_RECORDED_ELEMENTAL_DAMAGE_BONUS as b, CATALYZE_ELEMENTAL_MASTERY_CURVE as c, FORWARD_AMPLIFYING_MULTIPLIER as d, LUNAR_CONTRIBUTION_WEIGHTS as f, STELLAR_CONDUCT_ELEMENTAL_DAMAGE_BONUS as g, STELLAR_CONDUCT_COEFFICIENT_PER_HIT as h, applyCombatantBonuses as i, computeCharacterStats as k, CRYSTALLIZE_ELEMENTAL_MASTERY_CURVE as l, REVERSE_AMPLIFYING_MULTIPLIER as m, checkIsEnduringRock as n, ATTACKER_LEVEL_DEFENSE_OFFSET as o, LUNAR_ELEMENTAL_MASTERY_CURVE as p, checkIsNearMoondrift as r, ATTACKER_LEVEL_DEFENSE_SCALE as s, getBuffedCombatant as t, DAMAGE_BONUS_ATTRIBUTES as u, STELLAR_CONDUCT_MAX_RECORDED_HITS as v, STELLAR_VORTEX_LEVEL_TWO_STACKS as w, STELLAR_SWIRL_ANEMO_COEFFICIENT as x, STELLAR_CONDUCT_RECORDED_COEFFICIENT_BONUS as y };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as getDeployedCharacterIds } from "./getDeployedCharacterIds-
|
|
2
|
-
import { t as getPartyMember } from "./getPartyMember-
|
|
3
|
-
|
|
1
|
+
import { t as getDeployedCharacterIds } from "./getDeployedCharacterIds-TuIRCNKb.js";
|
|
2
|
+
import { t as getPartyMember } from "./getPartyMember-BAb9wUiz.js";
|
|
3
|
+
// src/services/party/getDeployedCombatants.ts
|
|
4
4
|
const getDeployedCombatants = (party, characterIdCombatantMap) => {
|
|
5
5
|
const characterIds = getDeployedCharacterIds(party);
|
|
6
6
|
const activeCharacterId = characterIds[party.activeIndex];
|
|
@@ -13,5 +13,4 @@ const getDeployedCombatants = (party, characterIdCombatantMap) => {
|
|
|
13
13
|
}];
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
|
-
//#endregion
|
|
17
16
|
export { getDeployedCombatants as t };
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { InvalidOperationError, Operation } from "@esposter/shared";
|
|
2
|
-
|
|
2
|
+
// src/services/party/getPartyMember.ts
|
|
3
3
|
const getPartyMember = (party, characterId) => {
|
|
4
4
|
const partyMember = party.characterIdMemberMap.get(characterId);
|
|
5
5
|
if (!partyMember) throw new InvalidOperationError(Operation.Read, getPartyMember.name, `character ${characterId}`);
|
|
6
6
|
return partyMember;
|
|
7
7
|
};
|
|
8
|
-
//#endregion
|
|
9
8
|
export { getPartyMember as t };
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import "./GameDataset-
|
|
2
|
-
import { t as getBuffedCombatant } from "./getBuffedCombatant-
|
|
3
|
-
import "./KitEventKind-
|
|
4
|
-
import { t as addKitEffect } from "./addKitEffect-
|
|
5
|
-
import { t as addKitStatus } from "./addKitStatus-
|
|
6
|
-
import { t as castKitField } from "./castKitField-
|
|
1
|
+
import "./GameDataset-oS0Tc9KV.js";
|
|
2
|
+
import { t as getBuffedCombatant } from "./getBuffedCombatant-CwXmBrc6.js";
|
|
3
|
+
import "./KitEventKind-DinObjiq.js";
|
|
4
|
+
import { t as addKitEffect } from "./addKitEffect-DEhZUuxo.js";
|
|
5
|
+
import { t as addKitStatus } from "./addKitStatus-CecgwPmO.js";
|
|
6
|
+
import { t as castKitField } from "./castKitField-BhB1fy3l.js";
|
|
7
7
|
import { buffKitMember, buffKitTeam, castKitSummon, changeKitMemberHealth, changeKitSkillCooldown, checkIsInKitField, checkIsKitStatusActive, createAheadBody } from "./index.js";
|
|
8
8
|
import { takeOne } from "@esposter/shared";
|
|
9
|
-
|
|
9
|
+
// src/services/kit/characters/gorouKit.ts
|
|
10
10
|
const SKILL_OFFSET_METRES = 2;
|
|
11
11
|
const BANNER_RADIUS = 8;
|
|
12
12
|
const BANNER_BUFF_SECONDS = 2;
|
|
@@ -150,5 +150,4 @@ const createGorouKitBehaviour = ({ kit, readHit, readParameter, readSeconds }) =
|
|
|
150
150
|
}
|
|
151
151
|
};
|
|
152
152
|
};
|
|
153
|
-
//#endregion
|
|
154
153
|
export { createGorouKitBehaviour };
|