Skip to content

Commit

Permalink
Beacon can now find PrimalItem_ItemTrait subclasses
Browse files Browse the repository at this point in the history
  • Loading branch information
thommcgrath committed Jan 11, 2025
1 parent 6068611 commit 050236e
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Project/Modules/Game Support/ArkSA/ModDiscoveryEngine2.xojo_code
Original file line number Diff line number Diff line change
Expand Up @@ -1319,6 +1319,18 @@ Protected Class ModDiscoveryEngine2
Self.ScanInventory(Entry.Key.StringValue)
Next
End If

If NativeParents.HasKey("/Script/CoreUObject.Class'/Script/ShooterGame.PrimalItem_ItemTrait'") Then
Var TraitAssets As Dictionary = NativeParents.Value("/Script/CoreUObject.Class'/Script/ShooterGame.PrimalItem_ItemTrait'")
For Each Entry As DictionaryEntry In TraitAssets
Var TraitPath As String = Entry.Key.StringValue
Var TraitOptions As Integer
If Self.mScriptedObjectPaths.HasKey(TraitPath) = False Then
TraitOptions = TraitOptions Or Self.ItemOptionLowConfidence
End If
Self.ScanItem(TraitPath, TraitOptions)
Next
End If
End Sub
#tag EndMethod

Expand Down Expand Up @@ -1447,6 +1459,15 @@ Protected Class ModDiscoveryEngine2
Next
Next
End If

#if false
// Singletons - not useful yet
Var Singletons As JSONMBS = AssetContainer.Query("$.ServerExtraWorldSingletonActorClasses[*].ObjectPath")
For Idx As Integer = 0 To Singletons.LastRowIndex
Var SingletonPath As String = Self.NormalizePath(Singletons.ValueAt(Idx))
Break
Next
#endif
Next
End Sub
#tag EndMethod
Expand Down

0 comments on commit 050236e

Please sign in to comment.