Remove ref to Sexperience from IdeologyAddon

This commit is contained in:
amevarashi 2022-06-18 12:06:29 +05:00
parent 650d61832f
commit f1af90d499
2 changed files with 3 additions and 14 deletions

View File

@ -1,7 +1,4 @@
extern alias BaseSexperience; using HarmonyLib;
using BaseSexperience::RJWSexperience.ExtensionMethods;
using BaseSexperience::RJWSexperience;
using HarmonyLib;
using System.Reflection; using System.Reflection;
using Verse; using Verse;
@ -17,11 +14,11 @@ namespace RJWSexperience.Ideology
if (ModLister.HasActiveModWithName("RJW Sexperience")) if (ModLister.HasActiveModWithName("RJW Sexperience"))
{ {
harmony.Patch(AccessTools.Method(typeof(PawnExtensions), nameof(PawnExtensions.IsIncest)), harmony.Patch(AccessTools.Method("RJWSexperience.PawnExtensions:IsIncest"),
prefix: new HarmonyMethod(typeof(Sexperience_Patch_IsIncest), nameof(Sexperience_Patch_IsIncest.Prefix)), prefix: new HarmonyMethod(typeof(Sexperience_Patch_IsIncest), nameof(Sexperience_Patch_IsIncest.Prefix)),
postfix: null postfix: null
); );
harmony.Patch(AccessTools.Method(typeof(RJWUtility), nameof(RJWUtility.ThrowVirginHIstoryEvent)), harmony.Patch(AccessTools.Method("RJWSexperience.RJWUtility:ThrowVirginHIstoryEvent"),
prefix: null, prefix: null,
postfix: new HarmonyMethod(typeof(Sexperience_Patch_ThrowVirginHIstoryEvent), nameof(Sexperience_Patch_ThrowVirginHIstoryEvent.Postfix)) postfix: new HarmonyMethod(typeof(Sexperience_Patch_ThrowVirginHIstoryEvent), nameof(Sexperience_Patch_ThrowVirginHIstoryEvent.Postfix))
); );

View File

@ -63,14 +63,6 @@
<Compile Include="Ideology\Utility.cs" /> <Compile Include="Ideology\Utility.cs" />
<Compile Include="VariousDefOf.cs" /> <Compile Include="VariousDefOf.cs" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<ProjectReference Include="..\RJWSexperience\RJWSexperience.csproj">
<Project>{9c728e06-573b-4b04-a07f-acbf60cb424d}</Project>
<Name>RJWSexperience</Name>
<Private>False</Private>
<Aliases>BaseSexperience</Aliases>
</ProjectReference>
</ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Krafs.Rimworld.Ref"> <PackageReference Include="Krafs.Rimworld.Ref">
<Version>1.3.3389</Version> <Version>1.3.3389</Version>