Special damages: Zipcaster

This commit is contained in:
Kalle
2023-06-18 13:03:22 +03:00
parent 58e60e746d
commit 6425c08397
4 changed files with 26 additions and 3 deletions

View File

@@ -12,6 +12,7 @@ import {
CURLING_BOMB_ID,
AUTO_BOMB_ID,
TORPEDO_ID,
ZIPCASTER_ID,
} from "~/modules/in-game-lists";
import { ANGLE_SHOOTER_ID } from "~/modules/in-game-lists";
import { INK_MINE_ID, POINT_SENSOR_ID } from "~/modules/in-game-lists";
@@ -502,6 +503,16 @@ function specialWeaponDamages(
}
}
// Zipcaster direct damage
if (args.mainWeaponParams.specialWeaponId === ZIPCASTER_ID) {
result.unshift({
id: semiRandomId(),
distance: 0,
value: sumArray(result.map((v) => v.value)),
type: "BOMB_NORMAL",
});
}
return result;
}

View File

@@ -1723,7 +1723,17 @@
"Low": 0.15,
"Mid": 0.1305
}
}
},
"DistanceDamage": [
{
"Damage": 350,
"Distance": 3.2
},
{
"Damage": 250,
"Distance": 4
}
]
},
"4": {
"overwrites": {

View File

@@ -154,7 +154,7 @@ export const objectDamageJsonKeyPriority: Record<
Sprinkler: null,
Stringer_Short: ["NORMAL_MAX", "NORMAL_MIN", "DISTANCE"],
Stringer: ["NORMAL_MAX", "NORMAL_MIN", "DISTANCE"],
SuperHook: null,
SuperHook: ["BOMB_NORMAL"],
SuperLanding: null,
TripleTornado: null,
UltraShot: ["BOMB_NORMAL", "BOMB_DIRECT"],

View File

@@ -461,7 +461,9 @@ function parametersToSpecialWeaponResult(params: any) {
return {
ArmorHP: params["WeaponSpChariotParam"]?.["ArmorHP"],
overwrites: resultUnwrapped,
DistanceDamage: params["BlastParam"]?.["DistanceDamage"],
DistanceDamage:
params["BlastParam"]?.["DistanceDamage"] ??
params["HookBlastParam"]?.["DistanceDamage"],
DirectDamage: params["DamageParam"]?.["DirectHitDamage"],
};
}