small change

This commit is contained in:
Zac Surplice
2013-11-27 15:42:38 +11:00
parent a46cec0036
commit 6a58370670
50 changed files with 201 additions and 201 deletions

View File

@@ -4,8 +4,8 @@
*/
private ["_location","_dir","_classname","_text","_object","_objectID","_objectUID","_newclassname","_refund","_obj","_upgrade","_objectCharacterID","_canBuildOnPlot","_friendlies","_nearestPole","_ownerID","_distance","_needText","_findNearestPoles","_findNearestPole","_IsNearPlot","_i","_invResult","_itemOut","_countOut","_abortInvAdd","_addedItems"];
if(TradeInprogress) exitWith { cutText [(localize "str_epoch_player_48") , "PLAIN DOWN"]; };
TradeInprogress = true;
if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_48") , "PLAIN DOWN"]; };
DZE_ActionInProgress = true;
player removeAction s_player_downgrade_build;
s_player_downgrade_build = 1;
@@ -52,7 +52,7 @@ if(_IsNearPlot == 0) then {
};
// exit if not allowed due to plot pole
if(!_canBuildOnPlot) exitWith { TradeInprogress = false; cutText [format[(localize "str_epoch_player_141"),_needText,_distance] , "PLAIN DOWN"]; };
if(!_canBuildOnPlot) exitWith { DZE_ActionInProgress = false; cutText [format[(localize "str_epoch_player_141"),_needText,_distance] , "PLAIN DOWN"]; };
// get cursortarget from addaction
_obj = _this select 3;
@@ -60,7 +60,7 @@ _obj = _this select 3;
// Current charID
_objectCharacterID = _obj getVariable ["CharacterID","0"];
if(DZE_Lock_Door != _objectCharacterID) exitWith { TradeInprogress = false; cutText [(localize "str_epoch_player_49") , "PLAIN DOWN"]; };
if(DZE_Lock_Door != _objectCharacterID) exitWith { DZE_ActionInProgress = false; cutText [(localize "str_epoch_player_49") , "PLAIN DOWN"]; };
// Find objectID
_objectID = _obj getVariable ["ObjectID","0"];
@@ -68,7 +68,7 @@ _objectID = _obj getVariable ["ObjectID","0"];
// Find objectUID
_objectUID = _obj getVariable ["ObjectUID","0"];
if(_objectID == "0" && _objectUID == "0") exitWith {TradeInprogress = false; s_player_upgrade_build = -1; cutText [(localize "str_epoch_player_50"), "PLAIN DOWN"];};
if(_objectID == "0" && _objectUID == "0") exitWith {DZE_ActionInProgress = false; s_player_upgrade_build = -1; cutText [(localize "str_epoch_player_50"), "PLAIN DOWN"];};
// Get classname
_classname = typeOf _obj;
@@ -151,5 +151,5 @@ if ((count _upgrade) > 0) then {
cutText [(localize "str_epoch_player_51"), "PLAIN DOWN"];
};
TradeInprogress = false;
DZE_ActionInProgress = false;
s_player_downgrade_build = -1;