Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unlock paid items with progression enabled #726

Merged
merged 11 commits into from
Oct 11, 2023
13 changes: 12 additions & 1 deletion Northstar.CustomServers/mod/scripts/vscripts/_items.nut
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
ASpoonPlaysGames marked this conversation as resolved.
Show resolved Hide resolved
return false

if ( IsItemInEntitlementUnlock( ref, parentRef ) )
{
Expand All @@ -5724,7 +5730,6 @@ bool function IsSubItemLocked( entity player, string ref, string parentRef )

if ( IsItemLocked( player, parentRef ) )
return true
ASpoonPlaysGames marked this conversation as resolved.
Show resolved Hide resolved

if ( GetSubItemUnlockType( ref, parentRef ) == eUnlockType.STAT )
{
if ( !IsSubItemLockedForStat( player, ref, parentRef) )
Expand Down Expand Up @@ -5819,6 +5824,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 ) )
{
Expand Down