Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ createDialog "OT_dialog_buy";
_price = _p;

_pic = "C_Quadbike_01_F" call OT_fnc_vehicleGetPic;
_name = "Quad Bike w/ HMG Backpacks";
_name = localize "STR_DISPLAY_DISPLAY_SHOP_PIC_01";
};
if (_cls == OT_item_UAV) then {
_name = "Quadcopter";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ disableSerialization;
private _fitness = player getVariable ["OT_fitness", 1];

private _ctrl = (findDisplay 8003) displayCtrl 1100;
_ctrl ctrlSetStructuredText parseText format ["<t size=""2"">Fitness</t><br/><t size=""1.1"">Level %1</t><br/><t size=""0.7"">Increases the distance you can sprint</t>", _fitness];
_ctrl ctrlSetStructuredText parseText format [localize "STR_DISPLAY_DISPLAY_CHAR_SHEET_DIAG_01", _fitness];

private _trade = player getVariable ["OT_trade", 1];
_ctrl = (findDisplay 8003) displayCtrl 1101;
_ctrl ctrlSetStructuredText parseText format ["<t size=""2"">Trade</t><br/><t size=""1.1"">Level %1</t><br/><t size=""0.7"">Ability to negotiate better purchasing prices</t>", _trade];
_ctrl ctrlSetStructuredText parseText format [localize "STR_DISPLAY_DISPLAY_CHAR_SHEET_DIAG_02", _trade];

private _stealth = player getVariable ["OT_stealth", 1];
_ctrl = (findDisplay 8003) displayCtrl 1102;
_ctrl ctrlSetStructuredText parseText format ["<t size=""2"">Stealth</t><br/><t size=""1.1"">Level %1</t><br/><t size=""0.7"">Less chance of NATO finding illegal items</t>", _stealth];
_ctrl ctrlSetStructuredText parseText format [localize "STR_DISPLAY_DISPLAY_CHAR_SHEET_DIAG_03", _stealth];

getPerkPrice = {
private _perk = _this select 0;
Expand All @@ -34,13 +34,13 @@ getPerkPrice = {
};

private _price = ["fitness"] call getPerkPrice;
ctrlSetText [1600, format ["Increase Level (-%1 Influence)", _price]];
ctrlSetText [1600, format [localize "STR_DISPLAY_DISPLAY_CHAR_SHEET_DIAG_04", _price]];

_price = ["trade"] call getPerkPrice;
ctrlSetText [1601, format ["Increase Level (-%1 Influence)", _price]];
ctrlSetText [1601, format [localize "STR_DISPLAY_DISPLAY_CHAR_SHEET_DIAG_04", _price]];

_price = ["stealth"] call getPerkPrice;
ctrlSetText [1602, format ["Increase Level (-%1 Influence)", _price]];
ctrlSetText [1602, format [localize "STR_DISPLAY_DISPLAY_CHAR_SHEET_DIAG_04", _price]];

if (_fitness isEqualTo 5) then {
ctrlShow [1600, false];
Expand All @@ -62,7 +62,7 @@ buyPerk = {
private _price = [_perk] call getPerkPrice;
private _inf = player getVariable ["influence", 0];

if (_inf < _price) exitWith { "You do not have enough influence" call OT_fnc_notifyMinor };
if (_inf < _price) exitWith { localize "STR_DISPLAY_DISPLAY_CHAR_SHEET_DIAG_05" call OT_fnc_notifyMinor };

_fitness = _fitness + 1;
player setVariable [format ["OT_%1", _perk], _fitness, true];
Expand All @@ -83,17 +83,17 @@ buyPerk = {
player setVariable ["influence", _inf - _price, true];

private _ctrl = (findDisplay 8003) displayCtrl _idcc;
private _txt = format ["<t size=""2"">Fitness</t><br/><t size=""1.1"">Level %1</t><br/><t size=""0.7"">Increases the distance you can sprint</t>", _fitness];
private _txt = format [localize "STR_DISPLAY_DISPLAY_CHAR_SHEET_DIAG_01", _fitness];
if (_perk isEqualTo "trade") then {
_txt = format ["<t size=""2"">Trade</t><br/><t size=""1.1"">Level %1</t><br/><t size=""0.7"">Ability to negotiate better purchasing prices</t>", _fitness];
_txt = format [localize "STR_DISPLAY_DISPLAY_CHAR_SHEET_DIAG_02", _fitness];
};
if (_perk isEqualTo "stealth") then {
_txt = format ["<t size=""2"">Stealth</t><br/><t size=""1.1"">Level %1</t><br/><t size=""0.7"">Less chance of people recognizing you or finding illegal items</t>", _fitness];
_txt = format [localize "STR_DISPLAY_DISPLAY_CHAR_SHEET_DIAG_06", _fitness];
};

_ctrl ctrlSetStructuredText parseText _txt;
_price = [_perk] call getPerkPrice;
ctrlSetText [_idc, format ["Increase Level (-%1 Influence)", _price]];
ctrlSetText [_idc, format [localize "STR_DISPLAY_DISPLAY_CHAR_SHEET_DIAG_04", _price]];

if (_fitness isEqualTo 5) then {
ctrlShow [_idc, false];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ createDialog "OT_dialog_buy";
// special case
if (_cls == "Set_HMG") then {
_pic = "C_Quadbike_01_F" call OT_fnc_vehicleGetPic;
_txt = "Quadbike w/ HMG Backpacks";
_txt = localize "STR_DISPLAY_DISPLAY_SHOP_PIC_01";
};

if (_cls in OT_allDrugs) then {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ private _items = OT_Resources + OT_allItems + OT_allBackpacks + ["V_RebreatherIA
if (_town in (server getVariable ["NATOabandoned", []]) || OT_adminMode) then {
_items = OT_Resources + OT_allItems + OT_allBackpacks + ["V_RebreatherIA"] + OT_allWeapons + OT_allMagazines + OT_allAttachments + OT_allStaticBackpacks + OT_allOptics + OT_allVests + OT_allHelmets + OT_allClothing;
} else {
hint format ["Only legal items may be imported while NATO controls %1", _town];
hint format [localize "STR_DISPLAY_DISPLAY_IMPORT_DIAG_01", _town];
};
private _cursel = lbCurSel 1500;
lbClear 1500;
Expand Down
Loading