fn_crGetMulti
This commit is contained in:
parent
dca429b464
commit
d8ea2adebf
|
@ -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)))
|
||||
|
|
Loading…
Reference in New Issue