Merge pull request #991 from morgoth0/patch-16

Patch 16
This commit is contained in:
He-Man 2018-08-16 16:47:21 +02:00 committed by GitHub
commit c91b182f3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
11 changed files with 19 additions and 19 deletions

View File

@ -35,7 +35,7 @@ if (EPOCH_playerCrypto > 0) then {
if (_maintainCount > 0) then {
if (EPOCH_playerCrypto < _maintainCount) exitwith {
[format ["You need %1 Krypto to maintain your base.",_maintainCount], 5] call Epoch_message;
[format ["You need %1 Crypto to maintain your base.",_maintainCount], 5] call Epoch_message;
};
_rnd = format ["rmx_var_temp%1%2",floor random 100, selectRandom ["A","B","C","D","E","F"]];
@ -54,7 +54,7 @@ if (EPOCH_playerCrypto > 0) then {
EPOCH_maintainLockout = nil;
};
[format["Cost %1 Krypto to maintain base.", _maintainCount], 5] call Epoch_message;
[format["Cost %1 Crypto to maintain base.", _maintainCount], 5] call Epoch_message;
} else {
["Nothing needs Maintaining", 5] call Epoch_message;
};

View File

@ -47,8 +47,8 @@ if (!isNull EPOCH_p2ptradeTarget) then {
_tradeCryptoOffer = (_tradeOffer select 1);
if (_tradeCryptoOffer > 0) then {
_index = lbAdd[1502, format["%1 Krypto", _tradeCryptoOffer]];
lbSetData[1502, _index, "Krypto"];
_index = lbAdd[1502, format["%1 Crypto", _tradeCryptoOffer]];
lbSetData[1502, _index, "Crypto"];
lbSetPicture[1502, _index, "\x\addons\a3_epoch_code\Data\UI\cc_ca.paa"];
};

View File

@ -133,7 +133,7 @@ if !(isNull EPOCH_lastNPCtradeTarget) then {
_cryptoCount = _cryptoCount + _worth;
};
};
ctrlSetText [_CryptoInCtrl, (format["%1 Krypto", _cryptoCount])];
ctrlSetText [_CryptoInCtrl, (format["%1 Crypto", _cryptoCount])];
_cryptoCount = 0;
_sizeOut = lbSize _TraderItemsOutBox;
if (_sizeOut > 0) then {
@ -152,7 +152,7 @@ if !(isNull EPOCH_lastNPCtradeTarget) then {
_cryptoCount = _cryptoCount + _worth;
};
};
ctrlSetText [_CryptoOutCtrl, (format["%1 Krypto", _cryptoCount])];
ctrlSetText [_CryptoOutCtrl, (format["%1 Crypto", _cryptoCount])];
if (_control == _PlayerItemsBox) then {
lbSetCurSel [_PlayerFilerDropDown, 0];
};

View File

@ -127,7 +127,7 @@ if !(isNull EPOCH_lastNPCtradeTarget) then {
_cryptoCount = _cryptoCount + _worth;
};
};
ctrlSetText [_CryptoInCtrl, (format["%1 Krypto", _cryptoCount])];
ctrlSetText [_CryptoInCtrl, (format["%1 Crypto", _cryptoCount])];
_cryptoCount = 0;
_sizeOut = lbSize _TraderItemsOutBox;
if (_sizeOut > 0) then {
@ -146,7 +146,7 @@ if !(isNull EPOCH_lastNPCtradeTarget) then {
_cryptoCount = _cryptoCount + _worth;
};
};
ctrlSetText [_CryptoOutCtrl, (format["%1 Krypto", _cryptoCount])];
ctrlSetText [_CryptoOutCtrl, (format["%1 Crypto", _cryptoCount])];
}
else {
["Limit one per trade", 5] call Epoch_message;

View File

@ -49,7 +49,7 @@ if (isClass (_config >> _uiItem)) then {
_cryptoCount = _cryptoCount + _worth;
};
};
ctrlSetText [_CryptoInCtrl, (format["%1 Krypto", _cryptoCount])];
ctrlSetText [_CryptoInCtrl, (format["%1 Crypto", _cryptoCount])];
_cryptoCount = 0;
_sizeOut = lbSize _TraderItemsOutBox;
if (_sizeOut > 0) then {
@ -68,5 +68,5 @@ if (isClass (_config >> _uiItem)) then {
_cryptoCount = _cryptoCount + _worth;
};
};
ctrlSetText [_CryptoOutCtrl, (format["%1 Krypto", _cryptoCount])];
ctrlSetText [_CryptoOutCtrl, (format["%1 Crypto", _cryptoCount])];
};

