diff --git a/1.3/Assemblies/FB.dll b/1.3/Assemblies/FB.dll new file mode 100644 index 0000000..cd44e26 Binary files /dev/null and b/1.3/Assemblies/FB.dll differ diff --git a/1.3/Assemblies/FB.pdb b/1.3/Assemblies/FB.pdb new file mode 100644 index 0000000..6811715 Binary files /dev/null and b/1.3/Assemblies/FB.pdb differ diff --git a/1.3/Defs/ThoughtDefs/RJW_Beautyfuck.xml b/1.3/Defs/ThoughtDefs/RJW_Beautyfuck.xml new file mode 100644 index 0000000..2f2e2d9 --- /dev/null +++ b/1.3/Defs/ThoughtDefs/RJW_Beautyfuck.xml @@ -0,0 +1,33 @@ + + + + + RJW_Beautyfuck + Thought_Memory + 0.5 + 1 + 1.0 + +
  • + + Had sex with staggeringly ugly pawn + -4 +
  • +
  • + + Had sex with ugly pawn + -2 +
  • +
  • + + Had sex with pretty pawn + 2 +
  • +
  • + + Had sex with beautiful pawn + 4 +
  • +
    +
    +
    \ No newline at end of file diff --git a/1.3/Source/.vs/FB/v16/.suo b/1.3/Source/.vs/FB/v16/.suo new file mode 100644 index 0000000..9feae11 Binary files /dev/null and b/1.3/Source/.vs/FB/v16/.suo differ diff --git a/1.3/Source/.vs/STD/v16/.suo b/1.3/Source/.vs/STD/v16/.suo new file mode 100644 index 0000000..54f9455 Binary files /dev/null and b/1.3/Source/.vs/STD/v16/.suo differ diff --git a/1.3/Source/FB.sln b/1.3/Source/FB.sln new file mode 100644 index 0000000..739948d --- /dev/null +++ b/1.3/Source/FB.sln @@ -0,0 +1,22 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.26228.4 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FB", "FB\FB.csproj", "{3FC2D442-19B8-4CF9-9D35-CD13B6AC7B28}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {3FC2D442-19B8-4CF9-9D35-CD13B6AC7B28}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {3FC2D442-19B8-4CF9-9D35-CD13B6AC7B28}.Debug|Any CPU.Build.0 = Debug|Any CPU + {3FC2D442-19B8-4CF9-9D35-CD13B6AC7B28}.Release|Any CPU.ActiveCfg = Release|Any CPU + {3FC2D442-19B8-4CF9-9D35-CD13B6AC7B28}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection +EndGlobal diff --git a/1.3/Source/FB/Properties/AssemblyInfo.cs b/1.3/Source/FB/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..b540ac1 --- /dev/null +++ b/1.3/Source/FB/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("RJWFB")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("RJWFB")] +[assembly: AssemblyCopyright("Copyright © 2020")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("5b1a0ad6-cb29-4231-ae02-c352c6ac3500")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/1.3/Source/FB/fb.cs b/1.3/Source/FB/fb.cs new file mode 100644 index 0000000..adb3e01 --- /dev/null +++ b/1.3/Source/FB/fb.cs @@ -0,0 +1,59 @@ + +using HarmonyLib; +using System.Reflection; +using RimWorld; +using rjw; +using Verse; +using System; + +[StaticConstructorOnStartup] +public static class HarmonyPatches +{ + public static readonly ThoughtDef RJW_Beautyfuck = DefDatabase.GetNamed("RJW_Beautyfuck"); + + [StaticConstructorOnStartup] + public static class Patch + { + static Patch() + { + var harmony = new Harmony("Ed86.rjwfb"); + harmony.PatchAll(Assembly.GetExecutingAssembly()); + } + } + + [HarmonyPatch(typeof(SexUtility), "SatisfyPersonal")] + internal static class Patches_TryGenerateWeaponFor + { + [HarmonyPrefix] + public static bool on_Prefix(SexProps props) + { + try + { + var p1 = props.pawn; + var p2 = props.partner; + var p2beauty = p2.GetStatValue(StatDefOf.PawnBeauty, true); + var beautystage = -1; + + if (p2beauty != 0) + { + if (p2beauty <= -2) + beautystage = 0; + else if (p2beauty <= -1) + beautystage = 1; + else if (p2beauty < 2) + beautystage = 2; + else + beautystage = 3; + + if (beautystage != -1) + p1.needs.mood.thoughts.memories.TryGainMemory(ThoughtMaker.MakeThought(RJW_Beautyfuck, beautystage), null); + } + } + catch(Exception e) + { + Log.Warning(e.ToString()); + } + return true; + } + } +} diff --git a/1.3/Source/FB/fb.csproj b/1.3/Source/FB/fb.csproj new file mode 100644 index 0000000..951629c --- /dev/null +++ b/1.3/Source/FB/fb.csproj @@ -0,0 +1,67 @@ + + + + + Debug + AnyCPU + {3FC2D442-19B8-4CF9-9D35-CD13B6AC7B28} + Library + FB + FB + v4.7.2 + 512 + + + AnyCPU + true + full + false + ..\..\Assemblies\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + ..\..\Assemblies\ + TRACE + prompt + 4 + + + + ..\packages\Lib.Harmony.2.0.2\lib\net472\0Harmony.dll + False + + + ..\..\..\..\..\RimWorldWin64_Data\Managed\Assembly-CSharp.dll + False + + + ..\..\..\..\..\..\..\workshop\content\294100\818773962\v1.2\Assemblies\HugsLib.dll + False + + + ..\..\..\..\rjw\1.3\Assemblies\RJW.dll + False + + + + ..\..\..\..\..\RimWorldWin64_Data\Managed\UnityEngine.CoreModule.dll + False + + + + + + + + + + + + + + \ No newline at end of file diff --git a/1.3/Source/FB/fb.csproj.user b/1.3/Source/FB/fb.csproj.user new file mode 100644 index 0000000..9b86104 --- /dev/null +++ b/1.3/Source/FB/fb.csproj.user @@ -0,0 +1,6 @@ + + + + ShowAllFiles + + \ No newline at end of file diff --git a/1.3/Source/FB/packages.config b/1.3/Source/FB/packages.config new file mode 100644 index 0000000..a9bce78 --- /dev/null +++ b/1.3/Source/FB/packages.config @@ -0,0 +1,4 @@ + + + + diff --git a/About/About.xml b/About/About.xml new file mode 100644 index 0000000..32dfb9a --- /dev/null +++ b/About/About.xml @@ -0,0 +1,42 @@ + + + + RimJobWorld - FB + Ed86 + + +
  • 1.3
  • +
    + rjw.FB + +
  • + rim.job.world + RJW + https://gitgud.io/Ed86/rjw +
  • +
  • + brrainz.harmony + Harmony + https://github.com/pardeike/HarmonyRimWorld/releases/latest + steam://url/CommunityFilePage/2009463077 +
  • +
  • + UnlimitedHugs.HugsLib + HugsLib + https://github.com/UnlimitedHugs/RimworldHugsLib/releases/latest + steam://url/CommunityFilePage/818773962 +
  • +
    + +
  • brrainz.harmony
  • +
  • UnlimitedHugs.HugsLib
  • +
  • erdelf.HumanoidAlienRaces
  • +
  • rim.job.world
  • +
    + + + +
    diff --git a/About/Manifest.xml b/About/Manifest.xml new file mode 100644 index 0000000..4610626 --- /dev/null +++ b/About/Manifest.xml @@ -0,0 +1,13 @@ + + + RimJobWorld FB + 1.0.0 + +
  • RimJobWorld
  • +
    + +
  • RimJobWorld
  • +
    + + +