diff --git a/Nautilus/Assets/Gadgets/ScanningGadget.cs b/Nautilus/Assets/Gadgets/ScanningGadget.cs
index bd248dce5..9e37e500d 100644
--- a/Nautilus/Assets/Gadgets/ScanningGadget.cs
+++ b/Nautilus/Assets/Gadgets/ScanningGadget.cs
@@ -1,3 +1,4 @@
+using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using Nautilus.Handlers;
@@ -213,6 +214,31 @@ public ScanningGadget WithEncyclopediaEntry(string path, Sprite popupSprite, Tex
return this;
}
+
+ ///
+ /// Adds additional info on how the Scanner tool should treat this item when scanning it.
+ ///
+ /// The blueprint that gets unlocked once this item is scanned.
+ /// The amount of seconds it takes to scan this item.
+ /// Is this a fragment?
+ /// The encyclopedia key to unlock once the scanning is completed.
+ /// Should this object be destroyed after a successful scan?
+ /// A reference to this instance after the operation has completed.
+ public ScanningGadget WithScannerEntry(TechType blueprint, float scanTime, bool isFragment = false, string encyKey = null, bool destroyAfterScan = false)
+ {
+ ScannerEntryData = new PDAScanner.EntryData
+ {
+ key = prefab.Info.TechType,
+ encyclopedia = encyKey,
+ scanTime = scanTime,
+ destroyAfterScan = destroyAfterScan,
+ isFragment = isFragment,
+ blueprint = blueprint,
+ totalFragments = FragmentsToScan,
+ };
+
+ return this;
+ }
///
/// Adds additional info on how the Scanner tool should treat this item when scanning it.
@@ -222,6 +248,8 @@ public ScanningGadget WithEncyclopediaEntry(string path, Sprite popupSprite, Tex
/// The encyclopedia key to unlock once the scanning is completed.
/// Should this object be destroyed after a successful scan?
/// A reference to this instance after the operation has completed.
+ /// This overload overrides the PDAScanner entry data for the 's entry.
+ [Obsolete("Deprecated; Use WithScannerEntry(TechType, float, bool, string, bool) overload instead.")]
public ScanningGadget WithScannerEntry(float scanTime, bool isFragment = false, string encyKey = null, bool destroyAfterScan = false)
{
ScannerEntryData = new PDAScanner.EntryData