mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
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:
parent
2f0ed27d93
commit
add312cbf1
23
addons/logistics_wirecutter/ACE_Arsenal_Stats.hpp
Normal file
23
addons/logistics_wirecutter/ACE_Arsenal_Stats.hpp
Normal 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}};
|
||||
};
|
||||
};
|
@ -17,3 +17,4 @@ class CfgPatches {
|
||||
#include "CfgEventHandlers.hpp"
|
||||
#include "CfgWeapons.hpp"
|
||||
#include "CfgVehicles.hpp"
|
||||
#include "ACE_Arsenal_Stats.hpp"
|
||||
|
@ -6,7 +6,7 @@ class EGVAR(arsenal,stats) {
|
||||
stats[] = {QGVAR(entrenchingTool)};
|
||||
displayName = CSTRING(EntrenchingToolName);
|
||||
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);
|
||||
tabs[] = {{0,1,5}, {7}};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user