Skip to content

Commit

Permalink
Krypto fix 2.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Windmolders committed Mar 30, 2015
1 parent c3a0105 commit 5907d14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions a3_epoch_server_zcp/zcp/functions/fn_giveReward.sqf
Expand Up @@ -32,13 +32,13 @@ switch (_reward) do {
};

_cIndex = EPOCH_customVars find "Crypto";
_vars =_ZCP_currentCapper getVariable["VARS",[] + EPOCH_defaultVars_SEPXVar];
_vars = _ZCP_currentCapper getVariable["VARS",[] + EPOCH_defaultVars_SEPXVar];
_current_crypto = _vars select _cIndex;
// epoch rules: Max 25000 cash on you.
_current_crypto = ( _current_crypto + _awardToGive )min 25000;

_vars set[_cIndex,_current_crypto];
_ZCP_currentCapper setVariable["VARS",_vars];
_ZCP_currentCapper setVariable["VARS",_vars,true];
[["effectCrypto",_current_crypto],owner _ZCP_currentCapper]call EPOCH_sendPublicVariableClient;

PV_ZCP_zupastic = ["ZCP",format["%2 captured %1 and received his %3 Krypto. The base will dismantle in %4 seconds.",_ZCP_name,name _ZCP_currentCapper,_awardToGive,ZCP_BaseCleanupDelay]];
Expand Down Expand Up @@ -121,4 +121,4 @@ switch (_reward) do {
//Crypto fallback.
[_ZCP_currentCapper,_ZCP_name,_capturePosition,"Crypto"] call ZCP_fnc_giveReward;
};
};
};

0 comments on commit 5907d14

Please sign in to comment.