diff --git a/.gitignore b/.gitignore index c0f0c51..58f41c2 100644 --- a/.gitignore +++ b/.gitignore @@ -361,4 +361,5 @@ MigrationBackup/ .ionide/ # Fody - auto-generated XML schema -FodyWeavers.xsd \ No newline at end of file +FodyWeavers.xsd +.idea/.idea.SPT-LootRadius/.idea diff --git a/Helpers/Settings.cs b/Helpers/Settings.cs index a95a4e4..8af4033 100644 --- a/Helpers/Settings.cs +++ b/Helpers/Settings.cs @@ -24,7 +24,7 @@ namespace DrakiaXYZ.LootRadius.Helpers 1.5f, new ConfigDescription( "The distance to include loot from", - new AcceptableValueRange(0f, 10f), + new AcceptableValueRange(0f, 100f), new ConfigurationManagerAttributes { }))); RecalcOrder(); diff --git a/Patches/LootPanelOpenPatch.cs b/Patches/LootPanelOpenPatch.cs index 98893de..b88dd01 100644 --- a/Patches/LootPanelOpenPatch.cs +++ b/Patches/LootPanelOpenPatch.cs @@ -82,7 +82,7 @@ namespace DrakiaXYZ.LootRadius.Patches // Then collect items around the player body, based on the loot radius playerPosition += (Vector3.up * 0.5f); Collider[] nearbyItemColliders = Physics.OverlapSphere(playerPosition, Settings.LootRadius.Value, _interactiveLayerMask); - AddAllowedItems(grid, nearbyItemColliders, false); + AddAllowedItems(grid, nearbyItemColliders, true); // Show the stash in the inventory panel ____simpleStashPanel.Configure(_stash, inventoryController, sourceContext.CreateChild(_stash), true); diff --git a/SPT-LootRadius.csproj b/SPT-LootRadius.csproj index 6325493..2d4770a 100644 --- a/SPT-LootRadius.csproj +++ b/SPT-LootRadius.csproj @@ -130,6 +130,6 @@ - copy "$(TargetPath)" "$(ProjectDir)\..\..\BepInEx\plugins\$(TargetFileName)" + - \ No newline at end of file +