Skip to content

Commit

Permalink
dont mark items as new if progression is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
ASpoonPlaysGames committed Oct 21, 2023
1 parent 2bb9216 commit 988690e
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 988690e

Please sign in to comment.