Update to Ror2 1.4.0

This commit is contained in:
2025-11-30 18:27:53 +00:00
parent 5285add77e
commit b8ef84deb2
3 changed files with 12 additions and 12 deletions

View File

@@ -36,9 +36,9 @@ namespace AntiYoink
public const string PluginGUID = PluginAuthor + "." + PluginName; public const string PluginGUID = PluginAuthor + "." + PluginName;
public const string PluginAuthor = "devplayer0"; public const string PluginAuthor = "devplayer0";
public const string PluginName = "AntiYoink"; public const string PluginName = "AntiYoink";
public const string PluginVersion = "0.1.0"; public const string PluginVersion = "0.1.1";
private const bool DevMode = true; private const bool DevMode = false;
public static ConfigEntry<uint> MaxItemCountDelta { get; set; } public static ConfigEntry<uint> MaxItemCountDelta { get; set; }
@@ -80,7 +80,7 @@ namespace AntiYoink
foreach (var i in inv.itemAcquisitionOrder) foreach (var i in inv.itemAcquisitionOrder)
{ {
if (ItemCatalog.GetItemDef(i).hidden) continue; if (ItemCatalog.GetItemDef(i).hidden) continue;
itemCount += inv.GetItemCount(i); itemCount += inv.GetItemCountPermanent(i);
} }
return itemCount; return itemCount;

View File

@@ -12,14 +12,14 @@
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference> </PackageReference>
<PackageReference Include="BepInEx.Core" Version="5.4.21" /> <PackageReference Include="BepInEx.Core" Version="5.*" />
<PackageReference Include="R2API.Items" Version="1.0.*" /> <PackageReference Include="R2API.Items" Version="1.0.*" />
<PackageReference Include="R2API.Language" Version="1.0.*" /> <PackageReference Include="R2API.Language" Version="1.1.*" />
<PackageReference Include="UnityEngine.Modules" Version="2021.3.33" IncludeAssets="compile" /> <PackageReference Include="UnityEngine.Modules" Version="2021.3.33" IncludeAssets="compile" />
<PackageReference Include="RiskOfRain2.GameLibs" Version="1.3.1.275-r.0" /> <PackageReference Include="RiskOfRain2.GameLibs" Version="1.4.0-r.0" />
<PackageReference Include="MMHOOK.RoR2" Version="2024.8.28" NoWarn="NU1701" /> <PackageReference Include="MMHOOK.RoR2" Version="2025.11.19" NoWarn="NU1701" />
</ItemGroup> </ItemGroup>
</Project> </Project>

View File

@@ -1,12 +1,12 @@
{ {
"name": "AntiYoink", "name": "AntiYoink",
"version_number": "0.1.0", "version_number": "0.1.1",
"website_url": "https://git.nul.ie/dev/RoR2-AntiYoink", "website_url": "https://git.nul.ie/dev/RoR2-AntiYoink",
"description": "Prevent yoinking.", "description": "Prevent yoinking.",
"dependencies": [ "dependencies": [
"bbepis-BepInExPack-5.4.2117", "bbepis-BepInExPack-5.4.2121",
"RiskofThunder-HookGenPatcher-1.2.4", "RiskofThunder-HookGenPatcher-1.2.9",
"RiskofThunder-R2API_Items-1.0.4", "RiskofThunder-R2API_Items-1.0.7",
"RiskofThunder-R2API_Language-1.0.1" "RiskofThunder-R2API_Language-1.1.0"
] ]
} }