mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-30 23:27:55 -05:00
BRU effects for analyzer
This commit is contained in:
@@ -218,6 +218,7 @@ function parametersToSubWeaponResult(params: any): SubWeaponParams {
|
||||
// );
|
||||
|
||||
return {
|
||||
overwrites: resolveSubWeaponOverwrites(params),
|
||||
// xxx: not every sub has this, why? e.g. Splash Wall
|
||||
SubInkSaveLv,
|
||||
InkConsume: params["WeaponParam"]["InkConsume"],
|
||||
@@ -337,6 +338,27 @@ function resolveOverwritesWithArbitraryKeys(
|
||||
}
|
||||
}
|
||||
|
||||
function resolveSubWeaponOverwrites(params: any) {
|
||||
const result: SubWeaponParams["overwrites"] = {
|
||||
SpawnSpeedZSpecUp: params["MoveParam"]?.["SpawnSpeedZSpecUp"],
|
||||
PeriodFirst: params["MoveParam"]?.["PeriodFirst"],
|
||||
PeriodSecond: params["MoveParam"]?.["PeriodSecond"],
|
||||
MarkingFrameSubSpec:
|
||||
params["MoveParam"]?.["MarkingFrameSubSpec"] ??
|
||||
params["MoveParam"]?.["MarkingFrame"],
|
||||
SensorRadius: params["MoveParam"]?.["SensorRadius"],
|
||||
MaxHP: params["MoveParam"]?.["MaxHP"],
|
||||
// xxx: missing Squid Beakon AP up
|
||||
};
|
||||
|
||||
return Object.fromEntries(
|
||||
Object.entries(result).filter(
|
||||
([_key, value]) =>
|
||||
value && (value.High !== value.Mid || value.Low !== value.High)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
const WEAPON_TYPES_TO_IGNORE = [
|
||||
"Mission",
|
||||
"Coop",
|
||||
|
||||
Reference in New Issue
Block a user