fn_crGetMulti

This commit is contained in:
Wyqer 2019-12-05 16:35:53 +01:00
parent dca429b464
commit d8ea2adebf
No known key found for this signature in database
GPG Key ID: D7E2F8BD7F1E48FA
1 changed files with 5 additions and 8 deletions

View File

@ -2,20 +2,17 @@
File: fn_crGetMulti.sqf
Author: KP Liberation Dev Team - https://github.com/KillahPotatoes
Date: 2017-10-08
Last Update: 2019-12-03
Last Update: 2019-12-04
License: MIT License - http://www.opensource.org/licenses/MIT
Description:
Returns the current level of the civil reputation. (positive or negative)
Returns the current multiplier of the civilian reputation.
Parameter(s):
NONE
Returns:
Reputation level [NUMBER]
Reputation multiplier [NUMBER]
*/
// TODO
private _reputation = if (KP_liberation_civ_rep < 0) then {KP_liberation_civ_rep * -1} else {KP_liberation_civ_rep};
private _return = floor (_reputation / 25);
if (_return == 4) then {_return = 3;};
_return
3 min (floor (abs (KP_liberation_civ_rep / 25)))