feat: armor modes

This commit is contained in:
TrèsAbhi committed 2024-09-22 21:12:18 -05:00
1 parent ffa1395b50
commit f1410cf321
42 files changed
+293 -264

No files matched your search

@@ -1,6 +1,10 @@
import { normalizeAngleRad, PitchLimits, YawLimits } from '@blitzkit/core';
import {
normalizeAngleRad,
type PitchLimits,
type YawLimits,
} from '@blitzkit/core';
import { clamp } from 'lodash-es';
import { degToRad } from 'three/src/math/MathUtils';
import { degToRad } from 'three/src/math/MathUtils.js';
export function applyPitchYawLimits(
pitch: number, // rad
@@ -1,5 +1,5 @@
import { equipmentDefinitions } from '@blitzkit/core';
import { EquipmentMatrix } from '../../stores/duel';
import type { EquipmentMatrix } from '../../stores/duel';
export async function hasEquipment(
id: number,
@@ -1,4 +1,4 @@
import { ModelArmor } from '@blitzkit/core';
import type { ModelArmor } from '@blitzkit/core';
export function resolveArmor(armor: ModelArmor, index: number) {
const spaced = armor.spaced?.includes(index) ?? false;
@@ -1,9 +1,9 @@
import {
availableProvisions,
ProvisionDefinitions,
TankDefinition,
type ProvisionDefinitions,
type TankDefinition,
} from '@blitzkit/core';
import { DuelMember } from '../../stores/duel';
import type { DuelMember } from '../../stores/duel';
import { genericDefaultEquipmentMatrix } from '../../stores/duel/constants';
const PROVISION_PREFERENCES = [