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 { export enum AirdropTypeEnum {
COMMON = "common", COMMON = "mixed",
SUPPLY = "supply", SUPPLY = "barter",
MEDICAL = "medical", FOOD_MEDICAL = "foodMedical",
WEAPON = "weapon", WEAPON_ARMOR = "weaponArmor",
} }

View File

@ -91,16 +91,18 @@ export class AirdropService {
}; };
switch (airdropType) { switch (airdropType) {
case AirdropTypeEnum.MEDICAL: case AirdropTypeEnum.FOOD_MEDICAL:
airdropContainer._tpl = ItemTpl.LOOTCONTAINER_AIRDROP_MEDICAL_CRATE; airdropContainer._tpl = ItemTpl.LOOTCONTAINER_AIRDROP_MEDICAL_CRATE;
break; break;
case AirdropTypeEnum.SUPPLY: case AirdropTypeEnum.SUPPLY:
airdropContainer._tpl = ItemTpl.LOOTCONTAINER_AIRDROP_SUPPLY_CRATE; airdropContainer._tpl = ItemTpl.LOOTCONTAINER_AIRDROP_SUPPLY_CRATE;
break; break;
case AirdropTypeEnum.WEAPON: case AirdropTypeEnum.WEAPON_ARMOR:
airdropContainer._tpl = ItemTpl.LOOTCONTAINER_AIRDROP_WEAPON_CRATE; airdropContainer._tpl = ItemTpl.LOOTCONTAINER_AIRDROP_WEAPON_CRATE;
break; break;
case AirdropTypeEnum.COMMON: case AirdropTypeEnum.COMMON:
airdropContainer._tpl = ItemTpl.LOOTCONTAINER_AIRDROP_COMMON_SUPPLY_CRATE;
break;
default: default:
airdropContainer._tpl = ItemTpl.LOOTCONTAINER_AIRDROP_COMMON_SUPPLY_CRATE; airdropContainer._tpl = ItemTpl.LOOTCONTAINER_AIRDROP_COMMON_SUPPLY_CRATE;
break; break;