Skip to content

Commit

Permalink
Don't mark items as new if progression is disabled (#752)
Browse files Browse the repository at this point in the history
Also doesn't show the challenge completion notifications in game as a nice side effect
  • Loading branch information
ASpoonPlaysGames authored Nov 3, 2023
1 parent 82f8712 commit faff062
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Northstar.CustomServers/mod/scripts/vscripts/_items.nut
Original file line number Diff line number Diff line change
Expand Up @@ -10231,6 +10231,10 @@ void function StatUnlock_Unlocked( entity player, string itemRef, string parentR
if ( IsItemNew( player, itemRef, parentRef ) )
return

// early out if the player has progression disabled
if ( !ProgressionEnabledForPlayer( player ) )
return

int refGuid = file.itemRefToGuid[itemRef]
int parentRefGuid = parentRef == "" ? 0 : file.itemRefToGuid[parentRef]

Expand Down

0 comments on commit faff062

Please sign in to comment.