diff options
author | Jack <66967891+ASpoonPlaysGames@users.noreply.github.com> | 2023-11-03 16:10:40 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-03 17:10:40 +0100 |
commit | faff062f6cbdac84803ced8a7c6e69dd7731af57 (patch) | |
tree | a080ecbe04a15b41fd98e690774fb86c70c4b62e /Northstar.CustomServers/mod/scripts/vscripts | |
parent | 82f87121da416de0f6feab1fe2aa775c9c5b3088 (diff) | |
download | NorthstarMods-faff062f6cbdac84803ced8a7c6e69dd7731af57.tar.gz NorthstarMods-faff062f6cbdac84803ced8a7c6e69dd7731af57.zip |
Don't mark items as new if progression is disabled (#752)
Also doesn't show the challenge completion notifications in game as a nice side effect
Diffstat (limited to 'Northstar.CustomServers/mod/scripts/vscripts')
-rw-r--r-- | Northstar.CustomServers/mod/scripts/vscripts/_items.nut | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/_items.nut b/Northstar.CustomServers/mod/scripts/vscripts/_items.nut index a5c3e270..a23a68b0 100644 --- a/Northstar.CustomServers/mod/scripts/vscripts/_items.nut +++ b/Northstar.CustomServers/mod/scripts/vscripts/_items.nut @@ -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] |