code
stringlengths
0
56.1M
repo_name
stringlengths
3
57
path
stringlengths
2
176
language
stringclasses
672 values
license
stringclasses
8 values
size
int64
0
56.8M
using System; using Verse; using System.Linq; using RimWorld; using System.Collections.Generic; namespace rjw { /// <summary> /// Utility data object and a collection of extension methods for Pawn /// </summary> public class PawnData : IExposable { public Pawn Pawn = null; public bool Comfort = false; publi...
jojo1541/rjw
1.5/Source/Common/Data/PawnData.cs
C#
mit
4,521
using System.Collections.Generic; using Verse; using System; namespace rjw { /// <summary> /// Defines all RJW configuration related to a specific race or group of races. /// Core races should have RaceGroupDefs in RJW. /// Non-core races should have RaceGroupDefs in the separate RJWRaceSupport mod. /// Technical...
jojo1541/rjw
1.5/Source/Common/Data/RaceGroupDef.cs
C#
mit
2,955
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Verse; namespace rjw { /// <summary> /// Defines how to create a single sex part on a newly created pawn. /// </summary> public class RacePartDef : Def { public bool IsNone => string.IsNull...
jojo1541/rjw
1.5/Source/Common/Data/RacePartDef.cs
C#
mit
1,465
using System; using System.Collections.Generic; using System.Linq; using System.Text; using RimWorld; using Verse; namespace rjw { public class RaceTag { // I only created tags for RaceGroupDef properties that seemed like keywords (like slime) rather than behavior (like oviPregnancy). public readonly static Rac...
jojo1541/rjw
1.5/Source/Common/Data/RaceTag.cs
C#
mit
1,337
namespace rjw { /// <summary> /// Rjw settings store /// </summary> public static class SaveStorage { public static string ModId => "RJW"; public static DataStore DataStore;//reference to savegame data, hopefully } }
jojo1541/rjw
1.5/Source/Common/Data/SaveStorage.cs
C#
mit
228
using System.Collections.Generic; using Verse; namespace rjw { /// <summary> /// Just a simplest form of passing data from xml to the code /// </summary> public class StringListDef : Def { public List<string> strings = new List<string>(); } }
jojo1541/rjw
1.5/Source/Common/Data/StringListDef.cs
C#
mit
256
using System.Linq; using RimWorld; using UnityEngine; using Verse; using Verse.AI; using Multiplayer.API; using System.Collections.Generic; namespace rjw { public static class AfterSexUtility { //aftersex thoughts public static readonly ThoughtDef got_raped = DefDatabase<ThoughtDef>.GetNamed("GotRaped"); publi...
jojo1541/rjw
1.5/Source/Common/Helpers/AfterSexUtility.cs
C#
mit
28,633
using Verse; using Verse.AI; using System.Linq; using RimWorld; using System; namespace rjw { public static class Bed_Utility { public static bool bed_has_at_least_two_occupants(Building_Bed bed) { return bed.CurOccupants.Count() >= 2; } public static bool in_same_bed(Pawn pawn, Pawn partner) { if ...
jojo1541/rjw
1.5/Source/Common/Helpers/Bed_Utility.cs
C#
mit
1,633
//#define TESTMODE // Uncomment to enable logging. using Verse; using Verse.AI; using System.Collections.Generic; using System.Linq; using RimWorld; using System.Diagnostics; using Multiplayer.API; namespace rjw { /// <summary> /// Helper for sex with animals /// </summary> public class BreederHelper { public ...
jojo1541/rjw
1.5/Source/Common/Helpers/Breeder_Helper.cs
C#
mit
7,288
using Verse; using Verse.AI; using System.Collections.Generic; using System.Linq; using RimWorld; using Multiplayer.API; namespace rjw { /// <summary> /// Helper for sex with (humanlikes) /// </summary> public class CasualSex_Helper { public static readonly HashSet<string> quickieAllowedJobs = new HashSet<strin...
jojo1541/rjw
1.5/Source/Common/Helpers/CasualSex_Helper.cs
C#
mit
23,524
using System.Collections.Generic; using System.Linq; using RimWorld; using Verse; namespace rjw { //TODO: this needs rewrite to account reverse and group sex public class CondomUtility { public static readonly RecordDef CountOfCondomsUsed = DefDatabase<RecordDef>.GetNamed("CountOfCondomsUsed"); public static r...
jojo1541/rjw
1.5/Source/Common/Helpers/CondomUtility.cs
C#
mit
2,310
using System.Collections.Generic; using RimWorld; using Verse; using System.Linq; using System; //This one is helper lib for handling all the trans surgery. namespace rjw { public static class GenderHelper { [Flags] public enum Sex { None = 0x0, HasPenis = 0x01, HasVagina = 0x02, HasBreasts = 0x04...
jojo1541/rjw
1.5/Source/Common/Helpers/Gender_Helper.cs
C#
mit
11,906
using System.Collections.Generic; using System.Linq; using RimWorld; using Verse; using rjw.Modules.Testing; using LudeonTK; namespace rjw { public static class Genital_Helper { public static HediffDef generic_anus = HediffDef.Named("GenericAnus"); public static HediffDef generic_penis = HediffDef.Named("Generic...
jojo1541/rjw
1.5/Source/Common/Helpers/Genital_Helper.cs
C#
mit
25,582
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Verse; namespace rjw { public static class HediffHelper { /// <summary> /// Creates hediff with custom hediff class /// </summary> /// <typeparam name="T">hediff class. Should be class defined by hediff or subclass o...
jojo1541/rjw
1.5/Source/Common/Helpers/HediffHelper.cs
C#
mit
2,473
using System.Collections.Generic; using Verse; using RimWorld; using static rjw.PreceptDefOf; namespace rjw { public static class IdeoHelper { public static readonly List<PreceptDef> freeLovePrecepts; public static readonly List<PreceptDef> nonPolyPrecepts; public static readonly List<PreceptDef> prudePrece...
jojo1541/rjw
1.5/Source/Common/Helpers/IdeoHelper.cs
C#
mit
2,152
using Multiplayer.API; using RimWorld; using Verse; namespace rjw { /// <summary> /// Old, hardcoded part choosing code. Used as a fallback if no RaceGroupDef is found. /// </summary> public static class LegacySexPartAdder { static bool privates_gender(Pawn pawn, Gender gender) { return SexPartAdder.IsAdd...
jojo1541/rjw
1.5/Source/Common/Helpers/LegacySexPartAdder.cs
C#
mit
19,977
using System; using System.Collections.Generic; using RimWorld; using Verse; namespace rjw { class OviHelper { static readonly IDictionary<PawnKindDef, ThingDef> FertileEggPawnKinds = new Dictionary<PawnKindDef, ThingDef>(); static readonly IDictionary<PawnKindDef, ThingDef> UnfertileEggPawnKinds = new Dictiona...
jojo1541/rjw
1.5/Source/Common/Helpers/OviHelper.cs
C#
mit
889
using Verse; using Verse.AI; namespace rjw { public static class Pather_Utility { public static bool cells_to_target_casual(Pawn pawn, IntVec3 Position) { //less taxing, ignores walls return pawn.Position.DistanceTo(Position) < RJWSettings.maxDistanceCellsCasual; } public static bool cells_to_target_...
jojo1541/rjw
1.5/Source/Common/Helpers/Pather_Utility.cs
C#
mit
890
using System.Collections.Generic; using System.Linq; using Verse; namespace rjw { class RaceGroupDef_Helper { /// <summary> /// Cache for TryGetRaceGroupDef. /// </summary> static readonly IDictionary<PawnKindDef, RaceGroupDef> RaceGroupByPawnKind = new Dictionary<PawnKindDef, RaceGroupDef>(); public sta...
jojo1541/rjw
1.5/Source/Common/Helpers/RaceGroupDef_Helper.cs
C#
mit
3,652
using Multiplayer.API; using System.Collections.Generic; using System.Linq; using Verse; using RimWorld; namespace rjw { class RacePartDef_Helper { /// <summary> /// Returns true if a partAdders was chosen (even if that part is "no part"). /// </summary> [SyncMethod] public static bool TryRacePartDef_part...
jojo1541/rjw
1.5/Source/Common/Helpers/RacePartDef_Helper.cs
C#
mit
4,736
using Multiplayer.API; using RimWorld; using Verse; using System.Collections.Generic; using System.Linq; namespace rjw { public class SexPartAdder { /// <summary> /// return true if going to set penis, /// return false for vagina /// </summary> public static bool IsAddingPenis(Pawn pawn, Gender gender) ...
jojo1541/rjw
1.5/Source/Common/Helpers/SexPartAdder.cs
C#
mit
6,969
using System; using System.Collections.Generic; using System.Linq; using RimWorld; using UnityEngine; using Verse; using Verse.AI; using Verse.Sound; using HarmonyLib; using Multiplayer.API; using rjw.Modules.Interactions.Contexts; using rjw.Modules.Interactions.Implementation; using rjw.Modules.Interactions; using rjw...
jojo1541/rjw
1.5/Source/Common/Helpers/SexUtility.cs
C#
mit
50,277
using Multiplayer.API; using Verse; namespace rjw { public static class Sexualizer { static void SexualizeSingleGenderPawn(Pawn pawn) { // Single gender is futa without the female gender change. SexPartAdder.add_genitals(pawn, null, Gender.Male); SexPartAdder.add_genitals(pawn, null, Gender.Female); ...
jojo1541/rjw
1.5/Source/Common/Helpers/Sexualizer.cs
C#
mit
4,679
using System.Collections.Generic; using Verse; using RimWorld; using System.Linq; namespace rjw { public static class SurgeryHelper { // Quick and dirty method to guess whether the player is harvesting the genitals or amputating them // due to infection. The core code can't do this properly because it considers ...
jojo1541/rjw
1.5/Source/Common/Helpers/SurgeryHelper.cs
C#
mit
2,210
using System; using System.Diagnostics; using UnityEngine; using Verse; namespace rjw { public static class Logger { private static readonly LogMessageQueue messageQueueRJW = new LogMessageQueue(); public static void Message(string text) { bool DevModeEnabled = RJWSettings.DevMode; if (!DevModeEnabled) ...
jojo1541/rjw
1.5/Source/Common/Logger.cs
C#
mit
1,190
using System.Linq; using RimWorld; using Verse; namespace rjw { public class MapCom_Injector : MapComponent { public bool injected_designator = false; public bool triggered_after_load = false; public MapCom_Injector(Map m) : base(m) { } public override void MapComponentUpdate() { } public over...
jojo1541/rjw
1.5/Source/Common/MapCom_Injector.cs
C#
mit
1,378
using System; using Verse; namespace rjw { public sealed class MiscTranslationDef : Def { public Type targetClass; public string stringA = null; public string stringB = null; public string stringC = null; private void Assert(bool check, string errorMessage) { if (!check) { ModLog.Error($"Inva...
jojo1541/rjw
1.5/Source/Common/MiscTranslationDef.cs
C#
mit
584
using Verse; namespace rjw { public static class ModLog { /// <summary> /// Logs the given message with [SaveStorage.ModId] appended. /// </summary> public static void Error(string message) { Log.Error($"[{SaveStorage.ModId}] {message}"); } /// <summary> /// Logs the given message with [SaveStor...
jojo1541/rjw
1.5/Source/Common/ModLog.cs
C#
mit
673
using RimWorld; using System; using System.Collections.Generic; using System.Linq; using System.Text; using Verse; namespace rjw { public static class PawnExtensions { public static bool RaceHasFertility(this Pawn pawn) { // True by default. if (RaceGroupDef_Helper.TryGetRaceGroupDef(pawn, out var raceGro...
jojo1541/rjw
1.5/Source/Common/PawnExtensions.cs
C#
mit
5,633
using RimWorld; using System.Collections.Generic; using System.Linq; using Verse; using Verse.AI; namespace rjw.RMB { /// <summary> /// Generator of RMB categories for bestiality /// </summary> static class RMB_Bestiality { /// <summary> /// Add bestiality and reverse bestiality options to <paramref name="op...
jojo1541/rjw
1.5/Source/Common/RMB/RMB_Bestiality.cs
C#
mit
4,562
using RimWorld; using System.Collections.Generic; using System.Linq; using Verse; using rjw.Modules.Interactions; using rjw.Modules.Interactions.Implementation; namespace rjw.RMB { /// <summary> /// Generator of RMB categories for masturbation. /// /// Unlike the two-pawn options, masturbation menu is two has 3 l...
jojo1541/rjw
1.5/Source/Common/RMB/RMB_Masturbate.cs
C#
mit
5,808
using RimWorld; using System.Collections.Generic; using Verse; using Multiplayer.API; using Verse.AI; namespace rjw.RMB { /// <summary> /// Generator of RMB categories for Biotech Mechanitor /// </summary> static class RMB_Mechanitor { public static void AddFloatMenuOptions(Pawn pawn, List<FloatMenuOption> opt...
jojo1541/rjw
1.5/Source/Common/RMB/RMB_Mechanitor.cs
C#
mit
1,978
using RimWorld; using System.Collections.Generic; using UnityEngine; using Verse; using Verse.AI; using Multiplayer.API; using rjw.Modules.Interactions.Enums; using rjw.Modules.Interactions; using rjw.Modules.Interactions.Implementation; using rjw.Modules.Interactions.Objects; namespace rjw.RMB { static class RMB_Me...
jojo1541/rjw
1.5/Source/Common/RMB/RMB_Menu.cs
C#
mit
9,816
using RimWorld; using System.Collections.Generic; using System.Linq; using Verse; using System; namespace rjw.RMB { /// <summary> /// Generator of RMB categories for necrophilia /// </summary> static class RMB_Necro { /// <summary> /// Add necrophilia and reverse necrophilia options to <paramref name="opts"/>...
jojo1541/rjw
1.5/Source/Common/RMB/RMB_Necro.cs
C#
mit
3,663
using RimWorld; using System.Collections.Generic; using System.Linq; using Verse; using System; namespace rjw.RMB { /// <summary> /// Generator of RMB categories for rape /// </summary> static class RMB_Rape { /// <summary> /// Add rape and reverse rape options to <paramref name="opts"/> /// </summary> //...
jojo1541/rjw
1.5/Source/Common/RMB/RMB_Rape.cs
C#
mit
4,968
using RimWorld; using System.Collections.Generic; using System.Linq; using Verse; using System; namespace rjw.RMB { /// <summary> /// Generator of RMB categories for breeding /// </summary> static class RMB_RapeAnimal { /// <summary> /// Add breeding and reverse breeding options to <paramref name="opts"/> /...
jojo1541/rjw
1.5/Source/Common/RMB/RMB_RapeAnimal.cs
C#
mit
4,751
using RimWorld; using System.Collections.Generic; using System.Linq; using Verse; namespace rjw.RMB { /// <summary> /// Generator of RMB categories for "normal" sex /// </summary> static class RMB_Sex { /// <summary> /// Add have sex and reverse sex options to <paramref name="opts"/> /// </summary> /// <...
jojo1541/rjw
1.5/Source/Common/RMB/RMB_Sex.cs
C#
mit
4,195
using RimWorld; using System.Collections.Generic; using System.Linq; using Verse; using Multiplayer.API; namespace rjw { /// <summary> /// Generator of RMB categories for socializing /// </summary> static class RMB_Socialize { /// <summary> /// Add socialize option to <paramref name="opts"/> /// </summary>...
jojo1541/rjw
1.5/Source/Common/RMB/RMB_Socialize.cs
C#
mit
5,183
using HarmonyLib; using Multiplayer.API; using RimWorld; using rjw.Modules.Shared.Extensions; using rjw.Modules.Shared.Helpers; using rjw.Modules.Shared.Logs; using System; using System.Collections; using System.Collections.Generic; using System.Linq; using UnityEngine; using Verse; using Verse.AI; namespace rjw { //...
jojo1541/rjw
1.5/Source/Common/SexAppraiser.cs
C#
mit
25,997
using System; using System.Collections.Generic; using UnityEngine; using Verse; using Verse.Sound; using RimWorld; using Multiplayer.API; namespace rjw { [StaticConstructorOnStartup] public class SexGizmo : Gizmo { public SexGizmo(Pawn __instance) { this.pawn = __instance; //this.order = -100f; this.L...
jojo1541/rjw
1.5/Source/Common/SexGizmo.cs
C#
mit
6,579
namespace rjw { public enum SexPartType : byte { Anus = 0, FemaleBreast = 1, FemaleGenital = 2, MaleBreast = 3, MaleGenital = 4 } }
jojo1541/rjw
1.5/Source/Common/SexPartType.cs
C#
mit
148
using System; using Verse; namespace rjw { public static class SexPartTypeExtensions { public static BodyPartDef GetBodyPartDef(this SexPartType sexPartType) { return sexPartType switch { SexPartType.Anus => xxx.anusDef, SexPartType.FemaleBreast => xxx.breastsDef, SexPartType.FemaleGenital => ...
jojo1541/rjw
1.5/Source/Common/SexPartTypeExtensions.cs
C#
mit
529
using RimWorld; using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace rjw { /// <summary> /// Compares traits for equality but ignores forsed flag /// </summary> class TraitComparer : IEqualityComparer<Trait> { bool ignoreForced; bool ignoreDegree; public TraitCom...
jojo1541/rjw
1.5/Source/Common/TraitComparer.cs
C#
mit
829
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Reflection; namespace rjw { public static class Unprivater { internal const BindingFlags flags = BindingFlags.Static | BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic; /// <summary> /// T is...
jojo1541/rjw
1.5/Source/Common/Unprivater.cs
C#
mit
3,622
using System; using System.Collections; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Diagnostics; using HarmonyLib; using RimWorld; using UnityEngine; using Verse; using Verse.AI; using Verse.AI.Group; using Verse.Sound; using Multiplayer.API; using System.Collections.Objec...
jojo1541/rjw
1.5/Source/Common/xxx.cs
C#
mit
35,662
using Verse; using System.Linq; using RimWorld; namespace rjw { [StaticConstructorOnStartup] public static class AddComp { static AddComp() { AddRJWComp(); } /// <summary> /// This automatically adds the comp to all races on startup. /// </summary> public static void AddRJWComp() { foreach (T...
jojo1541/rjw
1.5/Source/Comps/CompAdder.cs
C#
mit
1,705
using System.Collections.Generic; using Verse; namespace rjw { public class CompProperties_RJW : CompProperties { public CompProperties_RJW() { compClass = typeof(CompRJW); } } public class CompProperties_ThingBodyPart : CompProperties { public HediffDef_SexPart hediffDef; public bool guessHediffFr...
jojo1541/rjw
1.5/Source/Comps/CompProperties.cs
C#
mit
998
#nullable enable using Psychology; using SyrTraits; using System.Text; using Verse; using RimWorld; using Multiplayer.API; using System; namespace rjw { public class CompRJW : ThingComp { /// <summary> /// Core comp for genitalia and sexuality tracking. /// </summary> public CompRJW() { } public CompProp...
jojo1541/rjw
1.5/Source/Comps/CompRJW.cs
C#
mit
16,462
using RimWorld; namespace rjw { public class CompRJWHatcher : CompHatcher { } }
jojo1541/rjw
1.5/Source/Comps/CompRJWHatcher.cs
C#
mit
86
using RimWorld; namespace rjw { public class CompRJWProperties_Hatcher : CompProperties_Hatcher { public CompRJWProperties_Hatcher() { this.compClass = typeof(CompRJWHatcher); } } }
jojo1541/rjw
1.5/Source/Comps/CompRJWProperties_Hatcher.cs
C#
mit
198
using System.Text; using Verse; using RimWorld; using Multiplayer.API; using System.Collections.Generic; using rjw.Modules.Shared.Logs; using System.Runtime.InteropServices; using System.Linq; using System; namespace rjw { /// <summary> /// Comp for things /// </summary> public class CompThingBodyPart : ThingComp ...
jojo1541/rjw
1.5/Source/Comps/CompRJWThingBodyPart.cs
C#
mit
11,648
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace rjw { public enum Orientation { None, Asexual, Pansexual, Heterosexual, MostlyHeterosexual, LeaningHeterosexual, Bisexual, LeaningHomosexual, MostlyHomosexual, Homosexual } }
jojo1541/rjw
1.5/Source/Comps/Orientation.cs
C#
mit
298
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Verse; using Verse.AI; using RimWorld; namespace rjw { public class Quirk { public static List<Quirk> All = new List<Quirk>(); public static readonly Quirk Breeder = new Quirk( "Breeder", "BreederQuirk"); public...
jojo1541/rjw
1.5/Source/Comps/Quirk.cs
C#
mit
7,682
using System; using System.Collections.Generic; using System.Linq; using System.Text; using Verse; using Verse.AI; using RimWorld; using Multiplayer.API; namespace rjw { public static class QuirkAdder { public static void Add(Pawn pawn, Quirk quirk, bool warnOnFail = false) { if (!pawn.Has(quirk)) { v...
jojo1541/rjw
1.5/Source/Comps/QuirkAdder.cs
C#
mit
5,976
using Verse; using RimWorld; using Verse.AI; namespace rjw { /// <summary> /// data for sex related stuff/outcome /// </summary> public class SexProps : IExposable { public Pawn pawn; public Pawn partner; public bool hasPartner() => partner != null && partner != pawn; public xxx.rjwSextype sexType = xxx...
jojo1541/rjw
1.5/Source/Comps/SexProps.cs
C#
mit
2,382
using RimWorld; namespace rjw { [DefOf] public static class IssueDefOf { public static IssueDef Lovin; static IssueDefOf() { DefOfHelper.EnsureInitializedInCtor(typeof(IssueDefOf)); } } }
jojo1541/rjw
1.5/Source/DefOf/IssueDefOf.cs
C#
mit
244
using RimWorld; namespace rjw { [DefOf] public static class PreceptDefOf { [MayRequireIdeology] public static PreceptDef Lovin_Prohibited; [MayRequireIdeology] public static PreceptDef Lovin_Horrible; [MayRequireIdeology] public static PreceptDef Lovin_SpouseOnly_Strict; [MayRequireIdeolog...
jojo1541/rjw
1.5/Source/DefOf/PreceptDefOf.cs
C#
mit
690
using RimWorld; using Verse; namespace rjw { [DefOf] public static class RJWBodyPartDefOf { public static BodyPartDef Foot; public static BodyPartDef Paw; public static BodyPartDef Leg; public static BodyPartDef AnimalJaw; public static BodyPartDef Tail; } }
jojo1541/rjw
1.5/Source/DefOf/RJWBodyPartDefOf.cs
C#
mit
273
using Verse; using RimWorld; namespace rjw { [DefOf] public static class RJWHediffDefOf { public static HediffDef HumpShroomAddiction; public static HediffDef HumpShroomEffect; } }
jojo1541/rjw
1.5/Source/DefOf/RJWHediffDefOf.cs
C#
mit
214
using Verse; using RimWorld; namespace rjw { [DefOf] public static class RJWStatCategoryDefOf { [DefAlias("RJW_OriginalPartOwner")] public static StatCategoryDef OriginalPartOwner; static RJWStatCategoryDefOf() { DefOfHelper.EnsureInitializedInCtor(typeof(RJWStatCategoryDefOf)); } } }
jojo1541/rjw
1.5/Source/DefOf/RJWStatCategoryDefOf.cs
C#
mit
304
using Verse; using RimWorld; using Verse.AI; namespace rjw { [DefOf] public static class VanillaDutyDefOf { public static DutyDef EnterTransporter; static VanillaDutyDefOf() { DefOfHelper.EnsureInitializedInCtor(typeof(VanillaDutyDefOf)); } } }
jojo1541/rjw
1.5/Source/DefOf/VanillaDutyDefOf.cs
C#
mit
261
using Verse; using RimWorld; namespace rjw { [DefOf] public static class VanillaRoomRoleDefOf { public static RoomRoleDef Laboratory; public static RoomRoleDef DiningRoom; public static RoomRoleDef RecRoom; static VanillaRoomRoleDefOf() { DefOfHelper.EnsureInitializedInCtor(typeof(VanillaRoomRoleDef...
jojo1541/rjw
1.5/Source/DefOf/VanillaRoomRoleDefOf.cs
C#
mit
335
using Verse; using RimWorld; namespace rjw { [DefOf] public static class VanillaThoughtDefOf { public static ThoughtDef AteHumanlikeMeatAsIngredient; static VanillaThoughtDefOf() { DefOfHelper.EnsureInitializedInCtor(typeof(VanillaThoughtDefOf)); } } }
jojo1541/rjw
1.5/Source/DefOf/VanillaThoughtDefOf.cs
C#
mit
269
using Verse; using RimWorld; namespace rjw { [DefOf] public static class VanillaTraitDefOf { public static TraitDef Tough; public static TraitDef Nerves; public static TraitDef Beauty; public static TraitDef TooSmart; public static TraitDef NaturalMood; public static TraitDef Cannibal; static Va...
jojo1541/rjw
1.5/Source/DefOf/VanillaTraitDefOf.cs
C#
mit
417
using Verse; using RimWorld; using Multiplayer.API; namespace rjw { public static class PawnDesignations_Breedee { public static bool UpdateCanDesignateBreeding(this Pawn pawn) { //no permission to change designation for NON prisoner hero/ other player if (!pawn.CanChangeDesignationPrisoner() && !pawn.CanC...
jojo1541/rjw
1.5/Source/Designators/Breedee.cs
C#
mit
2,970
using Verse; using RimWorld; using Multiplayer.API; namespace rjw { public static class PawnDesignations_Breeder { public static bool UpdateCanDesignateBreedingAnimal(this Pawn pawn) { //no permission to change designation for NON prisoner hero/ other player if (!pawn.CanChangeDesignationPrisoner() && !paw...
jojo1541/rjw
1.5/Source/Designators/Breeder.cs
C#
mit
2,281
using Verse; using Multiplayer.API; namespace rjw { public static class PawnDesignations_Comfort { public static bool UpdateCanDesignateComfort(this Pawn pawn) { //rape disabled if (!RJWSettings.rape_enabled) return pawn.GetRJWPawnData().CanDesignateComfort = false; //no permission to change design...
jojo1541/rjw
1.5/Source/Designators/Comfort.cs
C#
mit
2,597
using Verse; using RimWorld; using Multiplayer.API; namespace rjw { public static class PawnDesignations_Hero { public static bool UpdateCanDesignateHero(this Pawn pawn) { if ((RJWSettings.RPG_hero_control) && xxx.is_human(pawn) && pawn.IsColonist && !xxx.is_slave(pawn) && !pawn.IsPrisoner) ...
jojo1541/rjw
1.5/Source/Designators/Hero.cs
C#
mit
2,861
using Verse; using Multiplayer.API; namespace rjw { public static class PawnDesignations_Milking { public static bool UpdateCanDesignateMilking(this Pawn pawn) { return pawn.GetRJWPawnData().CanDesignateMilking = false; } public static bool CanDesignateMilking(this Pawn pawn) { return pawn.GetRJWPawn...
jojo1541/rjw
1.5/Source/Designators/Milking.cs
C#
mit
1,258
using Verse; using Multiplayer.API; namespace rjw { public static class PawnDesignations_Service { public static bool UpdateCanDesignateService(this Pawn pawn) { //no permission to change designation for NON prisoner hero/ other player if (!pawn.CanChangeDesignationPrisoner() && !pawn.CanChangeDesignationC...
jojo1541/rjw
1.5/Source/Designators/Service.cs
C#
mit
2,249
using Verse; using System.Diagnostics; using RimWorld; namespace rjw { public static class PawnDesignations_Utility { public static bool UpdatePermissions(this Pawn pawn) { pawn.UpdateCanChangeDesignationPrisoner(); pawn.UpdateCanChangeDesignationColonist(); pawn.UpdateCanDesignateService(); pawn.Upd...
jojo1541/rjw
1.5/Source/Designators/Utility.cs
C#
mit
3,125
using System.Collections.Generic; using Verse; using UnityEngine; namespace rjw { /// <summary> /// Handles creation of RJWdesignations button group for gui /// </summary> public class RJWdesignations : Command { //is actually a group of four buttons, but I've wanted them be small and so vanilla gizmo system is...
jojo1541/rjw
1.5/Source/Designators/_RJWdesignationsWidget.cs
C#
mit
12,842
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Reflection.Emit; using HarmonyLib; using Verse; using RimWorld; using UnityEngine; // Non-pregnancy Biotech-related patches namespace rjw { [HarmonyPatch] class LifeStageWorker_HumanlikeX_Notify_LifeStageSt...
jojo1541/rjw
1.5/Source/Harmony/BiotechPatches.cs
C#
mit
7,185
using System; using System.Collections.Generic; using System.Linq; using System.Reflection.Emit; using HarmonyLib; namespace rjw { public static class CodeExtensions { /// <summary> /// <para>Breaks apart a list of instructions at some specific point, identified by a /// predicate function. The first instruct...
jojo1541/rjw
1.5/Source/Harmony/CodeExtensions.cs
C#
mit
4,861
using HarmonyLib; using RimWorld; using System; using Verse; namespace rjw { ///<summary> ///unset designators on GuestRelease ///until pawn leaves map, pawn is still guest/slave/prisoner, so they can actually be changed back ///</summary> [HarmonyPatch(typeof(GenGuest), "GuestRelease")] [StaticConstructorOnSta...
jojo1541/rjw
1.5/Source/Harmony/DesignatorsUnset.cs
C#
mit
1,618
using System; using System.Collections.Generic; using System.Reflection; using System.Linq; using HarmonyLib; using RimWorld; using Verse; namespace rjw { [StaticConstructorOnStartup] internal static class First { /*private static void show_bpr(String body_part_record_def_name) { var bpr = BodyDefOf.Human.Al...
jojo1541/rjw
1.5/Source/Harmony/First.cs
C#
mit
13,734
using HarmonyLib; using Verse; using System; using RimWorld; /// <summary> /// patches GenSpawn to: /// check if spawned thing is pawn, and add sexualize it if parts missing /// </summary> namespace rjw { [HarmonyPatch(typeof(GenSpawn), "Spawn", new Type[] { typeof(Thing), typeof(IntVec3), typeof(Map), typeof(Rot4),...
jojo1541/rjw
1.5/Source/Harmony/Patch_GenSpawn.cs
C#
mit
1,109
using HarmonyLib; using RimWorld; using System.Collections.Generic; using System; using Verse; using rjw.Modules.Interactions.Extensions; using System.Linq; namespace rjw { /// <summary> /// Patches HealthCardUtility to add RJW options to the dev menu /// </summary> [HarmonyPatch(typeof(HealthCardUtility), nameof(...
jojo1541/rjw
1.5/Source/Harmony/Patch_HealthCardDevTool.cs
C#
mit
2,018
using HarmonyLib; using Verse; using System; using RimWorld; /// <summary> /// patches PawnGenerator to: /// add genitals to pawns /// spawn nymph when needed /// fix newborns beards and tattoos /// </summary> namespace rjw { [HarmonyPatch(typeof(PawnGenerator), "GenerateNewPawnInternal")] static class Patch_PawnGe...
jojo1541/rjw
1.5/Source/Harmony/Patch_PawnGenerator.cs
C#
mit
1,793
using HarmonyLib; using Verse; using System; using RimWorld; using System.Collections.Generic; using System.Linq; /// <summary> /// patches PawnUtility to fix humanlike childrens post birth /// </summary> namespace rjw { [HarmonyPatch(typeof(PawnUtility), "TrySpawnHatchedOrBornPawn")] static class Patch_PawnUtility...
jojo1541/rjw
1.5/Source/Harmony/Patch_PawnUtility.cs
C#
mit
4,208
using HarmonyLib; using RimWorld; using rjw.RMB; using System.Collections.Generic; using UnityEngine; using Verse; namespace rjw { /// <summary> /// Patches FloatMenuMakerMap to add manual RJW interactions to the context menu /// </summary> [HarmonyPatch(typeof(FloatMenuMakerMap), nameof(FloatMenuMakerMap.Choices...
jojo1541/rjw
1.5/Source/Harmony/Patch_RMBMenu.cs
C#
mit
526
using HarmonyLib; using RimWorld; using UnityEngine; using Verse; using Verse.Sound; using System.Collections.Generic; using System.Reflection; using System.Reflection.Emit; namespace rjw { [HarmonyPatch(typeof(CharacterCardUtility), "DrawCharacterCard")] public static class SexcardPatch { public static IEnumerab...
jojo1541/rjw
1.5/Source/Harmony/SexualityCard.cs
C#
mit
3,360
using System.Text; using RimWorld; using UnityEngine; using Verse; using System; using System.Collections.Generic; using System.Linq; using Multiplayer.API; using Verse.AI.Group; using LudeonTK; using rjw.Modules.Interactions.Extensions; namespace rjw { //TODO: check slime stuff working in mp //TODO: separate menus ...
jojo1541/rjw
1.5/Source/Harmony/SexualityCardInternal.cs
C#
mit
27,779
using System; using System.Collections.Generic; using HarmonyLib; using RimWorld; using Verse; using Verse.AI.Group; using System.Reflection; namespace rjw { //ABF?? raid rape before leaving? [HarmonyPatch(typeof(LordJob_AssaultColony), "CreateGraph")] internal static class Patches_AssaultColonyForRape { [Harmo...
jojo1541/rjw
1.5/Source/Harmony/patch_ABF.cs
C#
mit
2,262
using System.Collections.Generic; using Verse; using HarmonyLib; namespace rjw { //adds new gizmo for sex [HarmonyPatch(typeof(Pawn), "GetGizmos")] class Patch_AddSexGizmo { [HarmonyPriority(99),HarmonyPostfix] static IEnumerable<Gizmo> AddSexGizmo(IEnumerable<Gizmo> __result, Pawn __instance) { foreach...
jojo1541/rjw
1.5/Source/Harmony/patch_AddSexGizmo.cs
C#
mit
569
using RimWorld; using Verse; using HarmonyLib; using System.Reflection; using System.Collections.Generic; /// <summary> /// Modifies Dialog_NamePawn so it properly displays same-gender parents in their children’s rename window /// </summary> namespace rjw { [HarmonyPatch(typeof(Dialog_NamePawn))] [HarmonyPatch(Meth...
jojo1541/rjw
1.5/Source/Harmony/patch_Dialog_NamePawn.cs
C#
mit
2,166
using System; using RimWorld; using Verse; using HarmonyLib; namespace rjw { ///<summary> ///Disable vanilla(?) traders from buying/selling natural rjw parts ///</summary> [HarmonyPatch(typeof(StockGenerator_BuyExpensiveSimple), "HandlesThingDef")] [StaticConstructorOnStartup] static class PATCH_StockGenerator_B...
jojo1541/rjw
1.5/Source/Harmony/patch_StockGenerator_BuyExpensiveSimple.cs
C#
mit
635
using HarmonyLib; using RimWorld; using rjw.RenderNodeWorkers; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Verse; namespace rjw { [HarmonyPatch(typeof(PawnRenderTree), "InitializeAncestors")] public class patch_apparel { public static...
jojo1541/rjw
1.5/Source/Harmony/patch_apparel.cs
C#
mit
2,453
using System; using System.Reflection; using System.Runtime.Remoting.Messaging; using HarmonyLib; using RimWorld; using RimWorld.Planet; using Verse; using Verse.AI; namespace rjw { [HarmonyPatch(typeof(Pawn_ApparelTracker))] [HarmonyPatch("Wear")] internal static class PATCH_Pawn_ApparelTracker_Wear { // Preve...
jojo1541/rjw
1.5/Source/Harmony/patch_bondage_gear.cs
C#
mit
9,662
using System; using System.Reflection; using HarmonyLib; using RimWorld; using rjw.Modules.Interactions.Enums; using rjw.Modules.Interactions.Objects; using Verse; using Verse.AI; using static HarmonyLib.Code; namespace rjw { /// <summary> /// Patch: /// Core Loving, Mating /// Rational Romance LovinCasual /// Cn...
jojo1541/rjw
1.5/Source/Harmony/patch_lovin.cs
C#
mit
13,654
using HarmonyLib; using RimWorld; using Verse; using Verse.AI; namespace rjw { /// <summary> /// disable meditation effects for nymphs (i.e meditation on throne) /// </summary> [HarmonyPatch(typeof(JobDriver_Meditate), "MeditationTick")] internal static class PATCH_JobDriver_Meditate_MeditationTick { [HarmonyP...
jojo1541/rjw
1.5/Source/Harmony/patch_meditate.cs
C#
mit
2,541
using System; using System.Collections.Generic; using System.Linq; using System.Reflection; using System.Reflection.Emit; using System.Text; using HarmonyLib; using Multiplayer.API; using UnityEngine; using Verse; using RimWorld; using rjw.Modules.Testing; using Seeded = rjw.Modules.Rand.Seeded; using LudeonTK; names...
jojo1541/rjw
1.5/Source/Harmony/patch_pregnancy.cs
C#
mit
36,306
using System.Linq; using Verse; using HarmonyLib; using RimWorld; using System.Collections; using System.Collections.Generic; namespace rjw { /// <summary> /// Necessary to prevent duplicate stat entries on harvested part, since stats are populated by each recipe that /// installs it. /// </summary> [HarmonyPat...
jojo1541/rjw
1.5/Source/Harmony/patch_recipes.cs
C#
mit
2,310
using HarmonyLib; using RimWorld; using System; using Verse; namespace rjw { ///<summary> ///RJW Designators checks/update ///update designators only for selected pawn, once, instead of every tick(60 times per sec) ///</summary> [HarmonyPatch(typeof(Selector), "Select")] [StaticConstructorOnStartup] static cla...
jojo1541/rjw
1.5/Source/Harmony/patch_selector.cs
C#
mit
988
namespace rjw { /// <summary> /// Patch: /// recipes /// </summary> //TODO: inject rjw recipes //[HarmonyPatch(typeof(HealthCardUtility), "GenerateSurgeryOption")] //internal static class PATCH_HealthCardUtility_recipes //{ // //private static FloatMenuOption GenerateSurgeryOption(Pawn pawn, Thing thingForMed...
jojo1541/rjw
1.5/Source/Harmony/patch_surgery.cs
C#
mit
2,301
using System.Linq; using Verse; using System.Collections.Generic; using HarmonyLib; using RimWorld; namespace rjw { /// <summary> /// Patch ui for hero mode /// - disable pawn control for non owned hero /// - disable equipment management for non owned hero /// hardcore mode: /// - disable equipment management f...
jojo1541/rjw
1.5/Source/Harmony/patch_ui_hero.cs
C#
mit
4,092
using System.Collections.Generic; using System.Linq; using HarmonyLib; using RimWorld; using Verse; using UnityEngine; using Multiplayer.API; namespace rjw { /// <summary> /// Harmony patch to toggle the RJW designation box showing /// </summary> [HarmonyPatch(typeof(PlaySettings), "DoPlaySettingsGlobalControls")...
jojo1541/rjw
1.5/Source/Harmony/patch_ui_rjw_buttons.cs
C#
mit
2,846
using System; using RimWorld; using Verse; using HarmonyLib; namespace rjw { [HarmonyPatch(typeof(CompAbilityEffect_WordOfLove), "ValidateTarget")] internal static class PATCH_CompAbilityEffect_WordOfLove_ValidateTarget { [HarmonyPrefix] static bool GenderChecks(ref LocalTargetInfo target, LocalTargetInfo ___se...
jojo1541/rjw
1.5/Source/Harmony/patch_wordoflove.cs
C#
mit
906
using System.Collections.Generic; using RimWorld; using Verse; namespace rjw { public class HediffCompProperties_SexPart : HediffCompProperties { public HediffCompProperties_SexPart() { compClass = typeof(HediffComp_SexPart); } } public class HediffCompProperties_Ovipositor : HediffCompProperties { ...
jojo1541/rjw
1.5/Source/Hediffs/Comps/HediffCompProperties.cs
C#
mit
1,174
using System.Collections.Generic; using Verse; using RimWorld; namespace rjw { public class HediffComp_GrowsWithOwner : HediffComp { public float lastOwnerSize = -1; public HediffCompProperties_GrowsWithOwner Props => (HediffCompProperties_GrowsWithOwner)props; public override void CompPostTick(ref float s...
jojo1541/rjw
1.5/Source/Hediffs/Comps/HediffComp_GrowsWithOwner.cs
C#
mit
1,594