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/
# 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,
new ConfigDescription(
"The distance to include loot from",
new AcceptableValueRange<float>(0f, 10f),
new AcceptableValueRange<float>(0f, 100f),
new ConfigurationManagerAttributes { })));
RecalcOrder();

View File

@@ -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);

View File

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