Server/project/src/models/spt/config/IAirdropConfig.ts

64 lines
2.4 KiB
TypeScript
Raw Normal View History

import { MinMax } from "@spt-aki/models/common/MinMax";
import { AirdropTypeEnum } from "@spt-aki/models/enums/AirdropType";
import { IBaseConfig } from "@spt-aki/models/spt/config/IBaseConfig";
2023-03-03 16:23:46 +01:00
export interface IAirdropConfig extends IBaseConfig
{
2023-11-16 02:35:05 +01:00
kind: "aki-airdrop";
airdropChancePercent: AirdropChancePercent;
airdropTypeWeightings: Record<AirdropTypeEnum, number>;
2023-07-18 16:45:57 +02:00
/** Lowest point plane will fly at */
2023-11-16 02:35:05 +01:00
planeMinFlyHeight: number;
2023-07-18 16:45:57 +02:00
/** Highest point plane will fly at */
2023-11-16 02:35:05 +01:00
planeMaxFlyHeight: number;
2023-07-18 16:45:57 +02:00
/** Loudness of plane engine */
2023-11-16 02:35:05 +01:00
planeVolume: number;
2023-07-18 16:45:57 +02:00
/** Speed plane flies overhead */
2023-11-16 02:35:05 +01:00
planeSpeed: number;
2023-07-18 16:45:57 +02:00
/** Speed loot crate falls after being dropped */
2023-11-16 02:35:05 +01:00
crateFallSpeed: number;
2023-07-18 16:45:57 +02:00
/** Container tpls to use when spawning crate - affects container size, keyed by drop type e.g. mixed/weaponArmor/foodMedical/barter */
2023-11-16 02:35:05 +01:00
containerIds: Record<string, string>;
2023-07-18 16:45:57 +02:00
/** Earliest time aircraft will spawn in raid */
2023-11-16 02:35:05 +01:00
airdropMinStartTimeSeconds: number;
2023-07-18 16:45:57 +02:00
/** Latest time aircraft will spawn in raid */
2023-11-16 02:35:05 +01:00
airdropMaxStartTimeSeconds: number;
2023-07-18 16:45:57 +02:00
/** What rewards will the loot crate contain, keyed by drop type e.g. mixed/weaponArmor/foodMedical/barter */
2023-11-16 02:35:05 +01:00
loot: Record<string, AirdropLoot>;
2023-03-03 16:23:46 +01:00
}
2023-07-18 16:45:57 +02:00
/** Chance map will have an airdrop occur out of 100 - locations not included count as 0% */
2023-03-03 16:23:46 +01:00
export interface AirdropChancePercent
{
2023-11-16 02:35:05 +01:00
bigmap: number;
woods: number;
lighthouse: number;
shoreline: number;
interchange: number;
reserve: number;
tarkovStreets: number;
2023-03-03 16:23:46 +01:00
}
2023-07-18 16:45:57 +02:00
/** Loot inside crate */
2023-03-03 16:23:46 +01:00
export interface AirdropLoot
{
2023-07-18 16:45:57 +02:00
/** Min/max of weapons inside crate */
2023-11-16 02:35:05 +01:00
presetCount?: MinMax;
2023-07-18 16:45:57 +02:00
/** Min/max of items inside crate */
2023-11-16 02:35:05 +01:00
itemCount: MinMax;
2023-07-18 16:45:57 +02:00
/** Min/max of sealed weapon boxes inside crate */
2023-11-16 02:35:05 +01:00
weaponCrateCount: MinMax;
2023-07-18 16:45:57 +02:00
/** Items to never allow - tpls */
2023-11-16 02:35:05 +01:00
itemBlacklist: string[];
2023-07-18 16:45:57 +02:00
/** Item type (parentId) to allow inside crate */
2023-11-16 02:35:05 +01:00
itemTypeWhitelist: string[];
2023-07-18 16:45:57 +02:00
/** Item type/ item tpls to limit count of inside crate - key: item base type: value: max count */
2023-11-16 02:35:05 +01:00
itemLimits: Record<string, number>;
2023-07-18 16:45:57 +02:00
/** Items to limit stack size of key: item tpl value: min/max stack size */
2023-11-16 02:35:05 +01:00
itemStackLimits: Record<string, MinMax>;
2023-07-18 16:45:57 +02:00
/** Armor levels to allow inside crate e.g. [4,5,6] */
2023-11-16 02:35:05 +01:00
armorLevelWhitelist?: number[];
/** Should boss items be added to airdrop crate */
allowBossItems: boolean;
2023-03-03 16:23:46 +01:00
}