diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e91258d --- /dev/null +++ b/.gitignore @@ -0,0 +1,96 @@ +### Windows ### +*.bak +*.swp +*.tmp +*.log +*.user +*.suo +*.DS_Store + +### Build ### +bin/ +obj/ +[Bb]uild/ +[Bb]uilds/ + +# if using Razor +*.generated.cs + +# if using ReSharper +_ReSharper*/ +*.ReSharper +*.DotSettings.user + +# if using Rider +.idea/ + +# if using npm in the project +node_modules/ + +# Packages +*.nupkg +*.snupkg +packages/ +.nuget/ +project.lock.json +project.fragment.lock.json +artifacts/ + +# IIS Logs +_IISExpress/ + +# Azure Web Apps +.deploy/ +.vs/ + +# Visual Studio 2019/2022 +.vscode/ +.vs/ +*.vcxproj.user +*.vcxproj.filters + +### Other ### +*.sln.docstates +*.class +*.dbmdl +*.jfm +*.ipr +*.iws +*.ilk +*.pdb +*.opendb +*.log +*.tlog +*.vspscc +*.vspxproj.user +*.vspxproj +*.vsixproj.user +*.vsixproj + +# Rider settings +.idea/ + +# Coverage results +*.coverage +*.coveragexml +_Reports/ + +# Test Results +TestResults/ +*.trx +*.testlog + +# Local History for JetBrains IDEs +.localhistory/ + +# User-specific files +*.rsuser +*.DotSettings.user + +### OS ### +Thumbs.db +ehthumbs.db +Desktop.ini +$RECYCLE.BIN/ + +### End ### diff --git a/I_need_ONI_skin.csproj b/I_need_ONI_skin.csproj new file mode 100644 index 0000000..92d250d --- /dev/null +++ b/I_need_ONI_skin.csproj @@ -0,0 +1,69 @@ + + + + + Debug + AnyCPU + {BAA3194E-1D03-4012-B3C0-145924AF2A9A} + Library + Properties + I_need_ONI_skin + I_need_ONI_skin + v4.7.2 + 512 + true + + + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + ..\..\..\SteamLibrary\steamapps\common\OxygenNotIncluded\OxygenNotIncluded_Data\Managed\0Harmony.dll + + + ..\..\..\SteamLibrary\steamapps\common\OxygenNotIncluded\OxygenNotIncluded_Data\Managed\Assembly-CSharp.dll + + + ..\..\..\SteamLibrary\steamapps\common\OxygenNotIncluded\OxygenNotIncluded_Data\Managed\Assembly-CSharp-firstpass.dll + + + ..\..\..\SteamLibrary\steamapps\common\OxygenNotIncluded\OxygenNotIncluded_Data\Managed\Newtonsoft.Json.dll + + + C:\Users\15389\Documents\Klei\OxygenNotIncluded\mods\PLib.dll + + + + + + + + + + + ..\..\..\SteamLibrary\steamapps\common\OxygenNotIncluded\OxygenNotIncluded_Data\Managed\UnityEngine.dll + + + ..\..\..\SteamLibrary\steamapps\common\OxygenNotIncluded\OxygenNotIncluded_Data\Managed\UnityEngine.CoreModule.dll + + + + + + + + \ No newline at end of file diff --git a/I_need_ONI_skin.sln b/I_need_ONI_skin.sln new file mode 100644 index 0000000..e846350 --- /dev/null +++ b/I_need_ONI_skin.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.12.35514.174 d17.12 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "I_need_ONI_skin", "I_need_ONI_skin.csproj", "{BAA3194E-1D03-4012-B3C0-145924AF2A9A}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {BAA3194E-1D03-4012-B3C0-145924AF2A9A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BAA3194E-1D03-4012-B3C0-145924AF2A9A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BAA3194E-1D03-4012-B3C0-145924AF2A9A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BAA3194E-1D03-4012-B3C0-145924AF2A9A}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/Main.cs b/Main.cs new file mode 100644 index 0000000..76692f3 --- /dev/null +++ b/Main.cs @@ -0,0 +1,21 @@ +using System; +using HarmonyLib; + +namespace I_need_ONI_skin +{ + public static class Patches + { + [HarmonyPatch(typeof(PermitItems))] + [HarmonyPatch("GetOwnedCount")] + public static class AA__Patch + { + public static void Postfix(ref int __result) + { + if (__result == 0) + { + __result++; + } + } + } + } +} diff --git a/Properties/AssemblyInfo.cs b/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..2a36ed5 --- /dev/null +++ b/Properties/AssemblyInfo.cs @@ -0,0 +1,33 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// 有关程序集的一般信息由以下 +// 控制。更改这些特性值可修改 +// 与程序集关联的信息。 +[assembly: AssemblyTitle("I_need_ONI_skin")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("I_need_ONI_skin")] +[assembly: AssemblyCopyright("Copyright © 2024")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// 将 ComVisible 设置为 false 会使此程序集中的类型 +//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型 +//请将此类型的 ComVisible 特性设置为 true。 +[assembly: ComVisible(false)] + +// 如果此项目向 COM 公开,则下列 GUID 用于类型库的 ID +[assembly: Guid("baa3194e-1d03-4012-b3c0-145924af2a9a")] + +// 程序集的版本信息由下列四个值组成: +// +// 主版本 +// 次版本 +// 生成号 +// 修订号 +// +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/README.md b/README.md index d8b544c..fc370c3 100644 --- a/README.md +++ b/README.md @@ -10,11 +10,15 @@ 目前适用于 **U54-646843** 版本 +### 方法1(推荐) +在创意工坊订阅同功能[mod](https://steamcommunity.com/sharedfiles/filedetails/?id=3383541990) + +### 方法2 在[Releases](https://github.com/yuanze31/I_need_ONI_skin/releases)中下载 Assembly-CSharp.dll,并替换位于 **.\SteamLibrary\steamapps\common\OxygenNotIncluded\OxygenNotIncluded_Data\Managed** 的 **Assembly-CSharp.dll** **注意:** -1. 每次更新/验证游戏完整性后需要重新替换 +1. 每次更新/验证游戏完整性后需要重新替换(仅限方法2) 2. 从 U52-622509 版本后,破解规则为将未拥有的更改为 1 个,拥有多个的数量不变,从而方便筛选 ***2+*** 拆解 3. **严禁**随意拆解只拥有一个的皮肤,你可能根本没有这个皮肤,从而导致向科雷服务器发送许多错误信息,目前对科雷账号的影响未知,**如有尝试,后果自负**