mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-04-24 06:58:10 -05:00
Add tristrike and screen damage params (#2291)
* Add tristrike and screen damage params * Rename inkstrike functions
This commit is contained in:
parent
1aa3425120
commit
07d5a7d57f
|
|
@ -2759,6 +2759,7 @@ export const weaponParams = {
|
|||
Mid: 2.3,
|
||||
},
|
||||
},
|
||||
TickDamage: 75,
|
||||
},
|
||||
"15": {
|
||||
overwrites: {
|
||||
|
|
@ -2846,6 +2847,7 @@ export const weaponParams = {
|
|||
Mid: 0.053,
|
||||
},
|
||||
},
|
||||
DirectDamage: 400,
|
||||
},
|
||||
},
|
||||
};
|
||||
|
|
|
|||
|
|
@ -497,7 +497,9 @@ function parametersToSpecialWeaponResult(params: any) {
|
|||
const isCrabTank = () => !!params.CannonParam;
|
||||
const isKraken = () => !!params.BodyParam?.DamageJumpValue;
|
||||
const isInkjet = () => !!params.JetParam;
|
||||
const isScreen = () => !!params.WallParam;
|
||||
const isInkStorm = () => !!params.CloudParam;
|
||||
const isInkstrike = () => !!params.MotherParam;
|
||||
const isBooyahBomb = () =>
|
||||
params.BlastParam?.$type === "spl__BulletSpNiceBallBlastParam";
|
||||
|
||||
|
|
@ -545,6 +547,12 @@ function parametersToSpecialWeaponResult(params: any) {
|
|||
return 1200;
|
||||
};
|
||||
|
||||
const ScreenDirectDamage = () => {
|
||||
if (!isScreen()) return;
|
||||
|
||||
return 400;
|
||||
};
|
||||
|
||||
const BooyahBombTickDamage = () => {
|
||||
if (!isBooyahBomb()) return;
|
||||
|
||||
|
|
@ -557,6 +565,12 @@ function parametersToSpecialWeaponResult(params: any) {
|
|||
return 4;
|
||||
};
|
||||
|
||||
const InkstrikeTickDamage = () => {
|
||||
if (!isInkstrike()) return;
|
||||
|
||||
return 75;
|
||||
};
|
||||
|
||||
return {
|
||||
ArmorHP: params.WeaponSpChariotParam?.ArmorHP,
|
||||
overwrites: resultUnwrapped,
|
||||
|
|
@ -571,7 +585,8 @@ function parametersToSpecialWeaponResult(params: any) {
|
|||
params.DamageParam?.DirectHitDamage ??
|
||||
params.spl__BulletSpShockSonarParam?.GeneratorParam?.HitDamage ??
|
||||
KrakenDirectDamage() ??
|
||||
InkjetDirectDamage(),
|
||||
InkjetDirectDamage() ??
|
||||
ScreenDirectDamage(),
|
||||
WaveDamage: params.spl__BulletSpShockSonarParam?.WaveParam?.Damage,
|
||||
ExhaleBlastParamMinChargeDistanceDamage:
|
||||
params.ExhaleBlastParamMinCharge?.DistanceDamage,
|
||||
|
|
@ -588,6 +603,7 @@ function parametersToSpecialWeaponResult(params: any) {
|
|||
TickDamage:
|
||||
BooyahBombTickDamage() ??
|
||||
InkStormTickDamage() ??
|
||||
InkstrikeTickDamage() ??
|
||||
params.spl__BulletSpMicroLaserBitParam?.LaserParam?.LaserDamage,
|
||||
};
|
||||
}
|
||||
|
|
@ -857,7 +873,7 @@ function writeTranslationsJsons(arr: TranslationArray) {
|
|||
.map(({ key, value }) => [key, value]),
|
||||
),
|
||||
null,
|
||||
2,
|
||||
"\t",
|
||||
)}\n`,
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user