mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-12 22:26:12 -05:00
Special damages: Zipcaster
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -1723,7 +1723,17 @@
|
||||
"Low": 0.15,
|
||||
"Mid": 0.1305
|
||||
}
|
||||
}
|
||||
},
|
||||
"DistanceDamage": [
|
||||
{
|
||||
"Damage": 350,
|
||||
"Distance": 3.2
|
||||
},
|
||||
{
|
||||
"Damage": 250,
|
||||
"Distance": 4
|
||||
}
|
||||
]
|
||||
},
|
||||
"4": {
|
||||
"overwrites": {
|
||||
|
||||
@@ -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"],
|
||||
|
||||
@@ -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"],
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user