Make more range and no los

This commit is contained in:
PhatPhuckDave
2024-07-22 19:00:26 +02:00
parent 2fc478aeac
commit 16969d5c78
4 changed files with 6 additions and 5 deletions

3
.gitignore vendored
View File

@@ -361,4 +361,5 @@ MigrationBackup/
.ionide/ .ionide/
# Fody - auto-generated XML schema # Fody - auto-generated XML schema
FodyWeavers.xsd FodyWeavers.xsd
.idea/.idea.SPT-LootRadius/.idea

View File

@@ -24,7 +24,7 @@ namespace DrakiaXYZ.LootRadius.Helpers
1.5f, 1.5f,
new ConfigDescription( new ConfigDescription(
"The distance to include loot from", "The distance to include loot from",
new AcceptableValueRange<float>(0f, 10f), new AcceptableValueRange<float>(0f, 100f),
new ConfigurationManagerAttributes { }))); new ConfigurationManagerAttributes { })));
RecalcOrder(); RecalcOrder();

View File

@@ -82,7 +82,7 @@ namespace DrakiaXYZ.LootRadius.Patches
// Then collect items around the player body, based on the loot radius // Then collect items around the player body, based on the loot radius
playerPosition += (Vector3.up * 0.5f); playerPosition += (Vector3.up * 0.5f);
Collider[] nearbyItemColliders = Physics.OverlapSphere(playerPosition, Settings.LootRadius.Value, _interactiveLayerMask); Collider[] nearbyItemColliders = Physics.OverlapSphere(playerPosition, Settings.LootRadius.Value, _interactiveLayerMask);
AddAllowedItems(grid, nearbyItemColliders, false); AddAllowedItems(grid, nearbyItemColliders, true);
// Show the stash in the inventory panel // Show the stash in the inventory panel
____simpleStashPanel.Configure(_stash, inventoryController, sourceContext.CreateChild(_stash), true); ____simpleStashPanel.Configure(_stash, inventoryController, sourceContext.CreateChild(_stash), true);

View File

@@ -130,6 +130,6 @@
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup> <PropertyGroup>
<PostBuildEvent>copy "$(TargetPath)" "$(ProjectDir)\..\..\BepInEx\plugins\$(TargetFileName)"</PostBuildEvent> <!-- <PostBuildEvent>copy "$(TargetPath)" "$(ProjectDir)\..\..\BepInEx\plugins\$(TargetFileName)"</PostBuildEvent>-->
</PropertyGroup> </PropertyGroup>
</Project> </Project>