From 2d0e8dea7e6e65bf89050eb1e60b8d515624e5ec Mon Sep 17 00:00:00 2001 From: Glowbal Date: Fri, 3 Apr 2015 01:27:22 +0200 Subject: [PATCH 1/2] Added banana to curator item list --- addons/common/CfgVehicles.hpp | 17 +++++++++++++++++ addons/common/config.cpp | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/addons/common/CfgVehicles.hpp b/addons/common/CfgVehicles.hpp index 45f384eaf8..9931303d25 100644 --- a/addons/common/CfgVehicles.hpp +++ b/addons/common/CfgVehicles.hpp @@ -107,4 +107,21 @@ class CfgVehicles { class TransportItems {}; class TransportBackpacks {}; }; + + class Item_Base_F; + class ACE_bananaItem: Item_Base_F { + scope = 2; + scopeCurator = 2; + displayName = $STR_ACE_Common_bananaDisplayName; + author = "$STR_ACE_Common_ACETeam"; + vehicleClass = "Items"; + class TransportItems + { + class ACE_banana + { + name = "ACE_banana"; + count = 1; + }; + }; + }; }; diff --git a/addons/common/config.cpp b/addons/common/config.cpp index afd118ff1c..90309af612 100644 --- a/addons/common/config.cpp +++ b/addons/common/config.cpp @@ -2,7 +2,7 @@ class CfgPatches { class ADDON { - units[] = {"ACE_Box_Misc"}; + units[] = {"ACE_Box_Misc", "ACE_bananaItem"}; weapons[] = {"ACE_ItemCore","ACE_FakePrimaryWeapon", "ACE_Banana"}; requiredVersion = REQUIRED_VERSION; requiredAddons[] = {"ace_main"}; From 4478602cfba3226f508875a4c6233c40dac71a33 Mon Sep 17 00:00:00 2001 From: Glowbal Date: Fri, 3 Apr 2015 12:56:12 +0200 Subject: [PATCH 2/2] Consistent use of quotes for localized text --- addons/common/CfgVehicles.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/common/CfgVehicles.hpp b/addons/common/CfgVehicles.hpp index 9931303d25..eaa585691e 100644 --- a/addons/common/CfgVehicles.hpp +++ b/addons/common/CfgVehicles.hpp @@ -112,7 +112,7 @@ class CfgVehicles { class ACE_bananaItem: Item_Base_F { scope = 2; scopeCurator = 2; - displayName = $STR_ACE_Common_bananaDisplayName; + displayName = "$STR_ACE_Common_bananaDisplayName"; author = "$STR_ACE_Common_ACETeam"; vehicleClass = "Items"; class TransportItems