View File

@ -7,9 +7,9 @@ if (!isNull _this) then {
_getCrypto = _this getVariable["Crypto", 0];
if (_getCrypto > 0) then {
[player, Epoch_personalToken, _this] remoteExec ["EPOCH_server_takeCrypto",2];
[format["You found %1 Krypto", _getCrypto], 5] call Epoch_message;
[format["You found %1 Crypto", _getCrypto], 5] call Epoch_message;
} else {
["No Krypto found", 5] call Epoch_message;
["No Crypto found", 5] call Epoch_message;
};
};
[] spawn{

View File

@ -49,7 +49,7 @@ if (_playerUID == Epoch_my_GroupUID || {_x select 0 == _playerUID}count (_modArr
_upgradePrice = parseNumber (EPOCH_group_upgrade_lvl select (_found+3));
if ((EPOCH_playerCrypto-_upgradePrice) >= 0) then {
_upgradeSlots = EPOCH_group_upgrade_lvl select (_found+2);
_txt = format["Do you want to upgrade your group from %1 to %2 slots for %3 Krypto?",_groupSize,_upgradeSlots,_upgradePrice];
_txt = format["Do you want to upgrade your group from %1 to %2 slots for %3 Crypto?",_groupSize,_upgradeSlots,_upgradePrice];
[_txt,_upgradePrice] spawn {
params ["_txt","_upgradePrice"];
_ret = [_txt,"Epoch Group Menu",true,true] call BIS_fnc_GUImessage;
@ -58,7 +58,7 @@ if (_playerUID == Epoch_my_GroupUID || {_x select 0 == _playerUID}count (_modArr
};
};
} else {
["You don't have enough Krypto to upgrade your group!","Epoch Group Menu",true,false] spawn BIS_fnc_GUImessage;
["You don't have enough Crypto to upgrade your group!","Epoch Group Menu",true,false] spawn BIS_fnc_GUImessage;
};
};
};

View File

@ -71,7 +71,7 @@ if (_currentMaxMember < _groupSize) then {
if (_playerIsLeader || _playerIsMod) then {
_found = EPOCH_group_upgrade_lvl find _currentMaxMember;
if (count EPOCH_group_upgrade_lvl >= (_found+3)) then {
_BtnInvite ctrlSetText format ["Upgrade +%1 Slots for %2 Krypto",abs (_currentMaxMember-(EPOCH_group_upgrade_lvl select (_found+2))),EPOCH_group_upgrade_lvl select (_found+3)];
_BtnInvite ctrlSetText format ["Upgrade +%1 Slots for %2 Crypto",abs (_currentMaxMember-(EPOCH_group_upgrade_lvl select (_found+2))),EPOCH_group_upgrade_lvl select (_found+3)];
} else {
_BtnInvite ctrlSetText format ["No Upgrade Available!"];
_BtnInvite ctrlEnable false;

View File

@ -48,6 +48,6 @@ if (count (_array-[32]) == 0) then { //32 = SPACE
};
};
} else {
["You don't have enough Krypto to create a group!","Epoch Group Menu",true,false] spawn BIS_fnc_GUImessage;
["You don't have enough Crypto to create a group!","Epoch Group Menu",true,false] spawn BIS_fnc_GUImessage;
};
};

View File

@ -19,7 +19,7 @@ if (Epoch_my_GroupUID != "") exitWith {(findDisplay -1200) closeDisplay 0};
disableSerialization;
_textCtrl = (findDisplay -1200) displayCtrl 22;
if (EPOCH_playerCrypto < parseNumber(EPOCH_group_upgrade_lvl select 1)) then {
_textCtrl CtrlSetText format ["Need %1 Krypto to create your own group",EPOCH_group_upgrade_lvl select 1];
_textCtrl CtrlSetText format ["Need %1 Crypto to create your own group",EPOCH_group_upgrade_lvl select 1];
} else {
_textCtrl CtrlSetText format["Cost to create group %1 Krypto", EPOCH_group_upgrade_lvl select 1];
_textCtrl CtrlSetText format["Cost to create group %1 Crypto", EPOCH_group_upgrade_lvl select 1];
};

View File

@ -81,7 +81,7 @@ class player_takeCrypto
condition = "dyna_isDeadPlayer || (dyna_cursorTarget getVariable [""Crypto"",0]) > 0";
action = "dyna_cursorTarget call EPOCH_takeCrypto;";
icon = "x\addons\a3_epoch_code\Data\UI\buttons\krypto.paa";
tooltip = "Take Krypto";
tooltip = "Take Crypto";
};
class player_trade
{