Skip to content

Commit

Permalink
Merge pull request #917 from pool011/Remove-ACE-Pharm-items-from-filter
Browse files Browse the repository at this point in the history
Removed items in ACE Pharmacy from fn_checkItemValidity
  • Loading branch information
AndreasBrostrom authored Jun 29, 2023
2 parents 59a350e + 5d62ac2 commit d02b7a2
Showing 1 changed file with 1 addition and 16 deletions.
17 changes: 1 addition & 16 deletions cScripts/functions/logistics/fn_checkItemValidity.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,6 @@ if (EGVAR(patches,usesACE)) then {
if (_item isKindOf "ACE_WaterBottle" || _item isKindOf "ACE_Canteen" || _item isKindOf "ACE_Can_Spirit" || _item isKindOf "ACE_MRE_LambCurry") then {
_return = if (!isNil {acex_field_rations_enabled}) then {acex_field_rations_enabled} else {false};
};

if !(EGVAR(patches,usesKat)) then {
// airway
if (_item in ["kat_larynx", "kat_guedel", "kat_accuvac"]) then { _return = false };
// breathing
if (_item in ["kat_Pulseoximeter", "kat_chestSeal", "kat_aatKit", "kat_ncdKit", "kat_stethoscope", "kat_BVM", "kat_pocketBVM", "kat_oxygenTank_150_Item", "kat_oxygenTank_300_Item", "kat_oxygenTank_150_Empty", "kat_oxygenTank_300_Empty"]) then { _return = false };
// chemical
if (_item in ["kat_gasmaskFilter", "kat_sealant", "KAT_CAS_M43_Bomb", "KAT_CAS_R_80mm_GAS_POD"]) then { _return = false };
// circulation
if (_item in ["kat_AED", "kat_bloodIV_A", "kat_bloodIV_A_250", "kat_bloodIV_A_500", "kat_bloodIV_A_N", "kat_bloodIV_A_N_250", "kat_bloodIV_A_N_500", "kat_bloodIV_AB", "kat_bloodIV_AB_250", "kat_bloodIV_AB_500", "kat_bloodIV_AB_N", "kat_bloodIV_AB_N_250", "kat_bloodIV_AB_N_500", "kat_bloodIV_B", "kat_bloodIV_B_250", "kat_bloodIV_B_500", "kat_bloodIV_B_N", "kat_bloodIV_B_N_250", "kat_bloodIV_B_N_500", "kat_bloodIV_O", "kat_bloodIV_O_250", "kat_bloodIV_O_500", "kat_bloodIV_O_N", "kat_bloodIV_O_N_250", "kat_bloodIV_O_N_500", "kat_crossPanel", "KAT_Empty_bloodIV_250", "KAT_Empty_bloodIV_500", "kat_X_AED"]) then { _return = false };
// circulation
if (_item in ["kat_amiodarone", "kat_atropine", "kat_CaffeineItem", "kat_CarbonateItem", "kat_EACA", "kat_etomidate", "kat_fentanyl", "kat_flumazenil", "kat_IO_FAST", "kat_IV_16", "kat_ketamine", "kat_lidocaine", "kat_nalbuphine", "kat_naloxone", "kat_nitroglycerin", "kat_norepinephrine", "kat_PainkillerItem", "kat_PervitinItem", "kat_phenylephrine", "kat_TXA"]) then { _return = false };
// surgery
if (_item in ["kat_clamp", "kat_plate", "kat_retractor", "kat_scalpel", "kat_vacuum"]) then { _return = false };
};
};

_return
_return

0 comments on commit d02b7a2

Please sign in to comment.