Android build v1.1.33
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
import { IWT2_PARTY_ORDER } from './classes'
|
||||
import {
|
||||
IWT2_GEAR_SLOTS,
|
||||
type Iwt2GearLevel,
|
||||
type Iwt2GearProgress,
|
||||
} from './gear'
|
||||
|
||||
export type Iwt2PvpGearNormalizationConfig = {
|
||||
enabled: boolean
|
||||
gearLevel: Iwt2GearLevel
|
||||
}
|
||||
|
||||
export const IWT2_PVP_GEAR_NORMALIZATION: Iwt2PvpGearNormalizationConfig = {
|
||||
enabled: true,
|
||||
gearLevel: 5,
|
||||
}
|
||||
|
||||
export function createIwt2PvpNormalizedGearProgress(
|
||||
config = IWT2_PVP_GEAR_NORMALIZATION,
|
||||
): Iwt2GearProgress | undefined {
|
||||
if (!config.enabled) return undefined
|
||||
|
||||
return Object.fromEntries(
|
||||
IWT2_PARTY_ORDER.map((classId) => [
|
||||
classId,
|
||||
{
|
||||
slots: Object.fromEntries(
|
||||
IWT2_GEAR_SLOTS.map((slotId) => [slotId, { level: config.gearLevel }]),
|
||||
),
|
||||
infusionAbilityId: null,
|
||||
},
|
||||
]),
|
||||
) as Iwt2GearProgress
|
||||
}
|
||||
Reference in New Issue
Block a user