Logistics wirecutter - Add wirecutter stats to ACE arsenal (#9296)

* Added wirecutter stats to arsenal

* Update addons/logistics_wirecutter/ACE_Arsenal_Stats.hpp

Co-authored-by: PabstMirror <pabstmirror@gmail.com>

* Update addons/logistics_wirecutter/ACE_Arsenal_Stats.hpp

Co-authored-by: PabstMirror <pabstmirror@gmail.com>

* Update ACE_Arsenal_Stats.hpp

---------

Co-authored-by: PabstMirror <pabstmirror@gmail.com>
This commit is contained in:
johnb432 2023-07-29 00:01:25 +02:00 committed by GitHub
parent 2f0ed27d93
commit add312cbf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 25 additions and 1 deletions

View File

@ -0,0 +1,23 @@
class EGVAR(arsenal,stats) {
class statBase;
class GVAR(wireCutter): statBase {
scope = 2;
priority = -1;
stats[] = {QGVAR(hasWirecutter)};
displayName = CSTRING(wirecutterName);
showText = 1;
textStatement = QUOTE(localize QUOTE(ELSTRING(common,yes)));
condition = QUOTE(getNumber (_this select 1 >> (_this select 0) select 0) > 0);
tabs[] = {{4,5}, {}};
};
class GVAR(wireCutterItem): statBase {
scope = 2;
priority = -1;
stats[] = {"ACE_isWirecutter"};
displayName = CSTRING(wirecutterName);
showText = 1;
textStatement = QUOTE(localize QUOTE(ELSTRING(common,yes)));
condition = QUOTE(getNumber (_this select 1 >> (_this select 0) select 0) > 0);
tabs[] = {{}, {7}};
};
};

View File

@ -17,3 +17,4 @@ class CfgPatches {
#include "CfgEventHandlers.hpp" #include "CfgEventHandlers.hpp"
#include "CfgWeapons.hpp" #include "CfgWeapons.hpp"
#include "CfgVehicles.hpp" #include "CfgVehicles.hpp"
#include "ACE_Arsenal_Stats.hpp"

View File

@ -6,7 +6,7 @@ class EGVAR(arsenal,stats) {
stats[] = {QGVAR(entrenchingTool)}; stats[] = {QGVAR(entrenchingTool)};
displayName = CSTRING(EntrenchingToolName); displayName = CSTRING(EntrenchingToolName);
showText = 1; showText = 1;
textStatement = QUOTE(localize 'STR_ACE_Common_Yes'); // using localization macros in QUOTE is a PITA textStatement = QUOTE(localize QUOTE(ELSTRING(common,yes)));
condition = QUOTE(getNumber (_this select 1 >> (_this select 0) select 0) > 0); condition = QUOTE(getNumber (_this select 1 >> (_this select 0) select 0) > 0);
tabs[] = {{0,1,5}, {7}}; tabs[] = {{0,1,5}, {7}};
}; };