Fixed airdrop crates having the incorrect id

This commit is contained in:
Dev 2024-09-25 19:07:02 +01:00
parent c7a44456bb
commit 4d8aaea4a9
2 changed files with 8 additions and 6 deletions

View File

@ -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",
}

View File

@ -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;