From d01e5916963bc02909ff99156344639141bf126b Mon Sep 17 00:00:00 2001 From: Luke Date: Mon, 9 Sep 2024 22:21:18 -0400 Subject: [PATCH] Adjusted the notification for reaching the time limit to use paradigm notification --- server/functions/basebuilding/fn_resupplybuilding.sqf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/server/functions/basebuilding/fn_resupplybuilding.sqf b/server/functions/basebuilding/fn_resupplybuilding.sqf index be054ad..f63707e 100644 --- a/server/functions/basebuilding/fn_resupplybuilding.sqf +++ b/server/functions/basebuilding/fn_resupplybuilding.sqf @@ -100,15 +100,15 @@ private _supplyConsumptionRate = _supplySource getVariable ["para_g_supply_consu private _proposedSuppliesSum = _currentSupplies + _supplies; private _proposedRemainingTimeSeconds = _proposedSuppliesSum / _supplyConsumptionRate; -private _maxTimeLimit = 7200; // max time limit a building can have -2 hours in seconds +private _maxTimeLimit = 7200; // max time limit a building can have, 2 hours in seconds // Check if the current lifetime would exceed the time limit if ( _proposedRemainingTimeSeconds >= _maxTimeLimit) then { // if the supplies that are being added will exceed 2 hours for the building, trim the supplies so that it only reaches 2 hours max. This will still consume the item!!! _supplies = (_maxTimeLimit * _supplyConsumptionRate) - _currentSupplies; - hint "Time limit has reached its max, item still consumed."; - //this hint is important, it will notfiy players that the time limit has reached max, and adding any more items will just consume them without adding time + // notify players that time limit has been reached and item was still consumed + ["TaskFailed",["",localize "STR_para_build_maxtimereached"]] call para_c_fnc_show_notification; };