From 4d8aaea4a9034d15ae9849df286a87a73f5152b6 Mon Sep 17 00:00:00 2001 From: Dev Date: Wed, 25 Sep 2024 19:07:02 +0100 Subject: [PATCH] Fixed airdrop crates having the incorrect id --- project/src/models/enums/AirdropType.ts | 8 ++++---- project/src/services/AirdropService.ts | 6 ++++-- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/project/src/models/enums/AirdropType.ts b/project/src/models/enums/AirdropType.ts index 16d016d5..a6963807 100644 --- a/project/src/models/enums/AirdropType.ts +++ b/project/src/models/enums/AirdropType.ts @@ -1,6 +1,6 @@ export enum AirdropTypeEnum { - COMMON = "common", - SUPPLY = "supply", - MEDICAL = "medical", - WEAPON = "weapon", + COMMON = "mixed", + SUPPLY = "barter", + FOOD_MEDICAL = "foodMedical", + WEAPON_ARMOR = "weaponArmor", } diff --git a/project/src/services/AirdropService.ts b/project/src/services/AirdropService.ts index 4f64278d..aa7ad2ea 100644 --- a/project/src/services/AirdropService.ts +++ b/project/src/services/AirdropService.ts @@ -91,16 +91,18 @@ export class AirdropService { }; switch (airdropType) { - case AirdropTypeEnum.MEDICAL: + case AirdropTypeEnum.FOOD_MEDICAL: airdropContainer._tpl = ItemTpl.LOOTCONTAINER_AIRDROP_MEDICAL_CRATE; break; case AirdropTypeEnum.SUPPLY: airdropContainer._tpl = ItemTpl.LOOTCONTAINER_AIRDROP_SUPPLY_CRATE; break; - case AirdropTypeEnum.WEAPON: + case AirdropTypeEnum.WEAPON_ARMOR: airdropContainer._tpl = ItemTpl.LOOTCONTAINER_AIRDROP_WEAPON_CRATE; break; case AirdropTypeEnum.COMMON: + airdropContainer._tpl = ItemTpl.LOOTCONTAINER_AIRDROP_COMMON_SUPPLY_CRATE; + break; default: airdropContainer._tpl = ItemTpl.LOOTCONTAINER_AIRDROP_COMMON_SUPPLY_CRATE; break;