aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers/mod/scripts/vscripts/faction_xp.gnut
blob: 5fd7d1014af53e5e2080b529d4db3964ab05cd2d (plain)
1
2
3
4
5
6
7
8
9
10
global function AddFactionXP

void function AddFactionXP( entity player, int amount )
{
	string faction = GetFactionChoice( player )
	// increment xp
	player.SetPersistentVar( "factionXP[" + faction + "]", min( FactionGetXP( player, faction ) + amount, FactionGetMaxXP( faction ) ) )
	
	// note: no notif for faction level up
}