Skip to content

Commit

Permalink
Engram control uniqueness detection adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
thommcgrath committed Jun 1, 2024
1 parent 57aeb35 commit 148d50d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
16 changes: 11 additions & 5 deletions Project/Modules/Game Support/Ark/Configs/EngramControl.xojo_code
Original file line number Diff line number Diff line change
Expand Up @@ -860,11 +860,17 @@ Inherits Ark.ConfigGroup
End If

Var Parts As New Dictionary
Parts.Value(Self.KeyAutoUnlockLevel) = AutoUnlocks
Parts.Value(Self.KeyHidden) = Hidden
Parts.Value(Self.KeyPlayerLevel) = PlayerLevel
Parts.Value(Self.KeyUnlockPoints) = RequiredPoints
Parts.Value(Self.KeyRemovePrerequisites) = RemovePrerequisites
If Hidden <> Self.mOnlyAllowSpecifiedEngrams Then
Parts.Value(Self.KeyHidden) = Hidden
End If
If Hidden = False Then
Parts.Value(Self.KeyAutoUnlockLevel) = AutoUnlocks
Parts.Value(Self.KeyPlayerLevel) = PlayerLevel
If AutoUnlocks = False Then
Parts.Value(Self.KeyUnlockPoints) = RequiredPoints
Parts.Value(Self.KeyRemovePrerequisites) = RemovePrerequisites
End If
End If

Return Beacon.GenerateJson(Parts, False)
End Function
Expand Down
16 changes: 11 additions & 5 deletions Project/Modules/Game Support/ArkSA/Configs/EngramControl.xojo_code
Original file line number Diff line number Diff line change
Expand Up @@ -883,11 +883,17 @@ Implements Beacon.BlueprintConsumer
End If

Var Parts As New Dictionary
Parts.Value(Self.KeyAutoUnlockLevel) = AutoUnlocks
Parts.Value(Self.KeyHidden) = Hidden
Parts.Value(Self.KeyPlayerLevel) = PlayerLevel
Parts.Value(Self.KeyUnlockPoints) = RequiredPoints
Parts.Value(Self.KeyRemovePrerequisites) = RemovePrerequisites
If Hidden <> Self.mOnlyAllowSpecifiedEngrams Then
Parts.Value(Self.KeyHidden) = Hidden
End If
If Hidden = False Then
Parts.Value(Self.KeyAutoUnlockLevel) = AutoUnlocks
Parts.Value(Self.KeyPlayerLevel) = PlayerLevel
If AutoUnlocks = False Then
Parts.Value(Self.KeyUnlockPoints) = RequiredPoints
Parts.Value(Self.KeyRemovePrerequisites) = RemovePrerequisites
End If
End If

Return Beacon.GenerateJson(Parts, False)
End Function
Expand Down

0 comments on commit 148d50d

Please sign in to comment.