aboutsummaryrefslogtreecommitdiff
path: root/Northstar.CustomServers
diff options
context:
space:
mode:
authorWilliam Miller <william-millennium@hotmail.com>2023-10-11 18:00:11 -0300
committerGitHub <noreply@github.com>2023-10-11 23:00:11 +0200
commitbdb2fa3ca291101dc861d19e8979077bf8fdf57a (patch)
treec975b117adfc26e34b4b75a74572c0f1b067d141 /Northstar.CustomServers
parent3714f23edde5a48aa29560dc74fc5a59ce2ca85a (diff)
downloadNorthstarMods-bdb2fa3ca291101dc861d19e8979077bf8fdf57a.tar.gz
NorthstarMods-bdb2fa3ca291101dc861d19e8979077bf8fdf57a.zip
Unlock paid items with progression enabled (#726)
When turning on progression now, items that should be purchased from the store will remain unlocked. These items contain among others the prime versions of the various Titans. Some mods make explicit use of prime Titans to switch to alternate loadouts (Brute, Archon, ...) Some players would like to opt into progression but decide against it due to losing access to prime Titans As such we should keep them unlocked, even when progression is enabled as they cannot be obtained through progression alone anyway.
Diffstat (limited to 'Northstar.CustomServers')
-rw-r--r--Northstar.CustomServers/mod/scripts/vscripts/_items.nut12
1 files changed, 12 insertions, 0 deletions
diff --git a/Northstar.CustomServers/mod/scripts/vscripts/_items.nut b/Northstar.CustomServers/mod/scripts/vscripts/_items.nut
index 5878da13..a5c3e270 100644
--- a/Northstar.CustomServers/mod/scripts/vscripts/_items.nut
+++ b/Northstar.CustomServers/mod/scripts/vscripts/_items.nut
@@ -5700,6 +5700,12 @@ bool function IsSubItemLocked( entity player, string ref, string parentRef )
{
if ( DevEverythingUnlocked( player ) )
return false
+
+ if ( IsItemPurchasableEntitlement( ref, parentRef ) )
+ return false
+
+ if ( GetItemType( ref ) == eItemTypes.PRIME_TITAN || GetSubitemType( parentRef, ref ) == eItemTypes.PRIME_TITAN )
+ return false
if ( IsItemInEntitlementUnlock( ref, parentRef ) )
{
@@ -5819,6 +5825,12 @@ bool function IsItemLocked( entity player, string ref )
{
if ( DevEverythingUnlocked( player ) )
return false
+
+ if ( IsItemPurchasableEntitlement( ref ) )
+ return false
+
+ if ( GetItemType( ref ) == eItemTypes.PRIME_TITAN )
+ return false
if ( IsItemInEntitlementUnlock( ref ) )
{