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
namespace rjw { public enum GenitalTag { CanPenetrate, CanBePenetrated, CanFertilize, CanBeFertilized, CanEgg, CanFertilizeEgg, CanLactate } }
jojo1541/rjw
1.5/Source/Modules/Shared/Enums/GenitalTag.cs
C#
mit
163
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace rjw.Modules.Shared.Enums { public enum PawnState { Healthy, Downed, Unconscious, Dead } }
jojo1541/rjw
1.5/Source/Modules/Shared/Enums/PawnState.cs
C#
mit
231
using System; using Verse; namespace rjw.Modules.Shared.Extensions { public static class BodyPartRecordExtension { /// <summary> /// Check if body part is missing. Unlike vanilla <see cref="HediffSet.PartIsMissing"/>, /// this method takes into account artificial replacements. /// </summary> /// <exception cref="ArgumentNullException"></exception> public static bool IsMissingForPawn(this BodyPartRecord self, Pawn pawn) { if (pawn == null) { throw new ArgumentNullException(nameof(pawn)); } if (self == null) { throw new ArgumentNullException(nameof(self)); } HediffSet hediffSet = pawn.health.hediffSet; if (hediffSet.PartIsMissing(self)) { // Part can be missing because it has been replaced by an artificial part. // In vanilla an artificial part can replace more than one natural part. // For example, the bionic arm is actually a shoulder, while arm, hand and fingers are missing return !hediffSet.PartOrAnyAncestorHasDirectlyAddedParts(self); } return false; } } }
jojo1541/rjw
1.5/Source/Modules/Shared/Extensions/BodyPartRecordExtension.cs
C#
mit
1,057
using System; using Verse; namespace rjw.Modules.Shared.Extensions { public static class PawnExtensions { public static string GetName(this Pawn pawn) { if (pawn == null) { return "null"; } if (String.IsNullOrWhiteSpace(pawn.Name?.ToStringFull) == false) { return pawn.Name.ToStringFull; } return pawn.def.defName; } } }
jojo1541/rjw
1.5/Source/Modules/Shared/Extensions/PawnExtensions.cs
C#
mit
365
using System; using UnityEngine; using Verse; namespace rjw.Modules.Shared.Helpers { public static class AgeHelper { public const int ImmortalRaceAgeClamp = 25; public const int NonHumanRaceAgeClamp = 25; public static int ScaleToHumanAge(Pawn pawn, int humanLifespan = 80) { float pawnAge = pawn.ageTracker.AgeBiologicalYearsFloat; if (pawn.def.defName == "Human") return (int)pawnAge; // Human, no need to scale anything. float lifeExpectancy = pawn.RaceProps.lifeExpectancy; if (RJWSettings.UseAdvancedAgeScaling == true) { //pseudo-immortal & immortal races if (lifeExpectancy >= 500) { return CalculateForImmortals(pawn, humanLifespan); } if (lifeExpectancy != humanLifespan) { //other races return CalculateForNonHuman(pawn, humanLifespan); } } float ageScaling = humanLifespan / lifeExpectancy; float scaledAge = pawnAge * ageScaling; return (int)Mathf.Max(scaledAge, 1); } private static int CalculateForImmortals(Pawn pawn, int humanLifespan) { float age = pawn.ageTracker.AgeBiologicalYearsFloat; float lifeExpectancy = pawn.RaceProps.lifeExpectancy; float growth = pawn.ageTracker.Growth; //Growth and hacks { growth = ImmortalGrowthHacks(pawn, age, growth); if (growth < 1) { return (int)Mathf.Lerp(0, ImmortalRaceAgeClamp, growth); } } //curve { float life = age / lifeExpectancy; //Hypothesis : very long living races looks "young" until the end of their lifespan if (life < 0.9f) { return ImmortalRaceAgeClamp; } return (int)Mathf.LerpUnclamped(ImmortalRaceAgeClamp, humanLifespan, Mathf.InverseLerp(0.9f, 1, life)); } } private static float ImmortalGrowthHacks(Pawn pawn, float age, float originalGrowth) { if (pawn.ageTracker.CurLifeStage.reproductive == false) { //Hopefully, reproductive life stage will mean that we're dealing with an adult return Math.Min(1, age / ImmortalRaceAgeClamp); } return 1; } private static int CalculateForNonHuman(Pawn pawn, int humanLifespan) { float age = pawn.ageTracker.AgeBiologicalYearsFloat; float lifeExpectancy = pawn.RaceProps.lifeExpectancy; float growth = pawn.ageTracker.Growth; //Growth and hacks { growth = NonHumanGrowthHacks(pawn, age, growth); if (growth < 1) { return (int)Mathf.Lerp(0, NonHumanRaceAgeClamp, growth); } } //curve { float life = age / lifeExpectancy; return (int)Mathf.LerpUnclamped(NonHumanRaceAgeClamp, humanLifespan, life); } } private static float NonHumanGrowthHacks(Pawn pawn, float age, float originalGrowth) { if (pawn.ageTracker.CurLifeStage.reproductive == false) { //Hopefully, reproductive life stage will mean that we're dealing with an adult return Math.Min(1, age / NonHumanRaceAgeClamp); } return 1; } } }
jojo1541/rjw
1.5/Source/Modules/Shared/Helpers/AgeHelper.cs
C#
mit
2,914
using System.Collections.Generic; using System.Linq; using Multiplayer.API; using rjw.Modules.Shared; using UnityEngine; using Verse; namespace rjw { public static class RandomHelper { /// <remarks>this is not foolproof</remarks> public static TType WeightedRandom<TType>(IList<Weighted<TType>> weights) { if (weights == null || weights.Any() == false || weights.Where(e => e.Weight < 0).Any()) { return default(TType); } Weighted<TType> result; if (weights.TryRandomElementByWeight(e => e.Weight, out result) == true) { return result.Element; } return weights.RandomElement().Element; } } }
jojo1541/rjw
1.5/Source/Modules/Shared/Helpers/RandomHelper.cs
C#
mit
642
using rjw.Modules.Shared.Enums; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Verse; namespace rjw.Modules.Shared { public interface IPawnStateService { PawnState Detect(Pawn pawn); } }
jojo1541/rjw
1.5/Source/Modules/Shared/IPawnStateService.cs
C#
mit
271
using rjw.Modules.Shared.Enums; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Verse; namespace rjw.Modules.Shared.Implementation { public class PawnStateService : IPawnStateService { public static IPawnStateService Instance { get; private set; } static PawnStateService() { Instance = new PawnStateService(); } public PawnState Detect(Pawn pawn) { if (pawn.Dead) { return PawnState.Dead; } if (pawn.Downed) { if (pawn.health.capacities.CanBeAwake == false) { return PawnState.Unconscious; } return PawnState.Downed; } return PawnState.Healthy; } } }
jojo1541/rjw
1.5/Source/Modules/Shared/Implementation/PawnStateService.cs
C#
mit
701
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace rjw.Modules.Shared.Logs { public interface ILog { void Debug(string message); void Debug(string message, Exception e); void Message(string message); void Message(string message, Exception e); void Warning(string message); void Warning(string message, Exception e); void Error(string message); void Error(string message, Exception e); } }
jojo1541/rjw
1.5/Source/Modules/Shared/Logs/ILog.cs
C#
mit
487
namespace rjw.Modules.Shared.Logs { public interface ILogProvider { bool IsActive { get; } } }
jojo1541/rjw
1.5/Source/Modules/Shared/Logs/ILogProvider.cs
C#
mit
103
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace rjw.Modules.Shared.Logs { public static class LogManager { private class Logger : ILog { private readonly string _loggerTypeName; private readonly ILogProvider _logProvider; public Logger(string typeName) { _loggerTypeName = typeName; } public Logger(string typeName, ILogProvider logProvider) { _loggerTypeName = typeName; _logProvider = logProvider; } public void Debug(string message) { LogDebug(CreateLogMessage(message)); } public void Debug(string message, Exception exception) { LogDebug(CreateLogMessage(message, exception)); } public void Message(string message) { LogMessage(CreateLogMessage(message)); } public void Message(string message, Exception exception) { LogMessage(CreateLogMessage(message, exception)); } public void Warning(string message) { LogWarning(CreateLogMessage(message)); } public void Warning(string message, Exception exception) { LogWarning(CreateLogMessage(message, exception)); } public void Error(string message) { LogError(CreateLogMessage(message)); } public void Error(string message, Exception exception) { LogError(CreateLogMessage(message, exception)); } private string CreateLogMessage(string message) { return $"[{_loggerTypeName}] {message}"; } private string CreateLogMessage(string message, Exception exception) { return $"{CreateLogMessage(message)}{Environment.NewLine}{exception}"; } private void LogDebug(string message) { if (_logProvider?.IsActive != false && RJWSettings.DevMode == true) { ModLog.Message(message); } } private void LogMessage(string message) { if (_logProvider?.IsActive != false) { ModLog.Message(message); } } private void LogWarning(string message) { if (_logProvider?.IsActive != false) { ModLog.Warning(message); } } private void LogError(string message) { if (_logProvider?.IsActive != false) { ModLog.Error(message); } } } public static ILog GetLogger<TType, TLogProvider>() where TLogProvider : ILogProvider, new() { return new Logger(typeof(TType).Name, new TLogProvider()); } public static ILog GetLogger<TType>() { return new Logger(typeof(TType).Name); } public static ILog GetLogger(string staticTypeName) { return new Logger(staticTypeName); } } }
jojo1541/rjw
1.5/Source/Modules/Shared/Logs/LogManager.cs
C#
mit
2,582
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace rjw.Modules.Shared { public static class Multipliers { public const float Never = 0f; public const float AlmostNever = 0.1f; public const float VeryRare = 0.2f; public const float Rare = 0.5f; public const float Uncommon = 0.8f; public const float Average = 1.0f; public const float Common = 1.2f; public const float Frequent = 1.5f; public const float VeryFrequent = 1.8f; public const float Doubled = 2.0f; public const float DoubledPlus = 2.5f; } }
jojo1541/rjw
1.5/Source/Modules/Shared/Multipliers.cs
C#
mit
612
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace rjw.Modules.Shared { public class Weighted<TType> { public TType Element { get; set; } public float Weight { get; set; } public Weighted(float weight, TType element) { Weight = weight; Element = element; } } }
jojo1541/rjw
1.5/Source/Modules/Shared/Weighted.cs
C#
mit
360
#nullable enable using System.Linq; using Verse; using rjw.Modules.Shared.Logs; using rjw.Modules.Interactions.DefModExtensions; using static rjw.Genital_Helper; using Sex = rjw.GenderHelper.Sex; using Seeded = rjw.Modules.Rand.Seeded; namespace rjw.Modules.Testing { static class TestHelper { static readonly ILog Log = LogManager.GetLogger("TestHelper"); /// <summary> /// Adds some default options to this request that are desireable for testing. /// </summary> /// <param name="request">The request to modify.</param> /// <returns>The modified request.</returns> public static PawnGenerationRequest RequestDefaults(this PawnGenerationRequest request) { request.CanGeneratePawnRelations = false; request.ForceNoIdeo = true; request.ForceGenerateNewPawn = true; return request; } /// <summary> /// <para>Generates a natural pawn using the given request and a fixed seed.</para> /// <para>If there was an issue generating the pawn, it will return null.</para> /// </summary> /// <param name="request">The pawn request.</param> /// <returns>The generated pawn or null.</returns> public static Pawn? GenerateSeededPawn(PawnGenerationRequest request) { using (Seeded.With(42)) { var tries = 5; while (tries >= 0) { var pawn = PawnGenerator.GeneratePawn(request); // Keep generating until we get a "natural" pawn. We want to // control when futas and traps happen. switch (GenderHelper.GetSex(pawn)) { case Sex.Male when pawn.gender == Gender.Male: case Sex.Female when pawn.gender == Gender.Female: case Sex.None when pawn.gender == Gender.None: return pawn; } tries -= 1; } Log.Error($"Could not generate test pawn for: {request.KindDef.defName}"); return null; } } /// <summary> /// Tries to replace a sex-part of the given pawn using a recipe. /// </summary> /// <param name="pawn">The pawn to change.</param> /// <param name="recipe">The recipe to apply.</param> /// <returns>Whether the part was applied successfully.</returns> public static bool ApplyPartToPawn(Pawn pawn, RecipeDef recipe) { var worker = recipe.Worker; var defToAdd = recipe.addsHediff as HediffDef_SexPart; if (defToAdd == null) return false; // They must have the correct body part for this sex part. var bpr = worker.GetPartsToApplyOn(pawn, recipe).FirstOrDefault(); if (bpr is null) return false; var curParts = get_AllPartsHediffList(pawn) .Where(hed => hed is ISexPartHediff part && part.Def.genitalFamily == defToAdd.genitalFamily) .ToArray(); // We're replacing natural with artifical. if (curParts.Length == 0) return false; foreach (var part in curParts) pawn.health.RemoveHediff(part); var hediff = SexPartAdder.MakePart(defToAdd, pawn, bpr); pawn.health.AddHediff(hediff, bpr); return true; } /// <summary> /// Replaces the genitals of a pawn with artificial ones. /// </summary> /// <param name="pawn">The pawn to change.</param> /// <returns>Whether the part was swapped successfully.</returns> public static bool GiveArtificialGenitals(Pawn pawn) { var changed = false; if (get_genitalsBPR(pawn) is not { } bpr) return changed; if (has_penis_fertile(pawn)) { foreach (var part in pawn.GetGenitalsList()) if (is_fertile_penis(part)) pawn.health.RemoveHediff(part); var hediff = SexPartAdder.MakePart(hydraulic_penis, pawn, bpr); pawn.health.AddHediff(hediff, bpr); changed = true; } if (has_vagina(pawn)) { foreach (var part in pawn.GetGenitalsList()) if (is_vagina(part)) pawn.health.RemoveHediff(part); var hediff = SexPartAdder.MakePart(hydraulic_vagina, pawn, bpr); pawn.health.AddHediff(hediff, bpr); changed = true; } return changed; } /// <summary> /// <para>Adds parts to a pawn to make them into a trap.</para> /// <para>The pawn must be a natural male to be changed. If the pawn is /// already a trap, it will return `true`. Otherwise, it will return `false` /// if it failed to change the pawn.</para> /// <para>Note since Feb-2023: this is currently bugged, since the /// `SexPartAdder.add_breasts` does not respect the request to use female /// breasts.</para> /// </summary> /// <param name="pawn">The pawn to change.</param> /// <returns>Whether the pawn was modified.</returns> public static bool MakeIntoTrap(Pawn pawn) { if (GenderHelper.GetSex(pawn) is var sex and not Sex.Male) return sex is Sex.Trap; var parts = pawn.GetBreastList(); foreach (var part in parts) pawn.health.RemoveHediff(part); SexPartAdder.add_breasts(pawn, gender: Gender.Female); return GenderHelper.GetSex(pawn) is Sex.Trap; } /// <summary> /// <para>Adds a part to a pawn to make them into a futa.</para> /// <para>The pawn must be a natural male or female and will return `false` /// if it failed to change the pawn into a futa.</para> /// </summary> /// <param name="pawn">The pawn to change.</param> /// <param name="infertile">Whether the part should be infertile.</param> /// <returns>Whether the pawn was modified.</returns> public static bool MakeIntoFuta(Pawn pawn, bool infertile = false) { Hediff hediff; switch ((GenderHelper.GetSex(pawn), infertile)) { case (Sex.Male or Sex.Trap, false): SexPartAdder.add_genitals(pawn, gender: Gender.Female); return GenderHelper.GetSex(pawn) is Sex.Futa; case (Sex.Male or Sex.Trap, true) when get_genitalsBPR(pawn) is { } bpr: hediff = SexPartAdder.MakePart(hydraulic_vagina, pawn, bpr); pawn.health.AddHediff(hediff, bpr); return GenderHelper.GetSex(pawn) is Sex.Futa; case (Sex.Female, false): SexPartAdder.add_genitals(pawn, gender: Gender.Male); return GenderHelper.GetSex(pawn) is Sex.Futa; case (Sex.Female, true) when get_genitalsBPR(pawn) is { } bpr: hediff = SexPartAdder.MakePart(hydraulic_penis, pawn, bpr); pawn.health.AddHediff(hediff, bpr); return GenderHelper.GetSex(pawn) is Sex.Futa; default: return false; } } } }
jojo1541/rjw
1.5/Source/Modules/Testing/TestHelper.cs
C#
mit
6,149
using System; using System.Collections.Generic; using RimWorld; using Verse; namespace rjw { public class Need_Sex : Need_Seeker { public bool isInvisible => pawn.Map == null; private static float decay_per_day = 0.3f; // TODO: make these threshold values constants or at least static // readonly properties, if they're meant for patching. public float thresh_frustrated() => 0.05f; public float thresh_horny() => 0.25f; public float thresh_neutral() => 0.50f; public float thresh_satisfied() => 0.75f; public float thresh_ahegao() => 0.95f; public Need_Sex(Pawn pawn) : base(pawn) { //if (xxx.is_mechanoid(pawn)) return; //Added by nizhuan-jjr:Misc.Robots are not allowed to have sex, so they don't need sex actually. threshPercents = new List<float> { thresh_frustrated(), thresh_horny(), thresh_neutral(), thresh_satisfied(), thresh_ahegao() }; } // These are overridden just for other mods to patch and alter their behavior. // Without it, they would need to patch `Need` itself, adding a type check to // every single need IN THE GAME before executing the new behavior. public override float CurInstantLevel { get { return base.CurInstantLevel; } } public override float CurLevel { get { return base.CurLevel; } set { base.CurLevel = value; } } //public override bool ShowOnNeedList //{ // get // { // if (Genital_Helper.has_genitals(pawn)) // return true; // ModLog.Message("curLevelInt " + curLevelInt); // return false; // } //} //public override string GetTipString() //{ // return string.Concat(new string[] // { // this.LabelCap, // ": ", // this.CurLevelPercentage.ToStringPercent(), // "\n", // this.def.description, // "\n", // }); //} public static float brokenbodyfactor(Pawn pawn) { //This adds in the broken body system float broken_body_factor = 1f; if (pawn.health.hediffSet.HasHediff(xxx.feelingBroken)) { switch (pawn.health.hediffSet.GetFirstHediffOfDef(xxx.feelingBroken).CurStageIndex) { case 0: return 0.75f; case 1: return 1.4f; case 2: return 2f; } } return broken_body_factor; } public static float druggedfactor(Pawn pawn) { if (pawn.health.hediffSet.HasHediff(RJWHediffDefOf.HumpShroomEffect)) { //ModLog.Message("Need_Sex::druggedfactor 3 pawn is " + xxx.get_pawnname(pawn)); return 3f; } // No humpshroom effect but addicted? if (pawn.health.hediffSet.HasHediff(RJWHediffDefOf.HumpShroomAddiction)) { //ModLog.Message("Need_Sex::druggedfactor 0.5 pawn is " + xxx.get_pawnname(pawn)); return 0.5f; } //ModLog.Message("Need_Sex::druggedfactor 1 pawn is " + xxx.get_pawnname(pawn)); return 1f; } static float diseasefactor(Pawn pawn) { return 1f; } static float futafactor(Pawn pawn) { // Checks for doubly-fertile futa. // Presumably, they got twice the hormones coursing through their brain. return Genital_Helper.is_futa(pawn) ? 2.0f : 1.0f; } static float agefactor(Pawn pawn) { // Age check was moved to start of `NeedInterval` and this factor // is no longer useful in base RJW. It is left here in case any // mod patches this factor. return 1f; } /// <summary> /// Gets the cumulative factors affecting decay for a given pawn. /// </summary> public static float GetFallFactorFor(Pawn pawn) { return brokenbodyfactor(pawn) * druggedfactor(pawn) * diseasefactor(pawn) * agefactor(pawn) * futafactor(pawn); } static float fall_per_tick(Pawn pawn) { var fall_per_tick = decay_per_day / GenDate.TicksPerDay * GetFallFactorFor(pawn); //--ModLog.Message("Need_Sex::NeedInterval is called - pawn is " + xxx.get_pawnname(pawn) + " is has both genders " + (Genital_Helper.has_penis(pawn) && Genital_Helper.has_vagina(pawn))); //ModLog.Message(" " + xxx.get_pawnname(pawn) + "'s sex need stats:: fall_per_tick: " + fall_per_tick + ", sex_need_factor_from_lifestage: " + sex_need_factor_from_lifestage(pawn) ); return fall_per_tick; } public override void NeedInterval() { if (isInvisible) return; // no caravans // Asexual or too young. if (xxx.is_asexual(pawn) || !xxx.can_do_loving(pawn)) { CurLevel = 0.5f; return; } //--ModLog.Message("Need_Sex::NeedInterval is called0 - pawn is "+xxx.get_pawnname(pawn)); if (!def.freezeWhileSleeping || pawn.Awake()) { // `NeedInterval` is called by `Pawn_NeedsTracker` once every 150 ticks, which is around .06 game hours. var fallPerCall = 150 * fall_per_tick(pawn); var sexDriveModifier = xxx.get_sex_drive(pawn); var decayRateModifier = RJWSettings.sexneed_decay_rate; var decayThisCall = fallPerCall * sexDriveModifier * decayRateModifier; CurLevel -= decayThisCall; // ModLog.Message($" {xxx.get_pawnname(pawn)}'s sex need stats:: Decay/call: {decayThisCall}, Dec. rate: {decayRateModifier}, Cur.lvl: {CurLevel}, Sex drive: {sexDriveModifier}"); } //--ModLog.Message("Need_Sex::NeedInterval is called1"); } } }
jojo1541/rjw
1.5/Source/Needs/Need_Sex.cs
C#
mit
5,134
using Verse; namespace rjw { /// <summary> /// Looks up and returns a BodyPartTagDef defined in the XML /// </summary> public static class BodyPartTagDefOf { public static BodyPartTagDef RJW_Fertility { get { if (a == null) a = (BodyPartTagDef)GenDefDatabase.GetDef(typeof(BodyPartTagDef), "RJW_Fertility"); return a; } } private static BodyPartTagDef a; } }
jojo1541/rjw
1.5/Source/PawnCapacities/BodyPartTagDefOf.cs
C#
mit
395
using RimWorld; using System; using System.Collections.Generic; using UnityEngine; using Verse; namespace rjw { /// <summary> /// Calculates a pawn's fertility based on its age and fertility sources /// </summary> public class PawnCapacityWorker_Fertility : PawnCapacityWorker { public override float CalculateCapacityLevel(HediffSet diffSet, List<PawnCapacityUtility.CapacityImpactor> impactors = null) { Pawn pawn = diffSet.pawn; var parts = pawn.GetGenitalsList(); if (!Genital_Helper.has_penis_fertile(pawn, parts) && !Genital_Helper.has_vagina(pawn, parts)) return 0; if (Genital_Helper.has_ovipositorF(pawn, parts) || Genital_Helper.has_ovipositorM(pawn, parts)) return 0; //ModLog.Message("PawnCapacityWorker_Fertility::CalculateCapacityLevel is called for: " + xxx.get_pawnname(pawn)); if (!pawn.RaceHasFertility()) { //Log.Message(" Fertility_filter, no fertility for : " + pawn.kindDef.defName); return 0f; } //androids only fertile with archotech parts if (AndroidsCompatibility.IsAndroid(pawn) && !(AndroidsCompatibility.AndroidPenisFertility(pawn) || AndroidsCompatibility.AndroidVaginaFertility(pawn))) { //Log.Message(" Android has no archotech genitals set fertility to 0 for: " + pawn.kindDef.defName); return 0f; } float result = 1; if (RJWPregnancySettings.UseVanillaPregnancy && pawn.RaceProps.Humanlike) { float fertilityStat = pawn.GetStatValue(StatDefOf.Fertility); if (fertilityStat != 1) { result *= fertilityStat; impactors?.Add(new CapacityImpactorVanillaFertility()); } } else { float ageFactor = CalculateAgeImpact(pawn); if (ageFactor != 1) { result *= ageFactor; impactors?.Add(new CapacityImpactorAge()); } } result *= PawnCapacityUtility.CalculateTagEfficiency(diffSet, BodyPartTagDefOf.RJW_Fertility, 1f, FloatRange.ZeroToOne, impactors); //ModLog.Message("PawnCapacityWorker_Fertility::CalculateCapacityLevel result is: " + result); return result; } public override bool CanHaveCapacity(BodyDef body) { return body.HasPartWithTag(BodyPartTagDefOf.RJW_Fertility); } private float CalculateAgeImpact(Pawn pawn) { RaceProperties race = pawn.RaceProps; float startAge = 0f; //raise fertility float startMaxAge = 0f; //max fertility float endAge = race.lifeExpectancy * (RJWPregnancySettings.fertility_endage_male * 0.7f); // Age when males start to lose potency. float zeroFertility = race.lifeExpectancy * RJWPregnancySettings.fertility_endage_male; // Age when fertility hits 0%. if (xxx.is_female(pawn)) { if (xxx.is_animal(pawn)) { endAge = race.lifeExpectancy * (RJWPregnancySettings.fertility_endage_female_animal * 0.6f); zeroFertility = race.lifeExpectancy * RJWPregnancySettings.fertility_endage_female_animal; } else { endAge = race.lifeExpectancy * (RJWPregnancySettings.fertility_endage_female_humanlike * 0.6f); // Age when fertility begins to drop. zeroFertility = race.lifeExpectancy * RJWPregnancySettings.fertility_endage_female_humanlike; // Age when fertility hits 0%. } } //If pawn is an animal, first reproductive lifestage is (usually) adult, so set startMaxAge at first reproductive stage, and startAge at stage before that. int adult; if (xxx.is_animal(pawn) && (adult = race.lifeStageAges.FirstIndexOf((ls) => ls.def.reproductive)) > 0) { startAge = race.lifeStageAges[adult - 1].minAge; startMaxAge = race.lifeStageAges[adult].minAge; } else { foreach (LifeStageAge lifestage in race.lifeStageAges) { if (lifestage.def.reproductive) //presumably teen stage if (startAge == 0f && startMaxAge == 0f) { startAge = lifestage.minAge; startMaxAge = (Mathf.Max(startAge + (startAge + endAge) * 0.08f, startAge)); } //presumably adult stage else { if (startMaxAge > lifestage.minAge) // ensure peak fertility stays at start or a bit before adult stage startMaxAge = lifestage.minAge; } } } //Log.Message(" Fertility ages for " + pawn.Name + " are: " + startAge + ", " + startMaxAge + ", " + endAge + ", " + endMaxAge); return GenMath.FlatHill(startAge, startMaxAge, endAge, zeroFertility, pawn.ageTracker.AgeBiologicalYearsFloat); } // Tooltips are hardcoded to only use concrete vanilla CapacityImpactors(?!), so we need to subclass one // in order to show anything without gratuitous patching (and possibly stepping on the toes of any mod that // happens to mess with these tooltips). CapacityImpactorPain doesn't have any fields or specialised methods, // so that's what we'll use. public class CapacityImpactorAge : PawnCapacityUtility.CapacityImpactorPain { public override string Readable(Pawn pawn) { return "AgeImpactor".Translate() + pawn.ageTracker.AgeBiologicalYearsFloat.ToStringApproxAge(); } } public class CapacityImpactorVanillaFertility : PawnCapacityUtility.CapacityImpactorPain { public override string Readable(Pawn pawn) { return "VanillaFertilityImpactor".Translate( ((int) (pawn.GetStatValue(StatDefOf.Fertility) * 100)).Named("VALUE") ); } } } }
jojo1541/rjw
1.5/Source/PawnCapacities/PawnCapacityWorker_Fertility.cs
C#
mit
5,265
using System.Reflection; 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("RimJobWorld")] [assembly: AssemblyDescription("Adult mod for Rimworld")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("Community Project")] [assembly: AssemblyProduct("RimJobWorld")] [assembly: AssemblyCopyright("Copyright © 2018")] [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("22f82fff-8bd4-4cee-9f22-c7da71281e72")] // 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.5.*")]
jojo1541/rjw
1.5/Source/Properties/AssemblyInfo.cs
C#
mit
1,350
using System; using System.Collections.Generic; using System.Linq; using Verse; using UnityEngine; using RimWorld; using Verse.Sound; namespace rjw.MainTab { [StaticConstructorOnStartup] public static class DesignatorCheckbox { public static readonly Texture2D CheckboxOnTex = ContentFinder<Texture2D>.Get("UI/Commands/Service_on"); public static readonly Texture2D CheckboxOffTex = ContentFinder<Texture2D>.Get("UI/Commands/Service_off"); public static readonly Texture2D CheckboxDisabledTex = ContentFinder<Texture2D>.Get("UI/Commands/Service_Refuse"); private static bool checkboxPainting; private static bool checkboxPaintingState; public static void Checkbox(Vector2 topLeft, ref bool checkOn, float size = 24f, bool disabled = false, Texture2D texChecked = null, Texture2D texUnchecked = null, Texture2D texDisabled = null) { Checkbox(topLeft.x, topLeft.y, ref checkOn, size, disabled, texChecked, texUnchecked); } public static void Checkbox(float x, float y, ref bool checkOn, float size = 24f, bool disabled = false, Texture2D texChecked = null, Texture2D texUnchecked = null, Texture2D texDisabled = null) { Rect rect = new Rect(x, y, size, size); CheckboxDraw(x, y, checkOn, disabled, size, texChecked, texUnchecked,texDisabled); if (!disabled) { MouseoverSounds.DoRegion(rect); bool flag = false; Widgets.DraggableResult draggableResult = Widgets.ButtonInvisibleDraggable(rect, false); if (draggableResult == Widgets.DraggableResult.Pressed) { checkOn = !checkOn; flag = true; } else if (draggableResult == Widgets.DraggableResult.Dragged) { checkOn = !checkOn; flag = true; checkboxPainting = true; checkboxPaintingState = checkOn; } if (Mouse.IsOver(rect) && checkboxPainting && Input.GetMouseButton(0) && checkOn != checkboxPaintingState) { checkOn = checkboxPaintingState; flag = true; } if (flag) { if (checkOn) { SoundDefOf.Checkbox_TurnedOn.PlayOneShotOnCamera(null); } else { SoundDefOf.Checkbox_TurnedOff.PlayOneShotOnCamera(null); } } } } private static void CheckboxDraw(float x, float y, bool active, bool disabled, float size = 24f, Texture2D texChecked = null, Texture2D texUnchecked = null, Texture2D texDisabled = null) { Texture2D image; if (disabled) { image = ((!(texDisabled != null)) ? CheckboxDisabledTex : texDisabled); } else if (active) { image = ((!(texChecked != null)) ? CheckboxOnTex : texChecked); } else { image = ((!(texUnchecked != null)) ? CheckboxOffTex : texUnchecked); } Rect position = new Rect(x, y, size, size); GUI.DrawTexture(position, image); } } }
jojo1541/rjw
1.5/Source/RJWTab/Checkboxes/DesignatorCheckbox.cs
C#
mit
2,754
using System; using System.Collections.Generic; using System.Linq; using Verse; using UnityEngine; using RimWorld; using Verse.Sound; namespace rjw.MainTab.Checkbox { [StaticConstructorOnStartup] public abstract class PawnColumnCheckbox : PawnColumnWorker { public static readonly Texture2D CheckboxOnTex; public static readonly Texture2D CheckboxOffTex; public static readonly Texture2D CheckboxDisabledTex; public const int HorizontalPadding = 2; public override void DoCell(Rect rect, Pawn pawn, RimWorld.PawnTable table) { if (!this.HasCheckbox(pawn)) { return; } if (Find.TickManager.TicksGame % 60 == 0) { pawn.UpdatePermissions(); //Log.Message("GetDisabled UpdateCanDesignateService for " + xxx.get_pawnname(pawn)); //Log.Message("UpdateCanDesignateService " + pawn.UpdateCanDesignateService()); //Log.Message("CanDesignateService " + pawn.CanDesignateService()); //Log.Message("GetDisabled " + GetDisabled(pawn)); } int num = (int)((rect.width - 24f) / 2f); int num2 = Mathf.Max(3, 0); Vector2 vector = new Vector2(rect.x + (float)num, rect.y + (float)num2); Rect rect2 = new Rect(vector.x, vector.y, 24f, 24f); bool disabled = this.GetDisabled(pawn); bool value; if (disabled) { value = false; } else { value = this.GetValue(pawn); } bool flag = value; Vector2 topLeft = vector; //Widgets.Checkbox(topLeft, ref value, 24f, disabled, CheckboxOnTex, CheckboxOffTex, CheckboxDisabledTex); MakeCheckbox(topLeft, ref value, 24f, disabled, CheckboxOnTex, CheckboxOffTex, CheckboxDisabledTex); if (Mouse.IsOver(rect2)) { string tip = this.GetTip(pawn); if (!tip.NullOrEmpty()) { TooltipHandler.TipRegion(rect2, tip); } } if (value != flag) { this.SetValue(pawn, value); } } protected void MakeCheckbox(Vector2 topLeft, ref bool value, float v = 24f, bool disabled = false, Texture2D checkboxOnTex = null, Texture2D checkboxOffTex = null, Texture2D checkboxDisabledTex = null) { Widgets.Checkbox(topLeft, ref value, v, disabled, checkboxOnTex, checkboxOffTex, checkboxDisabledTex); } protected virtual string GetTip(Pawn pawn) { return null; } protected virtual bool HasCheckbox(Pawn pawn) { return false; } protected abstract bool GetValue(Pawn pawn); protected abstract void SetValue(Pawn pawn, bool value); protected virtual bool GetDisabled(Pawn pawn) { return false; } } }
jojo1541/rjw
1.5/Source/RJWTab/Checkboxes/PawnColumnCheckbox.cs
C#
mit
2,494
using RimWorld; using UnityEngine; using Verse; namespace rjw.MainTab.Checkbox { [StaticConstructorOnStartup] public class PawnColumnWorker_BreedAnimal : PawnColumnWorker_Checkbox { public static readonly Texture2D CheckboxOnTex = ContentFinder<Texture2D>.Get("UI/Commands/Breeding_Pawn_on"); public static readonly Texture2D CheckboxOffTex = ContentFinder<Texture2D>.Get("UI/Commands/Breeding_Pawn_off"); public static readonly Texture2D CheckboxDisabledTex = ContentFinder<Texture2D>.Get("UI/Commands/Breeding_Pawn_Refuse"); protected override bool HasCheckbox(Pawn pawn) { return pawn.CanDesignateBreeding(); } protected bool GetDisabled(Pawn pawn) { return !pawn.CanDesignateBreeding(); } protected override bool GetValue(Pawn pawn) { return pawn.IsDesignatedBreeding() && xxx.is_animal(pawn); } protected override void SetValue(Pawn pawn, bool value, PawnTable table) { if (value == this.GetValue(pawn)) return; pawn.ToggleBreeding(); } } }
jojo1541/rjw
1.5/Source/RJWTab/Checkboxes/PawnColumnWorker_BreedAnimal.cs
C#
mit
1,000
using RimWorld; using UnityEngine; using Verse; namespace rjw.MainTab.Checkbox { [StaticConstructorOnStartup] public class PawnColumnWorker_BreedHumanlike : PawnColumnWorker_Checkbox { public static readonly Texture2D CheckboxOnTex = ContentFinder<Texture2D>.Get("UI/Commands/Breeding_Pawn_on"); public static readonly Texture2D CheckboxOffTex = ContentFinder<Texture2D>.Get("UI/Commands/Breeding_Pawn_off"); public static readonly Texture2D CheckboxDisabledTex = ContentFinder<Texture2D>.Get("UI/Commands/Breeding_Pawn_Refuse"); protected override bool HasCheckbox(Pawn pawn) { return pawn.CanDesignateBreeding(); } protected bool GetDisabled(Pawn pawn) { return !pawn.CanDesignateBreeding(); } protected override bool GetValue(Pawn pawn) { return pawn.IsDesignatedBreeding() && xxx.is_human(pawn); } protected override void SetValue(Pawn pawn, bool value, PawnTable table) { if (value == this.GetValue(pawn)) return; pawn.ToggleBreeding(); } } }
jojo1541/rjw
1.5/Source/RJWTab/Checkboxes/PawnColumnWorker_BreedHumanlike.cs
C#
mit
1,002
using RimWorld; using UnityEngine; using Verse; namespace rjw.MainTab.Checkbox { [StaticConstructorOnStartup] public class PawnColumnWorker_BreederAnimal : PawnColumnWorker_Checkbox { public static readonly Texture2D CheckboxOnTex = ContentFinder<Texture2D>.Get("UI/Commands/Breeding_Pawn_on"); public static readonly Texture2D CheckboxOffTex = ContentFinder<Texture2D>.Get("UI/Commands/Breeding_Pawn_off"); public static readonly Texture2D CheckboxDisabledTex = ContentFinder<Texture2D>.Get("UI/Commands/Breeding_Pawn_Refuse"); protected override bool HasCheckbox(Pawn pawn) { return pawn.CanDesignateBreedingAnimal(); } protected bool GetDisabled(Pawn pawn) { return !pawn.CanDesignateBreedingAnimal(); } protected override bool GetValue(Pawn pawn) { return pawn.IsDesignatedBreedingAnimal() && xxx.is_animal(pawn); } protected override void SetValue(Pawn pawn, bool value, PawnTable table) { if (value == this.GetValue(pawn)) return; pawn.ToggleBreedingAnimal(); } } }
jojo1541/rjw
1.5/Source/RJWTab/Checkboxes/PawnColumnWorker_BreederAnimal.cs
C#
mit
1,026
using RimWorld; using UnityEngine; using Verse; namespace rjw.MainTab.Checkbox { [StaticConstructorOnStartup] public class PawnColumnWorker_Comfort : PawnColumnWorker_Checkbox { public static readonly Texture2D CheckboxOnTex = ContentFinder<Texture2D>.Get("UI/Commands/ComfortPrisoner_on"); public static readonly Texture2D CheckboxOffTex = ContentFinder<Texture2D>.Get("UI/Commands/ComfortPrisoner_off"); public static readonly Texture2D CheckboxDisabledTex = ContentFinder<Texture2D>.Get("UI/Commands/ComfortPrisoner_Refuse"); protected override bool HasCheckbox(Pawn pawn) { return pawn.CanDesignateComfort(); } protected bool GetDisabled(Pawn pawn) { return !pawn.CanDesignateComfort(); } protected override bool GetValue(Pawn pawn) { return pawn.IsDesignatedComfort(); } protected override void SetValue(Pawn pawn, bool value, PawnTable table) { pawn.ToggleComfort(); } } }
jojo1541/rjw
1.5/Source/RJWTab/Checkboxes/PawnColumnWorker_Comfort.cs
C#
mit
931
using RimWorld; using UnityEngine; using Verse; namespace rjw.MainTab.Checkbox { [StaticConstructorOnStartup] public class PawnColumnWorker_Hero : PawnColumnCheckbox { //public static readonly Texture2D CheckboxOnTex = ContentFinder<Texture2D>.Get("UI/Commands/Hero_on"); //public static readonly Texture2D CheckboxOffTex = ContentFinder<Texture2D>.Get("UI/Commands/Hero_off"); //public static readonly Texture2D CheckboxDisabledTex = ContentFinder<Texture2D>.Get("UI/Commands/ComfortPrisoner_Refuse"); //public static readonly Texture2D iconAccept = ContentFinder<Texture2D>.Get("UI/Commands/Hero_off"); //static readonly Texture2D iconCancel = ContentFinder<Texture2D>.Get("UI/Commands/Hero_on"); //protected override Texture2D GetIconFor(Pawn pawn) //{ // return pawn.CanDesignateHero() ? pawn.IsDesignatedHero() ? iconAccept : iconCancel : null; //} //protected override string GetIconTip(Pawn pawn) //{ // return "PawnColumnWorker_IsHero".Translate(); // ; //} //public static Texture2D CheckboxOnTex = ContentFinder<Texture2D>.Get("UI/Commands/Hero_on"); //public static Texture2D CheckboxOffTex = ContentFinder<Texture2D>.Get("UI/Commands/Hero_off"); protected override bool HasCheckbox(Pawn pawn) { return pawn.CanDesignateHero() || pawn.IsDesignatedHero(); } protected override bool GetValue(Pawn pawn) { return pawn.IsDesignatedHero(); } protected override void SetValue(Pawn pawn, bool value) { if (pawn.IsDesignatedHero()) return; pawn.ToggleHero(); //reload/update tab var rjwtab = DefDatabase<MainButtonDef>.GetNamed("RJW_MainButton"); Find.MainTabsRoot.ToggleTab(rjwtab, false);//off Find.MainTabsRoot.ToggleTab(rjwtab, false);//on } } }
jojo1541/rjw
1.5/Source/RJWTab/Checkboxes/PawnColumnWorker_Hero.cs
C#
mit
1,740
using RimWorld; using UnityEngine; using Verse; namespace rjw.MainTab.Checkbox { [StaticConstructorOnStartup] public class PawnColumnWorker_Whore : PawnColumnWorker_Checkbox { public static readonly Texture2D CheckboxOnTex = ContentFinder<Texture2D>.Get("UI/Commands/Service_on"); public static readonly Texture2D CheckboxOffTex = ContentFinder<Texture2D>.Get("UI/Commands/Service_off"); public static readonly Texture2D CheckboxDisabledTex = ContentFinder<Texture2D>.Get("UI/Commands/Service_Refuse"); protected override bool HasCheckbox(Pawn pawn) { return pawn.CanDesignateService(); } protected bool GetDisabled(Pawn pawn) { return !pawn.CanDesignateService(); } protected override bool GetValue(Pawn pawn) { return pawn.IsDesignatedService(); } protected override void SetValue(Pawn pawn, bool value, PawnTable table) { pawn.ToggleService(); } } }
jojo1541/rjw
1.5/Source/RJWTab/Checkboxes/PawnColumnWorker_Whore.cs
C#
mit
905
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Verse; namespace rjw.MainTab.DefModExtensions { public class RJW_PawnTable : DefModExtension { public string label; } }
jojo1541/rjw
1.5/Source/RJWTab/DefModExtensions/RJW_PawnTable.cs
C#
mit
251
using System.Collections.Generic; using System.Linq; using System.Text; using RimWorld; using RimWorld.Planet; using UnityEngine; using Verse; namespace rjw.MainTab.Icon { [StaticConstructorOnStartup] public class PawnColumnWorker_IsBreeder : PawnColumnWorker_Icon { private static readonly Texture2D comfortOn = ContentFinder<Texture2D>.Get("UI/Commands/ComfortPrisoner_on"); private readonly Texture2D comfortOff = ContentFinder<Texture2D>.Get("UI/Commands/ComfortPrisoner_off"); private readonly Texture2D comfortOff_nobg = ContentFinder<Texture2D>.Get("UI/Commands/ComfortPrisoner_off_nobg"); protected override Texture2D GetIconFor(Pawn pawn) { return pawn.CanDesignateBreeding() ? pawn.IsDesignatedBreeding() ? comfortOn : comfortOff : comfortOff_nobg; //return xxx.is_slave(pawn) ? comfortOff : null; } protected override string GetIconTip(Pawn pawn) { return "PawnColumnWorker_IsBreeder".Translate(); ; } } }
jojo1541/rjw
1.5/Source/RJWTab/Icons/PawnColumnWorker_IsBreeder.cs
C#
mit
954
using System.Collections.Generic; using System.Linq; using System.Text; using RimWorld; using RimWorld.Planet; using UnityEngine; using Verse; namespace rjw.MainTab.Icon { [StaticConstructorOnStartup] public class PawnColumnWorker_IsComfort : PawnColumnWorker_Icon { private readonly Texture2D comfortOn = ContentFinder<Texture2D>.Get("UI/Commands/ComfortPrisoner_on"); private readonly Texture2D comfortOff = ContentFinder<Texture2D>.Get("UI/Commands/ComfortPrisoner_off"); private readonly Texture2D comfortOff_nobg = ContentFinder<Texture2D>.Get("UI/Commands/ComfortPrisoner_off_nobg"); protected override Texture2D GetIconFor(Pawn pawn) { return pawn.CanDesignateComfort() ? pawn.IsDesignatedComfort() ? comfortOn : comfortOff : comfortOff_nobg; } protected override string GetIconTip(Pawn pawn) { return "PawnColumnWorker_IsComfort".Translate(); ; } } }
jojo1541/rjw
1.5/Source/RJWTab/Icons/PawnColumnWorker_IsComfort.cs
C#
mit
893
using System.Collections.Generic; using System.Linq; using System.Text; using RimWorld; using RimWorld.Planet; using UnityEngine; using Verse; namespace rjw.MainTab.Icon { [StaticConstructorOnStartup] public class PawnColumnWorker_IsPrisoner : PawnColumnWorker_Icon { private static readonly Texture2D comfortOn = ContentFinder<Texture2D>.Get("UI/Commands/ComfortPrisoner_on"); private readonly Texture2D comfortOff = ContentFinder<Texture2D>.Get("UI/Commands/ComfortPrisoner_off"); private readonly Texture2D comfortOff_nobg = ContentFinder<Texture2D>.Get("UI/Commands/ComfortPrisoner_off_nobg"); protected override Texture2D GetIconFor(Pawn pawn) { return pawn.IsPrisonerOfColony ? comfortOff_nobg : null; } protected override string GetIconTip(Pawn pawn) { return "PawnColumnWorker_IsPrisoner".Translate(); } } }
jojo1541/rjw
1.5/Source/RJWTab/Icons/PawnColumnWorker_IsPrisoner.cs
C#
mit
848
using System.Collections.Generic; using System.Linq; using System.Text; using RimWorld; using RimWorld.Planet; using UnityEngine; using Verse; namespace rjw.MainTab.Icon { [StaticConstructorOnStartup] public class PawnColumnWorker_IsSlave : PawnColumnWorker_Icon { private readonly Texture2D comfortOn = ContentFinder<Texture2D>.Get("UI/Commands/ComfortPrisoner_on"); private readonly Texture2D comfortOff = ContentFinder<Texture2D>.Get("UI/Commands/ComfortPrisoner_off"); private readonly Texture2D comfortOff_nobg = ContentFinder<Texture2D>.Get("UI/Commands/ComfortPrisoner_off_nobg"); protected override Texture2D GetIconFor(Pawn pawn) { return xxx.is_slave(pawn) ? ModsConfig.IdeologyActive ? GuestUtility.SlaveIcon : comfortOff_nobg : null; } protected override string GetIconTip(Pawn pawn) { return "PawnColumnWorker_IsSlave".Translate(); ; } } }
jojo1541/rjw
1.5/Source/RJWTab/Icons/PawnColumnWorker_IsSlave.cs
C#
mit
887
using RimWorld; using UnityEngine; using Verse; using static rjw.GenderHelper; namespace rjw.MainTab.Icon { [StaticConstructorOnStartup] public class PawnColumnWorker_RJWGender : PawnColumnWorker_Gender { public static readonly Texture2D hermIcon = ContentFinder<Texture2D>.Get("UI/Icons/Gender/Genders", true); protected override Texture2D GetIconFor(Pawn pawn) => GetSex(pawn) switch { Sex.Futa => hermIcon, _ => pawn.gender.GetIcon() }; protected override string GetIconTip(Pawn pawn) => GetSex(pawn) switch { Sex.Futa => "PawnColumnWorker_RJWGender_IsHerm".Translate(), _ => pawn.GetGenderLabel().CapitalizeFirst() }; } }
jojo1541/rjw
1.5/Source/RJWTab/Icons/PawnColumnWorker_RJWGender.cs
C#
mit
661
using System.Collections.Generic; using System.Linq; using Verse; using RimWorld; using RimWorld.Planet; using UnityEngine; using rjw.MainTab.DefModExtensions; namespace rjw.MainTab { [StaticConstructorOnStartup] public class RJW_PawnTableList { public List<PawnTableDef> getdefs() { var defs = new List<PawnTableDef>(); defs.AddRange(DefDatabase<PawnTableDef>.AllDefs.Where(x => x.HasModExtension<RJW_PawnTable>())); return defs; } } public class MainTabWindow : MainTabWindow_PawnTable { protected override float ExtraBottomSpace { get { return 53f; //default 53 } } protected override float ExtraTopSpace { get { return 40f; //default 0 } } protected override PawnTableDef PawnTableDef => pawnTableDef; protected override IEnumerable<Pawn> Pawns => pawns; public IEnumerable<Pawn> pawns = Find.CurrentMap.mapPawns.AllPawns.Where(p => p.RaceProps.Humanlike && p.IsColonist && !xxx.is_slave(p)); public PawnTableDef pawnTableDef = DefDatabase<PawnTableDef>.GetNamed("RJW_PawnTable_Colonists"); /// <summary> /// draw table /// </summary> /// <param name="rect"></param> public override void DoWindowContents(Rect rect) { base.DoWindowContents(rect); if (Widgets.ButtonText(new Rect(rect.x + 5f, rect.y + 5f, Mathf.Min(rect.width, 260f), 32f), "MainTabWindow_Designators".Translate(), true, true, true)) { MakeMenu(); } } public override void PostOpen() { base.PostOpen(); Find.World.renderer.wantedMode = WorldRenderMode.None; } /// <summary> /// reload/update tab /// </summary> public static void Reloadtab() { var rjwtab = DefDatabase<MainButtonDef>.GetNamed("RJW_MainButton"); Find.MainTabsRoot.ToggleTab(rjwtab, false);//off Find.MainTabsRoot.ToggleTab(rjwtab, false);//on } public void MakeMenu() { Find.WindowStack.Add(new FloatMenu(MakeOptions())); } /// <summary> /// switch pawnTable's /// patch this /// </summary> public List<FloatMenuOption> MakeOptions() { List<FloatMenuOption> opts = new List<FloatMenuOption>(); PawnTableDef tabC = DefDatabase<PawnTableDef>.GetNamed("RJW_PawnTable_Colonists"); PawnTableDef tabA = DefDatabase<PawnTableDef>.GetNamed("RJW_PawnTable_Animals"); PawnTableDef tabP = DefDatabase<PawnTableDef>.GetNamed("RJW_PawnTable_Property"); opts.Add(new FloatMenuOption(tabC.GetModExtension<RJW_PawnTable>().label, () => { pawnTableDef = tabC; pawns = Find.CurrentMap.mapPawns.AllPawns.Where(p => p.RaceProps.Humanlike && p.IsColonist && !xxx.is_slave(p)); Notify_ResolutionChanged(); Reloadtab(); }, MenuOptionPriority.Default)); opts.Add(new FloatMenuOption(tabA.GetModExtension<RJW_PawnTable>().label, () => { pawnTableDef = tabA; pawns = Find.CurrentMap.mapPawns.PawnsInFaction(Faction.OfPlayer).Where(p => xxx.is_animal(p)); Notify_ResolutionChanged(); Reloadtab(); }, MenuOptionPriority.Default)); opts.Add(new FloatMenuOption(tabP.GetModExtension<RJW_PawnTable>().label, () => { pawnTableDef = tabP; pawns = Find.CurrentMap.mapPawns.AllPawns.Where(p => p.RaceProps.Humanlike && (p.IsColonist && xxx.is_slave(p) || p.IsPrisonerOfColony)); Notify_ResolutionChanged(); Reloadtab(); }, MenuOptionPriority.Default)); return opts; } } }
jojo1541/rjw
1.5/Source/RJWTab/MainTabWindow.cs
C#
mit
3,335
using System.Collections.Generic; using System.Linq; using System.Text; using RimWorld; using RimWorld.Planet; using UnityEngine; using Verse; namespace rjw.MainTab { public abstract class PawnColumnWorker_TextCenter : PawnColumnWorker_Text { public override void DoCell(Rect rect, Pawn pawn, PawnTable table) { Rect rect2 = new Rect(rect.x, rect.y, rect.width, Mathf.Min(rect.height, 30f)); string textFor = GetTextFor(pawn); if (textFor != null) { Text.Font = GameFont.Small; Text.Anchor = TextAnchor.MiddleCenter; Text.WordWrap = false; Widgets.Label(rect2, textFor); Text.WordWrap = true; Text.Anchor = TextAnchor.UpperLeft; string tip = GetTip(pawn); if (!tip.NullOrEmpty()) { TooltipHandler.TipRegion(rect2, tip); } } } } }
jojo1541/rjw
1.5/Source/RJWTab/PawnColumnWorker_TextCenter.cs
C#
mit
803
using System; using System.Collections.Generic; using System.Linq; using RimWorld; using rjw; using Verse; namespace rjw.MainTab { public class RJW_PawnTable_Animals : PawnTable_Animals { public RJW_PawnTable_Animals(PawnTableDef def, Func<IEnumerable<Pawn>> pawnsGetter, int uiWidth, int uiHeight) : base(def, pawnsGetter, uiWidth, uiHeight) { } //default sorting protected override IEnumerable<Pawn> LabelSortFunction(IEnumerable<Pawn> input) { //return input.OrderBy(p => p.Name); foreach (Pawn p in input) p.UpdatePermissions(); return input.OrderByDescending(p => xxx.get_pawnname(p)); //return input.OrderByDescending(p => (p.IsPrisonerOfColony || p.IsSlaveOfColony) != false).ThenBy(p => (p.Name.ToStringShort.Colorize(Color.yellow))); //return input.OrderBy(p => xxx.get_pawnname(p)); } protected override IEnumerable<Pawn> PrimarySortFunction(IEnumerable<Pawn> input) { foreach (Pawn p in input) p.UpdatePermissions(); return input; //return base.PrimarySortFunction(input); } //public IEnumerable<Pawn> FilterPawns //{ // get // { // ModLog.Message("FilterPawnsGet"); // var x = Find.CurrentMap.mapPawns.PawnsInFaction(Faction.OfPlayer).Where(p => xxx.is_animal(p)); // ModLog.Message("x: " + x); // return x; // } //} } }
jojo1541/rjw
1.5/Source/RJWTab/PawnTable_Animals.cs
C#
mit
1,314
using System; using System.Collections.Generic; using System.Linq; using RimWorld; using rjw; using Verse; namespace rjw.MainTab { public class RJW_PawnTable_Humanlikes : PawnTable_PlayerPawns { public RJW_PawnTable_Humanlikes(PawnTableDef def, Func<IEnumerable<Pawn>> pawnsGetter, int uiWidth, int uiHeight) : base(def, pawnsGetter, uiWidth, uiHeight) { } //default sorting protected override IEnumerable<Pawn> LabelSortFunction(IEnumerable<Pawn> input) { //return input.OrderBy(p => p.Name); foreach (Pawn p in input) p.UpdatePermissions(); return input.OrderByDescending(p => (p.IsPrisonerOfColony || p.IsSlaveOfColony) != false).ThenBy(p => xxx.get_pawnname(p)); //return input.OrderByDescending(p => (p.IsPrisonerOfColony || p.IsSlaveOfColony) != false).ThenBy(p => (p.Name.ToStringShort.Colorize(Color.yellow))); //return input.OrderBy(p => xxx.get_pawnname(p)); } protected override IEnumerable<Pawn> PrimarySortFunction(IEnumerable<Pawn> input) { foreach (Pawn p in input) p.UpdatePermissions(); return input; //return base.PrimarySortFunction(input); } //public static IEnumerable<Pawn> FilterPawns() //{ // return Find.CurrentMap.mapPawns.PawnsInFaction(Faction.OfPlayer).Where(p => xxx.is_animal(p)); //} } }
jojo1541/rjw
1.5/Source/RJWTab/PawnTable_Humanlikes.cs
C#
mit
1,285
using System.Collections.Generic; using System.Linq; using HarmonyLib; using RimWorld; using Verse; using Sex = rjw.GenderHelper.Sex; namespace rjw { // Less straightforward than part removal as this recipe can potentially be applied on pawn generation public class Recipe_InstallPart : Recipe_InstallArtificialBodyPart { protected virtual bool CanApplyOnPart(Pawn pawn, BodyPartRecord record) { if (record.parent != null && !pawn.health.hediffSet.GetNotMissingParts().Contains(record.parent)) { return false; } return true; } public virtual bool ValidFor(Pawn pawn) => !xxx.is_slime(pawn); public override bool AvailableOnNow(Thing thing, BodyPartRecord part = null) { return base.AvailableOnNow(thing, part) && ValidFor((Pawn) thing); } public override IEnumerable<BodyPartRecord> GetPartsToApplyOn(Pawn pawn, RecipeDef recipe) { return MedicalRecipesUtility.GetFixedPartsToApplyOn(recipe, pawn, (BodyPartRecord record) => CanApplyOnPart(pawn, record)); } public override void ApplyOnPawn(Pawn pawn, BodyPartRecord part, Pawn billDoer, List<Thing> ingredients, Bill bill) { Sex before = GenderHelper.GetSex(pawn); if (billDoer != null && CheckSurgeryFail(billDoer, pawn, ingredients, part, bill)) { return; } OnSurgerySuccess(pawn, part, billDoer, ingredients, bill); Hediff addedPartHediff = SexPartAdder.recipePartAdder(recipe, pawn, part, ingredients); pawn.health.AddHediff(addedPartHediff, part); if (billDoer != null) { if (IsViolationOnPawn(pawn, part, billDoer.Faction)) { ReportViolation(pawn, billDoer, pawn.Faction, -80); } if (ModsConfig.IdeologyActive && !addedPartHediff.def.IsArtificialSexPart()) { Find.HistoryEventsManager.RecordEvent(new HistoryEvent(HistoryEventDefOf.InstalledProsthetic, billDoer.Named(HistoryEventArgsNames.Doer))); } } if (!PawnGenerator.IsBeingGenerated(pawn)) { // TODO: Incorporate sex changes into violation logic Sex after = GenderHelper.GetSex(pawn); GenderHelper.ChangeSex(pawn, before, after); } } protected override void OnSurgerySuccess(Pawn pawn, BodyPartRecord part, Pawn billDoer, List<Thing> ingredients, Bill bill) { if (billDoer != null) { TaleRecorder.RecordTale(TaleDefOf.DidSurgery, billDoer, pawn); SurgeryHelper.RemoveAndSpawnSexParts(billDoer, pawn, part, isReplacement: true); MedicalRecipesUtility.SpawnNaturalPartIfClean(pawn, part, billDoer.Position, billDoer.Map); MedicalRecipesUtility.SpawnThingsFromHediffs(pawn, part, billDoer.Position, billDoer.Map); } pawn.health.RestorePart(part); } } public class Recipe_InstallGenitals : Recipe_InstallPart { public override bool ValidFor(Pawn p) { return base.ValidFor(p) && !Genital_Helper.genitals_blocked(p); } } public class Recipe_InstallBreasts : Recipe_InstallPart { public override bool ValidFor(Pawn p) { return base.ValidFor(p) && !Genital_Helper.breasts_blocked(p); } } public class Recipe_InstallAnus : Recipe_InstallPart { public override bool ValidFor(Pawn p) { return base.ValidFor(p) && !Genital_Helper.anus_blocked(p); } } }
jojo1541/rjw
1.5/Source/Recipes/Install_Part/Recipe_InstallPart.cs
C#
mit
3,182
using System.Collections.Generic; using System.Linq; using RimWorld; using Verse; namespace rjw { public class Recipe_AddMultiPart : Recipe_InstallPart { // Record tale without removing pre-existing parts protected override void OnSurgerySuccess(Pawn pawn, BodyPartRecord part, Pawn billDoer, List<Thing> ingredients, Bill bill) { if (billDoer != null) { TaleRecorder.RecordTale(TaleDefOf.DidSurgery, billDoer, pawn); } } protected override bool CanApplyOnPart(Pawn pawn, BodyPartRecord record) { return base.CanApplyOnPart(pawn, record) && !pawn.health.hediffSet.PartIsMissing(record); } public override bool ValidFor(Pawn pawn) { if (!base.ValidFor(pawn)) { return false; } var parts = pawn.GetGenitalsList(); GenitalFamily? genitalType = (recipe.addsHediff as HediffDef_SexPart).genitalFamily; //don't add if artificial parts present if (pawn.health.hediffSet.hediffs.Any((Hediff hed) => (hed.Part != null) && recipe.appliedOnFixedBodyParts.Contains(hed.Part.def) && hed is Hediff_AddedPart)) { return false; } return true; } public override IEnumerable<BodyPartRecord> GetPartsToApplyOn(Pawn pawn, RecipeDef recipe) { //don't add if artificial parts present foreach (var part in base.GetPartsToApplyOn(pawn, recipe)) { if (pawn.health.hediffSet.GetDirectlyAddedPartFor(part)?.def.organicAddedBodypart ?? true) { yield return part; } } } } }
jojo1541/rjw
1.5/Source/Recipes/Recipe_AddMultiPart.cs
C#
mit
1,471
using RimWorld; using System.Collections.Generic; using Verse; namespace rjw { /// <summary> /// Removes heddifs (restraints/cocoon) /// </summary> public class Recipe_RemoveRestraints : Recipe_RemoveHediff { public override bool AvailableOnNow(Thing pawn, BodyPartRecord part = null) { return true; } public override IEnumerable<BodyPartRecord> GetPartsToApplyOn(Pawn pawn, RecipeDef recipe) { List<Hediff> allHediffs = pawn.health.hediffSet.hediffs; int i = 0; while (true) { if (i >= allHediffs.Count) { yield break; } if (allHediffs[i].def == recipe.removesHediff && allHediffs[i].Visible) { break; } i++; } yield return allHediffs[i].Part; } } }
jojo1541/rjw
1.5/Source/Recipes/Recipe_Restraints.cs
C#
mit
734
using System.Collections.Generic; using RimWorld; using Verse; namespace rjw { public class Recipe_RemoveAnus : Recipe_RemovePart { protected override bool ValidFor(Pawn p) { return base.ValidFor(p) && Genital_Helper.has_anus(p) && !Genital_Helper.anus_blocked(p); } } }
jojo1541/rjw
1.5/Source/Recipes/Remove_Part/Recipe_RemoveAnus.cs
C#
mit
286
using System.Collections.Generic; using RimWorld; using Verse; namespace rjw { public class Recipe_RemoveBreasts : Recipe_RemovePart { protected override bool ValidFor(Pawn p) { return base.ValidFor(p) && Genital_Helper.has_breasts(p) && !Genital_Helper.breasts_blocked(p); } } }
jojo1541/rjw
1.5/Source/Recipes/Remove_Part/Recipe_RemoveBreasts.cs
C#
mit
295
using System.Collections.Generic; using RimWorld; using Verse; namespace rjw { public class Recipe_RemoveGenitals : Recipe_RemovePart { protected override bool ValidFor(Pawn p) { return base.ValidFor(p) && Genital_Helper.has_genitals(p) && !Genital_Helper.genitals_blocked(p); } } }
jojo1541/rjw
1.5/Source/Recipes/Remove_Part/Recipe_RemoveGenitals.cs
C#
mit
298
using System.Collections.Generic; using Multiplayer.API; using RimWorld; using Verse; namespace rjw { public class Recipe_RemovePart : Recipe_RemoveBodyPart { private const int HarvestGoodwillPenalty = -80; protected virtual bool ValidFor(Pawn p) { return !xxx.is_slime(p);//|| xxx.is_demon(p) } public override bool AvailableOnNow(Thing thing, BodyPartRecord part = null) { return base.AvailableOnNow(thing, part) && ValidFor((Pawn)thing); } public override IEnumerable<BodyPartRecord> GetPartsToApplyOn(Pawn pawn, RecipeDef recipe) { return MedicalRecipesUtility.GetFixedPartsToApplyOn(recipe, pawn); } public override void ApplyOnPawn(Pawn pawn, BodyPartRecord part, Pawn billDoer, List<Thing> ingredients, Bill bill) { bool isHarvest = SurgeryHelper.IsHarvest(pawn, part); bool isViolation = isHarvest && IsViolationOnPawn(pawn, part, billDoer.Faction); if (billDoer != null) { if (CheckSurgeryFail(billDoer, pawn, ingredients, part, bill)) { return; } OnSurgerySuccess(pawn, part, billDoer, ingredients, bill); } DamagePart(pawn, part); pawn.Drawer.renderer.SetAllGraphicsDirty(); if (isHarvest) { ApplyThoughts(pawn, billDoer); } if (isViolation) { ReportViolation(pawn, billDoer, pawn.HomeFaction, HarvestGoodwillPenalty); } } protected override void OnSurgerySuccess(Pawn pawn, BodyPartRecord part, Pawn billDoer, List<Thing> ingredients, Bill bill) { base.OnSurgerySuccess(pawn, part, billDoer, ingredients, bill); TaleRecorder.RecordTale(TaleDefOf.DidSurgery, billDoer, pawn); SurgeryHelper.RemoveAndSpawnSexParts(billDoer, pawn, part, isReplacement: false); MedicalRecipesUtility.SpawnNaturalPartIfClean(pawn, part, billDoer.Position, billDoer.Map); MedicalRecipesUtility.SpawnThingsFromHediffs(pawn, part, billDoer.Position, billDoer.Map); } public override string GetLabelWhenUsedOn(Pawn p, BodyPartRecord part) { return recipe.label.CapitalizeFirst(); } [SyncMethod] public override void DamagePart(Pawn pawn, BodyPartRecord part) { if (part.IsCorePart) { float damageAmount = part.def.hitPoints * Rand.Range(.5f, 1.5f) / 20f; pawn.TakeDamage(new DamageInfo(DamageDefOf.SurgicalCut, damageAmount, 999f, -1f, null, part)); } else { base.DamagePart(pawn, part); } } } }
jojo1541/rjw
1.5/Source/Recipes/Remove_Part/Recipe_RemovePart.cs
C#
mit
2,368
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using RimWorld; using Verse; namespace rjw { public class PawnRelationWorker_Child_Beast : PawnRelationWorker_Child { public override bool InRelation(Pawn me, Pawn other) { if (!xxx.is_animal(other) || me == other) { return false; } return RelationChecker.isChildOf(other, me); } } public class PawnRelationWorker_Sibling_Beast : PawnRelationWorker_Sibling { public override bool InRelation(Pawn me, Pawn other) { if (!xxx.is_animal(other) || me == other) { return false; } return RelationChecker.isSiblingOf(other, me); } } public class PawnRelationWorker_HalfSibling_Beast : PawnRelationWorker_HalfSibling { public override bool InRelation(Pawn me, Pawn other) { if (!xxx.is_animal(other) || me == other) { return false; } return RelationChecker.isHalfSiblingOf(other, me); } } public class PawnRelationWorker_Grandparent_Beast : PawnRelationWorker_Grandparent { public override bool InRelation(Pawn me, Pawn other) { if (!xxx.is_animal(other) || me == other) { return false; } return RelationChecker.isGrandchildOf(me, other); } } public class PawnRelationWorker_Grandchild_Beast : PawnRelationWorker_Grandchild { public override bool InRelation(Pawn me, Pawn other) { if (!xxx.is_animal(other) || me == other) { return false; } return RelationChecker.isGrandparentOf(me, other); //if other isGrandchildOf of me, me is their grandparent } } public class PawnRelationWorker_NephewOrNiece_Beast : PawnRelationWorker_NephewOrNiece { public override bool InRelation(Pawn me, Pawn other) { if (!xxx.is_animal(other) || me == other) { return false; } return RelationChecker.isUncleOrAuntOf(me, other); } } public class PawnRelationWorker_UncleOrAunt_Beast : PawnRelationWorker_UncleOrAunt { public override bool InRelation(Pawn me, Pawn other) { if (!xxx.is_animal(other) || me == other) { return false; } return RelationChecker.isNephewOrNieceOf(me, other); } } public class PawnRelationWorker_Cousin_Beast : PawnRelationWorker_Cousin { public override bool InRelation(Pawn me, Pawn other) { if (!xxx.is_animal(other) || me == other) { return false; } return RelationChecker.isCousinOf(me, other); } } public class PawnRelationWorker_GreatGrandparent_Beast : PawnRelationWorker_GreatGrandparent { public override bool InRelation(Pawn me, Pawn other) { if (!xxx.is_animal(other) || me == other) { return false; } return RelationChecker.isGreatGrandChildOf(me, other); } } public class PawnRelationWorker_GreatGrandchild_Beast : PawnRelationWorker_GreatGrandchild { public override bool InRelation(Pawn me, Pawn other) { if (!xxx.is_animal(other) || me == other) { return false; } return RelationChecker.isGreatGrandparentOf(me, other); } } public class PawnRelationWorker_GranduncleOrGrandaunt_Beast : PawnRelationWorker_GranduncleOrGrandaunt { public override bool InRelation(Pawn me, Pawn other) { if (!xxx.is_animal(other) || me == other) { return false; } return RelationChecker.isGrandnephewOrGrandnieceOf(me, other); } } public class PawnRelationWorker_GrandnephewOrGrandniece_Beast : PawnRelationWorker_GrandnephewOrGrandniece { public override bool InRelation(Pawn me, Pawn other) { if (!xxx.is_animal(other) || me == other) { return false; } return RelationChecker.isGreatUncleOrAuntOf(me, other); } } public class PawnRelationWorker_CousinOnceRemoved_Beast : PawnRelationWorker_CousinOnceRemoved { public override bool InRelation(Pawn me, Pawn other) { if (!xxx.is_animal(other) || me == other) { return false; } return RelationChecker.isCousinOnceRemovedOf(me, other); } } public class PawnRelationWorker_SecondCousin_Beast : PawnRelationWorker_SecondCousin { public override bool InRelation(Pawn me, Pawn other) { if (!xxx.is_animal(other) || me == other) { return false; } return RelationChecker.isSecondCousinOf(me, other); } } /* public class PawnRelationWorker_Kin_Beast : PawnRelationWorker_Kin { public override bool InRelation(Pawn me, Pawn other) { if (!xxx.is_animal(other) || me == other) { return false; } if (base.InRelation(me, other) == true) { return true; } return false; } } */ }
jojo1541/rjw
1.5/Source/Relations/BeastPawnRelationWorkers.cs
C#
mit
4,540
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using RimWorld; using Verse; namespace rjw { public class PawnRelationWorker_Child_Humanlike : PawnRelationWorker_Child { public override bool InRelation(Pawn me, Pawn other) { if (xxx.is_animal(other) || me == other) { return false; } return RelationChecker.isChildOf(other, me); } } public class PawnRelationWorker_Sibling_Humanlike : PawnRelationWorker_Sibling { public override bool InRelation(Pawn me, Pawn other) { if (xxx.is_animal(other) || me == other) { return false; } return RelationChecker.isSiblingOf(me, other); } } public class PawnRelationWorker_HalfSibling_Humanlike : PawnRelationWorker_HalfSibling { public override bool InRelation(Pawn me, Pawn other) { if (xxx.is_animal(other) || me == other) { return false; } return RelationChecker.isHalfSiblingOf(other, me); } } public class PawnRelationWorker_Grandparent_Humanlike : PawnRelationWorker_Grandparent { public override bool InRelation(Pawn me, Pawn other) { if (xxx.is_animal(other) || me == other) { return false; } return RelationChecker.isGrandchildOf(me, other); } } public class PawnRelationWorker_Grandchild_Humanlike : PawnRelationWorker_Grandchild { public override bool InRelation(Pawn me, Pawn other) { if (xxx.is_animal(other) || me == other) { return false; } return RelationChecker.isGrandparentOf(me, other); } } public class PawnRelationWorker_NephewOrNiece_Humanlike : PawnRelationWorker_NephewOrNiece { public override bool InRelation(Pawn me, Pawn other) { if (xxx.is_animal(other) || me == other) { return false; } return RelationChecker.isUncleOrAuntOf(me, other); } } public class PawnRelationWorker_UncleOrAunt_Humanlike : PawnRelationWorker_UncleOrAunt { public override bool InRelation(Pawn me, Pawn other) { if (xxx.is_animal(other) || me == other) { return false; } return RelationChecker.isNephewOrNieceOf(me, other); } } public class PawnRelationWorker_Cousin_Humanlike : PawnRelationWorker_Cousin { public override bool InRelation(Pawn me, Pawn other) { if (xxx.is_animal(other) || me == other) { return false; } return RelationChecker.isCousinOf(me, other); } } public class PawnRelationWorker_GreatGrandparent_Humanlike : PawnRelationWorker_GreatGrandparent { public override bool InRelation(Pawn me, Pawn other) { if (xxx.is_animal(other) || me == other) { return false; } return RelationChecker.isGreatGrandChildOf(me, other); } } public class PawnRelationWorker_GreatGrandchild_Humanlike : PawnRelationWorker_GreatGrandchild { public override bool InRelation(Pawn me, Pawn other) { if (xxx.is_animal(other) || me == other) { return false; } return RelationChecker.isGreatGrandparentOf(me, other); } } public class PawnRelationWorker_GranduncleOrGrandaunt_Humanlike : PawnRelationWorker_GranduncleOrGrandaunt { public override bool InRelation(Pawn me, Pawn other) { if (xxx.is_animal(other) || me == other) { return false; } return RelationChecker.isGrandnephewOrGrandnieceOf(me, other); } } public class PawnRelationWorker_GrandnephewOrGrandniece_Humanlike : PawnRelationWorker_GrandnephewOrGrandniece { public override bool InRelation(Pawn me, Pawn other) { if (xxx.is_animal(other) || me == other) { return false; } return RelationChecker.isGreatUncleOrAuntOf(me, other); } } public class PawnRelationWorker_CousinOnceRemoved_Humanlike : PawnRelationWorker_CousinOnceRemoved { public override bool InRelation(Pawn me, Pawn other) { if (xxx.is_animal(other) || me == other) { return false; } return RelationChecker.isCousinOnceRemovedOf(me, other); } } public class PawnRelationWorker_SecondCousin_Humanlike : PawnRelationWorker_SecondCousin { public override bool InRelation(Pawn me, Pawn other) { if (xxx.is_animal(other) || me == other) { return false; } return RelationChecker.isSecondCousinOf(me, other); } } public class PawnRelationWorker_Kin_Humanlike : PawnRelationWorker_Kin { public override bool InRelation(Pawn me, Pawn other) { if (xxx.is_animal(other) || me == other) { return false; } if (base.InRelation(me, other) == true) { return true; } return false; } } }
jojo1541/rjw
1.5/Source/Relations/HumanlikeBloodRelationWorkers.cs
C#
mit
4,520
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using RimWorld; using Verse; namespace rjw { /// <summary> /// Checks for relations, workaround for relation checks that rely on other relation checks, since the vanilla inRelation checks have been prefixed. /// /// Return true if first pawn is specified relation of the second pawn /// /// If "me" isRelationOf "other" return true /// </summary> /// public static class RelationChecker { // like getMother() but without gender, and capable of pulling second parent of same gender private static Pawn getParent(Pawn pawn, bool skipFirst) { if (pawn == null) { return null; } if (!pawn.RaceProps.IsFlesh) { return null; } if (pawn.relations == null) { return null; } foreach (DirectPawnRelation directPawnRelation in pawn.relations.DirectRelations) { if (directPawnRelation.def == PawnRelationDefOf.Parent) { if (!skipFirst) { return directPawnRelation.otherPawn; } skipFirst = false; } } return null; } // unnecessary but make reading relations easier public static Pawn getParent(Pawn pawn) { return getParent(pawn, false); } public static Pawn getSecondParent(Pawn pawn) { return getParent(pawn, true); } // checks against all Parent direct relations, ignoring gender public static bool isChildOf(Pawn me, Pawn other) { if (me == null || other ==null || me == other) { return false; } if (!other.RaceProps.IsFlesh) { return false; } if (me.relations == null) { return false; } foreach (DirectPawnRelation directPawnRelation in me.relations.DirectRelations) { if (directPawnRelation.def == PawnRelationDefOf.Parent && directPawnRelation.otherPawn == other) { return true; } } return false; } public static bool isSiblingOf(Pawn me, Pawn other) { if (me == null || me == other) { return false; } if (getParent(me) != null && getSecondParent(me) != null && ( getParent(me) == getParent(other) && getSecondParent(me) == getSecondParent(other) || // if both have same parents getParent(me) == getSecondParent(other) && getSecondParent(me) == getParent(other))) // if parents swapped roles, idk how such relation would be named, but without this they are kin, which is wrong { return true; } return false; } public static bool isHalfSiblingOf(Pawn me, Pawn other) { if (me == null || me == other) { return false; } if (isSiblingOf(me, other)) { return false; } return getParent(me) != null && (getParent(me) == getParent(other) || getParent(me) == getSecondParent(other)) || getSecondParent(me) != null && (getSecondParent(me) == getParent(other) || getSecondParent(me) == getSecondParent(other)); } public static bool isAnySiblingOf(Pawn me, Pawn other) { if (me == null || me == other) { return false; } if (getParent(me) != null && (getParent(me) == getParent(other) || getParent(me) == getSecondParent(other)) || getSecondParent(me) != null && (getSecondParent(me) == getParent(other) || getSecondParent(me) == getSecondParent(other))) { return true; } return false; } public static bool isGrandchildOf(Pawn me, Pawn other) { if (me == null || me == other) { return false; } if ((getParent(me) != null && isChildOf(getParent(me), other)) || (getSecondParent(me) != null && isChildOf(getSecondParent(me), other))) { return true; } return false; } public static bool isGrandparentOf(Pawn me, Pawn other) { if (me == null || me == other) { return false; } if (isGrandchildOf(other, me)) { return true; } return false; } public static bool isNephewOrNieceOf(Pawn me, Pawn other) { if (me == null || me == other) { return false; } if ((getParent(me) != null && (isAnySiblingOf(other, getParent(me)))) || (getSecondParent(me) != null && (isAnySiblingOf(other, getSecondParent(me))))) { return true; } return false; } public static bool isUncleOrAuntOf(Pawn me, Pawn other) { if (me == null || me == other) { return false; } if (isNephewOrNieceOf(other, me)) { return true; } return false; } public static bool isCousinOf(Pawn me, Pawn other) { if (me == null || me == other) { return false; } if ((getParent(other) != null && isNephewOrNieceOf(me, getParent(other))) || (getSecondParent(other) != null && isNephewOrNieceOf(me, getSecondParent(other)))) { return true; } return false; } public static bool isGreatGrandparentOf(Pawn me, Pawn other) { if (me == null || me == other) { return false; } return isGreatGrandChildOf(other, me); } public static bool isGreatGrandChildOf(Pawn me, Pawn other) { if (me == null || me == other) { return false; } if ((getParent(me) != null && isGrandchildOf(getParent(me), other)) || (getSecondParent(me) != null && isGrandchildOf(getSecondParent(me), other))) { return true; } return false; } public static bool isGreatUncleOrAuntOf(Pawn me, Pawn other) { if (me == null || me == other) { return false; } return isGrandnephewOrGrandnieceOf(other, me); } public static bool isGrandnephewOrGrandnieceOf(Pawn me, Pawn other) { if (me == null || me == other) { return false; } if ((getParent(me) != null && isUncleOrAuntOf(other, getParent(me))) || (getSecondParent(me) != null && isUncleOrAuntOf(other, getSecondParent(me)))) { return true; } return false; } public static bool isCousinOnceRemovedOf(Pawn me, Pawn other) { if (me == null || me == other) { return false; } if ((getParent(other) != null && isCousinOf(me, getParent(other))) || (getSecondParent(other) != null && isCousinOf(me, getSecondParent(other)))) { return true; } if ((getParent(other) != null && isGrandnephewOrGrandnieceOf(me, getParent(other))) || (getSecondParent(other) != null && isGrandnephewOrGrandnieceOf(me, getSecondParent(other)))) { return true; } return false; } public static bool isSecondCousinOf(Pawn me, Pawn other) { if (me == null || me == other) { return false; } Pawn parent = getParent(other); if (parent != null && ((getParent(parent) != null && isGrandnephewOrGrandnieceOf(me, getParent(parent))) || (getSecondParent(parent) != null && isGrandnephewOrGrandnieceOf(me, getSecondParent(parent))))) { return true; } Pawn secondParent = getSecondParent(other); if (secondParent != null && (getParent(secondParent) != null && isGrandnephewOrGrandnieceOf(me, getParent(secondParent)) || (getSecondParent(secondParent) != null && isGrandnephewOrGrandnieceOf(me, getSecondParent(secondParent))))) { return true; } return false; } } }
jojo1541/rjw
1.5/Source/Relations/RelationChecker.cs
C#
mit
7,015
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Verse; namespace rjw.RenderNodeWorkers { public class PawnRenderNodeWorker_Apparel_DrawNude : PawnRenderSubWorker { public override bool CanDrawNowSub(PawnRenderNode node, PawnDrawParms parms) { return false; } } }
jojo1541/rjw
1.5/Source/RenderNodeWorkers/PawnRenderNodeWorker_Apparel_DrawNude.cs
C#
mit
353
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> <ProjectGuid>{22F82FFF-8BD4-4CEE-9F22-C7DA71281E72}</ProjectGuid> <OutputType>Library</OutputType> <NoStdLib>false</NoStdLib> <AssemblyName>RJW</AssemblyName> <TargetFramework>net472</TargetFramework> <OutputPath>..\Assemblies\</OutputPath> <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <GenerateAssemblyInfo>False</GenerateAssemblyInfo> <FileAlignment>512</FileAlignment> <LangVersion>latest</LangVersion> <RootNamespace>rjw</RootNamespace> <Deterministic>false</Deterministic> <Prefer32Bit>false</Prefer32Bit> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> <DebugSymbols>true</DebugSymbols> <DebugType>full</DebugType> <Optimize>false</Optimize> <DefineConstants>TRACE;DEBUG</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> <FileAlignment>4096</FileAlignment> </PropertyGroup> <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> <DebugType>none</DebugType> <Optimize>true</Optimize> <DefineConstants>TRACE</DefineConstants> <ErrorReport>prompt</ErrorReport> <WarningLevel>4</WarningLevel> </PropertyGroup> <!-- Set the `BENCHMARK` environment variable to "1" to enable benchmarking. --> <PropertyGroup Condition="'$(BENCHMARK)' == '1'"> <DefineConstants>$(DefineConstants);BENCHMARK</DefineConstants> </PropertyGroup> <!-- Prevents copying DLLs on build. --> <!-- If you do still get copies, wipe out the `obj` folder and re-run the `restore` task. --> <!-- You can do this on the command line with: `msbuild /t:restore` --> <ItemDefinitionGroup> <Reference><Private>False</Private></Reference> <ProjectReference><Private>False</Private></ProjectReference> <PackageReference><ExcludeAssets>runtime</ExcludeAssets></PackageReference> </ItemDefinitionGroup> <ItemGroup> <Reference Include="Psychology"> <HintPath>0trash\modpackages\Psychology.2018-11-18\Assemblies\Psychology.dll</HintPath> <Private>False</Private> </Reference> <Reference Include="SyrTraits"> <HintPath>0trash\modpackages\SYR.Individuality.1.1.7\1.1\Assemblies\SyrTraits.dll</HintPath> <Private>False</Private> </Reference> </ItemGroup> <ItemGroup> <PackageReference Include="Krafs.Publicizer"> <Version>2.*</Version> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> <PrivateAssets>all</PrivateAssets> </PackageReference> <PackageReference Include="Krafs.Rimworld.Ref" Version="*" /> <PackageReference Include="Lib.Harmony" Version="2.*" /> <PackageReference Include="RimWorld.MultiplayerAPI"> <Version>*</Version> <!-- Same as the Prepatcher --> <ExcludeAssets>none</ExcludeAssets> </PackageReference> <PackageReference Include="Zetrith.Prepatcher"> <Version>*</Version> <!-- Including the api is required to not break debug options when using it as optional --> <ExcludeAssets>none</ExcludeAssets> </PackageReference> </ItemGroup> <ItemGroup> <Publicize Include="Assembly-CSharp" IncludeVirtualMembers="false" /> </ItemGroup> </Project>
jojo1541/rjw
1.5/Source/RimJobWorld.Main.csproj
csproj
mit
3,481
Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 15 VisualStudioVersion = 15.0.27130.2024 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "RimJobWorld.Main", "RimJobWorld.Main.csproj", "{22F82FFF-8BD4-4CEE-9F22-C7DA71281E72}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution {22F82FFF-8BD4-4CEE-9F22-C7DA71281E72}.Debug|Any CPU.ActiveCfg = Release|Any CPU {22F82FFF-8BD4-4CEE-9F22-C7DA71281E72}.Debug|Any CPU.Build.0 = Release|Any CPU {22F82FFF-8BD4-4CEE-9F22-C7DA71281E72}.Release|Any CPU.ActiveCfg = Release|Any CPU {22F82FFF-8BD4-4CEE-9F22-C7DA71281E72}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {16BA61E5-4C97-4E73-926D-6718DE8E4776} EndGlobalSection EndGlobal
jojo1541/rjw
1.5/Source/RimJobWorld.Main.sln
sln
mit
1,105
using System; using UnityEngine; using Verse; using System.Collections.Generic; namespace rjw { public class RJWDebugSettings : ModSettings { private static Vector2 scrollPosition; private static float height_modifier = 0f; public static void DoWindowContents(Rect inRect) { Rect outRect = new Rect(0f, 30f, inRect.width, inRect.height - 30f); Rect viewRect = new Rect(0f, 0f, inRect.width - 16f, inRect.height + height_modifier); Widgets.BeginScrollView(outRect, ref scrollPosition, viewRect); // scroll Listing_Standard listingStandard = new Listing_Standard(); listingStandard.maxOneColumn = true; listingStandard.ColumnWidth = viewRect.width / 2.05f; listingStandard.Begin(viewRect); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("submit_button_enabled".Translate(), ref RJWSettings.submit_button_enabled, "submit_button_enabled_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("RJW_designation_box".Translate(), ref RJWSettings.show_RJW_designation_box, "RJW_designation_box_desc".Translate()); listingStandard.Gap(5f); if (listingStandard.ButtonText("Rjw Parts " + RJWSettings.ShowRjwParts)) { Find.WindowStack.Add(new FloatMenu(new List<FloatMenuOption>() { new FloatMenuOption("Extended", (() => RJWSettings.ShowRjwParts = RJWSettings.ShowParts.Extended)), new FloatMenuOption("Show", (() => RJWSettings.ShowRjwParts = RJWSettings.ShowParts.Show)), //new FloatMenuOption("Known".Translate(), (() => RJWSettings.ShowRjwParts = RJWSettings.ShowParts.Known)), new FloatMenuOption("Hide", (() => RJWSettings.ShowRjwParts = RJWSettings.ShowParts.Hide)) })); } listingStandard.Gap(30f); GUI.contentColor = Color.yellow; listingStandard.Label("YOU PATHETIC CHEATER "); GUI.contentColor = Color.white; listingStandard.CheckboxLabeled("override_RJW_designation_checks_name".Translate(), ref RJWSettings.override_RJW_designation_checks, "override_RJW_designation_checks_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("override_control".Translate(), ref RJWSettings.override_control, "override_control_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("AddTrait_Rapist".Translate(), ref RJWSettings.AddTrait_Rapist, "AddTrait_Rapist_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("AddTrait_Masocist".Translate(), ref RJWSettings.AddTrait_Masocist, "AddTrait_Masocist_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("AddTrait_Nymphomaniac".Translate(), ref RJWSettings.AddTrait_Nymphomaniac, "AddTrait_Nymphomaniac_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("AddTrait_Necrophiliac".Translate(), ref RJWSettings.AddTrait_Necrophiliac, "AddTrait_Necrophiliac_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("AddTrait_Nerves".Translate(), ref RJWSettings.AddTrait_Nerves, "AddTrait_Nerves_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("AddTrait_Zoophiliac".Translate(), ref RJWSettings.AddTrait_Zoophiliac, "AddTrait_Zoophiliac_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("AddTrait_FootSlut".Translate(), ref RJWSettings.AddTrait_FootSlut, "AddTrait_FootSlut_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("AddTrait_CumSlut".Translate(), ref RJWSettings.AddTrait_CumSlut, "AddTrait_CumSlut_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("AddTrait_ButtSlut".Translate(), ref RJWSettings.AddTrait_ButtSlut, "AddTrait_ButtSlut_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("Allow_RMB_DeepTalk".Translate(), ref RJWSettings.Allow_RMB_DeepTalk, "Allow_RMB_DeepTalk_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("Disable_bestiality_pregnancy_relations".Translate(), ref RJWSettings.Disable_bestiality_pregnancy_relations, "Disable_bestiality_pregnancy_relations_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("Disable_egg_pregnancy_relations".Translate(), ref RJWSettings.Disable_egg_pregnancy_relations, "Disable_egg_pregnancy_relations_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("Disable_MeditationFocusDrain".Translate(), ref RJWSettings.Disable_MeditationFocusDrain, "Disable_MeditationFocusDrain_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("Disable_RecreationDrain".Translate(), ref RJWSettings.Disable_RecreationDrain, "Disable_RecreationDrain_desc".Translate()); listingStandard.Gap(5f); listingStandard.NewColumn(); listingStandard.Gap(4f); GUI.contentColor = Color.yellow; listingStandard.CheckboxLabeled("designated_freewill".Translate(), ref RJWSettings.designated_freewill, "designated_freewill_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("override_lovin".Translate(), ref RJWSettings.override_lovin, "override_lovin_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("override_matin".Translate(), ref RJWSettings.override_matin, "override_matin_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("matin_crossbreed".Translate(), ref RJWSettings.matin_crossbreed, "matin_crossbreed_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("DevMode_name".Translate(), ref RJWSettings.DevMode, "DevMode_desc".Translate()); listingStandard.Gap(5f); if (RJWSettings.DevMode) { listingStandard.CheckboxLabeled("WildMode_name".Translate(), ref RJWSettings.WildMode, "WildMode_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("HippieMode_name".Translate(), ref RJWSettings.HippieMode, "HippieMode_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("DebugLogJoinInBed".Translate(), ref RJWSettings.DebugLogJoinInBed, "DebugLogJoinInBed_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("DebugRape".Translate(), ref RJWSettings.DebugRape, "DebugRape_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("DebugInteraction".Translate(), ref RJWSettings.DebugInteraction, "DebugInteraction_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("DebugNymph".Translate(), ref RJWSettings.DebugNymph, "DebugNymph_desc".Translate()); listingStandard.Gap(5f); } else { RJWSettings.DebugLogJoinInBed = false; RJWSettings.DebugRape = false; } listingStandard.CheckboxLabeled("GenderlessAsFuta_name".Translate(), ref RJWSettings.GenderlessAsFuta, "GenderlessAsFuta_desc".Translate()); listingStandard.Gap(5f); GUI.contentColor = Color.white; listingStandard.Gap(30f); listingStandard.Label("maxDistanceCellsCasual_name".Translate() + ": " + (RJWSettings.maxDistanceCellsCasual), -1f, "maxDistanceCellsCasual_desc".Translate()); RJWSettings.maxDistanceCellsCasual = listingStandard.Slider((int)RJWSettings.maxDistanceCellsCasual, 0, 10000); listingStandard.Label("maxDistanceCellsRape_name".Translate() + ": " + (RJWSettings.maxDistanceCellsRape), -1f, "maxDistanceCellsRape_desc".Translate()); RJWSettings.maxDistanceCellsRape = listingStandard.Slider((int)RJWSettings.maxDistanceCellsRape, 0, 10000); listingStandard.Label("maxDistancePathCost_name".Translate() + ": " + (RJWSettings.maxDistancePathCost), -1f, "maxDistancePathCost_desc".Translate()); RJWSettings.maxDistancePathCost = listingStandard.Slider((int)RJWSettings.maxDistancePathCost, 0, 5000); listingStandard.End(); height_modifier = listingStandard.CurHeight; Widgets.EndScrollView(); } public override void ExposeData() { base.ExposeData(); Scribe_Values.Look(ref RJWSettings.submit_button_enabled, "submit_button_enabled", RJWSettings.submit_button_enabled, true); Scribe_Values.Look(ref RJWSettings.show_RJW_designation_box, "show_RJW_designation_box", RJWSettings.show_RJW_designation_box, true); Scribe_Values.Look(ref RJWSettings.ShowRjwParts, "ShowRjwParts", RJWSettings.ShowRjwParts, true); Scribe_Values.Look(ref RJWSettings.maxDistanceCellsCasual, "maxDistanceCellsCasual", RJWSettings.maxDistanceCellsCasual, true); Scribe_Values.Look(ref RJWSettings.maxDistanceCellsRape, "maxDistanceCellsRape", RJWSettings.maxDistanceCellsRape, true); Scribe_Values.Look(ref RJWSettings.maxDistancePathCost, "maxDistancePathCost", RJWSettings.maxDistancePathCost, true); Scribe_Values.Look(ref RJWSettings.AddTrait_Rapist, "AddTrait_Rapist", RJWSettings.AddTrait_Rapist, true); Scribe_Values.Look(ref RJWSettings.AddTrait_Masocist, "AddTrait_Masocist", RJWSettings.AddTrait_Masocist, true); Scribe_Values.Look(ref RJWSettings.AddTrait_Nymphomaniac, "AddTrait_Nymphomaniac", RJWSettings.AddTrait_Nymphomaniac, true); Scribe_Values.Look(ref RJWSettings.AddTrait_Necrophiliac, "AddTrait_Necrophiliac", RJWSettings.AddTrait_Necrophiliac, true); Scribe_Values.Look(ref RJWSettings.AddTrait_Nerves, "AddTrait_Nerves", RJWSettings.AddTrait_Nerves, true); Scribe_Values.Look(ref RJWSettings.AddTrait_Zoophiliac, "AddTrait_Zoophiliac", RJWSettings.AddTrait_Zoophiliac, true); Scribe_Values.Look(ref RJWSettings.AddTrait_FootSlut, "AddTrait_FootSlut", RJWSettings.AddTrait_FootSlut, true); Scribe_Values.Look(ref RJWSettings.AddTrait_CumSlut, "AddTrait_CumSlut", RJWSettings.AddTrait_CumSlut, true); Scribe_Values.Look(ref RJWSettings.AddTrait_ButtSlut, "AddTrait_ButtSlut", RJWSettings.AddTrait_ButtSlut, true); Scribe_Values.Look(ref RJWSettings.Allow_RMB_DeepTalk, "Allow_RMB_DeepTalk", RJWSettings.Allow_RMB_DeepTalk, true); Scribe_Values.Look(ref RJWSettings.Allow_RMB_DeepTalk, "Allow_RMB_DeepTalk", RJWSettings.Allow_RMB_DeepTalk, true); Scribe_Values.Look(ref RJWSettings.Disable_bestiality_pregnancy_relations, "Disable_bestiality_pregnancy_relations", RJWSettings.Disable_bestiality_pregnancy_relations, true); Scribe_Values.Look(ref RJWSettings.Disable_egg_pregnancy_relations, "Disable_egg_pregnancy_relations", RJWSettings.Disable_egg_pregnancy_relations, true); Scribe_Values.Look(ref RJWSettings.Disable_MeditationFocusDrain, "Disable_MeditationFocusDrain", RJWSettings.Disable_MeditationFocusDrain, true); Scribe_Values.Look(ref RJWSettings.Disable_RecreationDrain, "Disable_RecreationDrain", RJWSettings.Disable_RecreationDrain, true); Scribe_Values.Look(ref RJWSettings.GenderlessAsFuta, "GenderlessAsFuta", RJWSettings.GenderlessAsFuta, true); Scribe_Values.Look(ref RJWSettings.override_lovin, "override_lovin", RJWSettings.override_lovin, true); Scribe_Values.Look(ref RJWSettings.override_matin, "override_matin", RJWSettings.override_matin, true); Scribe_Values.Look(ref RJWSettings.matin_crossbreed, "matin_crossbreed", RJWSettings.matin_crossbreed, true); Scribe_Values.Look(ref RJWSettings.WildMode, "Wildmode", RJWSettings.WildMode, true); Scribe_Values.Look(ref RJWSettings.HippieMode, "Hippiemode", RJWSettings.HippieMode, true); Scribe_Values.Look(ref RJWSettings.override_RJW_designation_checks, "override_RJW_designation_checks", RJWSettings.override_RJW_designation_checks, true); Scribe_Values.Look(ref RJWSettings.override_control, "override_control", RJWSettings.override_control, true); Scribe_Values.Look(ref RJWSettings.DevMode, "DevMode", RJWSettings.DevMode, true); Scribe_Values.Look(ref RJWSettings.DebugLogJoinInBed, "DebugLogJoinInBed", RJWSettings.DebugLogJoinInBed, true); Scribe_Values.Look(ref RJWSettings.DebugRape, "DebugRape", RJWSettings.DebugRape, true); Scribe_Values.Look(ref RJWSettings.DebugInteraction, "DebugInteraction", RJWSettings.DebugInteraction, true); Scribe_Values.Look(ref RJWSettings.DebugNymph, "DebugNymph", RJWSettings.DebugNymph, true); } } }
jojo1541/rjw
1.5/Source/Settings/RJWDebugSettings.cs
C#
mit
12,065
using System; using UnityEngine; using Verse; namespace rjw { public class RJWHookupSettings : ModSettings { public static bool HookupsEnabled = true; public static bool QuickHookupsEnabled = true; public static bool NoHookupsDuringWorkHours = true; public static bool ColonistsCanHookup = true; public static bool ColonistsCanHookupWithVisitor = false; public static bool CanHookupWithPrisoner = false; public static bool VisitorsCanHookupWithColonists = false; public static bool VisitorsCanHookupWithVisitors = true; public static bool PrisonersCanHookupWithNonPrisoner = false; public static bool PrisonersCanHookupWithPrisoner = true; public static float HookupChanceForNonNymphos = 0.3f; public static float MinimumFuckabilityToHookup = 0.1f; public static float MinimumAttractivenessToHookup = 0.5f; public static float MinimumRelationshipToHookup = 20f; //public static bool NymphosCanPickAnyone = true; public static bool NymphosCanCheat = true; public static bool NymphosCanHomewreck = true; public static bool NymphosCanHomewreckReverse = true; private static Vector2 scrollPosition; private static float height_modifier = 0f; public static void DoWindowContents(Rect inRect) { MinimumFuckabilityToHookup = Mathf.Clamp(MinimumFuckabilityToHookup, 0.1f, 1f); MinimumAttractivenessToHookup = Mathf.Clamp(MinimumAttractivenessToHookup, 0.0f, 1f); MinimumRelationshipToHookup = Mathf.Clamp(MinimumRelationshipToHookup, -100, 100); Rect outRect = new Rect(0f, 30f, inRect.width, inRect.height - 30f); Rect viewRect = new Rect(0f, 0f, inRect.width - 16f, inRect.height + height_modifier); Widgets.BeginScrollView(outRect, ref scrollPosition, viewRect); // scroll Listing_Standard listingStandard = new Listing_Standard(); listingStandard.maxOneColumn = true; listingStandard.ColumnWidth = viewRect.width / 2.05f; listingStandard.Begin(viewRect); listingStandard.Gap(4f); // Casual sex settings listingStandard.CheckboxLabeled("SettingHookupsEnabled".Translate(), ref HookupsEnabled, "SettingHookupsEnabled_desc".Translate()); if(HookupsEnabled) listingStandard.CheckboxLabeled("SettingQuickHookupsEnabled".Translate(), ref QuickHookupsEnabled, "SettingQuickHookupsEnabled_desc".Translate()); listingStandard.CheckboxLabeled("SettingNoHookupsDuringWorkHours".Translate(), ref NoHookupsDuringWorkHours, "SettingNoHookupsDuringWorkHours_desc".Translate()); listingStandard.Gap(10f); listingStandard.CheckboxLabeled("SettingColonistsCanHookup".Translate(), ref ColonistsCanHookup, "SettingColonistsCanHookup_desc".Translate()); listingStandard.CheckboxLabeled("SettingColonistsCanHookupWithVisitor".Translate(), ref ColonistsCanHookupWithVisitor, "SettingColonistsCanHookupWithVisitor_desc".Translate()); listingStandard.CheckboxLabeled("SettingVisitorsCanHookupWithColonists".Translate(), ref VisitorsCanHookupWithColonists, "SettingVisitorsCanHookupWithColonists_desc".Translate()); listingStandard.CheckboxLabeled("SettingVisitorsCanHookupWithVisitors".Translate(), ref VisitorsCanHookupWithVisitors, "SettingVisitorsCanHookupWithVisitors_desc".Translate()); listingStandard.Gap(10f); listingStandard.CheckboxLabeled("SettingPrisonersCanHookupWithNonPrisoner".Translate(), ref PrisonersCanHookupWithNonPrisoner, "SettingPrisonersCanHookupWithNonPrisoner_desc".Translate()); listingStandard.CheckboxLabeled("SettingPrisonersCanHookupWithPrisoner".Translate(), ref PrisonersCanHookupWithPrisoner, "SettingPrisonersCanHookupWithPrisoner_desc".Translate()); listingStandard.CheckboxLabeled("SettingCanHookupWithPrisoner".Translate(), ref CanHookupWithPrisoner, "SettingCanHookupWithPrisoner_desc".Translate()); listingStandard.Gap(10f); //listingStandard.CheckboxLabeled("SettingNymphosCanPickAnyone".Translate(), ref NymphosCanPickAnyone, "SettingNymphosCanPickAnyone_desc".Translate()); listingStandard.CheckboxLabeled("SettingNymphosCanCheat".Translate(), ref NymphosCanCheat, "SettingNymphosCanCheat_desc".Translate()); listingStandard.CheckboxLabeled("SettingNymphosCanHomewreck".Translate(), ref NymphosCanHomewreck, "SettingNymphosCanHomewreck_desc".Translate()); listingStandard.CheckboxLabeled("SettingNymphosCanHomewreckReverse".Translate(), ref NymphosCanHomewreckReverse, "SettingNymphosCanHomewreckReverse_desc".Translate()); listingStandard.Gap(10f); listingStandard.Label("SettingHookupChanceForNonNymphos".Translate() + ": " + (int)(HookupChanceForNonNymphos * 100) + "%", -1f, "SettingHookupChanceForNonNymphos_desc".Translate()); HookupChanceForNonNymphos = listingStandard.Slider(HookupChanceForNonNymphos, 0.0f, 1.0f); listingStandard.Label("SettingMinimumFuckabilityToHookup".Translate() + ": " + (int)(MinimumFuckabilityToHookup * 100) + "%", -1f, "SettingMinimumFuckabilityToHookup_desc".Translate()); MinimumFuckabilityToHookup = listingStandard.Slider(MinimumFuckabilityToHookup, 0.1f, 1.0f); // Minimum must be above 0.0 to avoid breaking SexAppraiser.would_fuck()'s hard-failure cases that return 0f listingStandard.Label("SettingMinimumAttractivenessToHookup".Translate() + ": " + (int)(MinimumAttractivenessToHookup * 100) + "%", -1f, "SettingMinimumAttractivenessToHookup_desc".Translate()); MinimumAttractivenessToHookup = listingStandard.Slider(MinimumAttractivenessToHookup, 0.0f, 1.0f); listingStandard.Label("SettingMinimumRelationshipToHookup".Translate() + ": " + (MinimumRelationshipToHookup), -1f, "SettingMinimumRelationshipToHookup_desc".Translate()); MinimumRelationshipToHookup = listingStandard.Slider((int)MinimumRelationshipToHookup, -100f, 100f); listingStandard.NewColumn(); listingStandard.Gap(4f); listingStandard.End(); height_modifier = listingStandard.CurHeight; Widgets.EndScrollView(); } public override void ExposeData() { base.ExposeData(); Scribe_Values.Look(ref HookupsEnabled, "SettingHookupsEnabled"); Scribe_Values.Look(ref QuickHookupsEnabled, "SettingQuickHookupsEnabled"); Scribe_Values.Look(ref NoHookupsDuringWorkHours, "NoHookupsDuringWorkHours"); Scribe_Values.Look(ref ColonistsCanHookup, "SettingColonistsCanHookup"); Scribe_Values.Look(ref ColonistsCanHookupWithVisitor, "SettingColonistsCanHookupWithVisitor"); Scribe_Values.Look(ref VisitorsCanHookupWithColonists, "SettingVisitorsCanHookupWithColonists"); Scribe_Values.Look(ref VisitorsCanHookupWithVisitors, "SettingVisitorsCanHookupWithVisitors"); // Prisoner settings Scribe_Values.Look(ref CanHookupWithPrisoner, "SettingCanHookupWithPrisoner"); Scribe_Values.Look(ref PrisonersCanHookupWithNonPrisoner, "SettingPrisonersCanHookupWithNonPrisoner"); Scribe_Values.Look(ref PrisonersCanHookupWithPrisoner, "SettingPrisonersCanHookupWithPrisoner"); // Nympho settings //Scribe_Values.Look(ref NymphosCanPickAnyone, "SettingNymphosCanPickAnyone"); Scribe_Values.Look(ref NymphosCanCheat, "SettingNymphosCanCheat"); Scribe_Values.Look(ref NymphosCanHomewreck, "SettingNymphosCanHomewreck"); Scribe_Values.Look(ref NymphosCanHomewreckReverse, "SettingNymphosCanHomewreckReverse"); Scribe_Values.Look(ref HookupChanceForNonNymphos, "SettingHookupChanceForNonNymphos"); Scribe_Values.Look(ref MinimumFuckabilityToHookup, "SettingMinimumFuckabilityToHookup"); Scribe_Values.Look(ref MinimumAttractivenessToHookup, "SettingMinimumAttractivenessToHookup"); Scribe_Values.Look(ref MinimumRelationshipToHookup, "SettingMinimumRelationshipToHookup"); } } }
jojo1541/rjw
1.5/Source/Settings/RJWHookupSettings.cs
C#
mit
7,542
using System; using UnityEngine; using Verse; namespace rjw { public class RJWPregnancySettings : ModSettings { public static bool humanlike_pregnancy_enabled = true; public static bool animal_pregnancy_enabled = true; public static bool animal_pregnancy_notifications_enabled = true; public static bool bestial_pregnancy_enabled = true; public static bool insect_pregnancy_enabled = true; public static bool insect_anal_pregnancy_enabled = false; public static bool insect_oral_pregnancy_enabled = false; public static bool egg_pregnancy_implant_anyone = true; public static bool egg_pregnancy_fertilize_anyone = false; public static bool egg_pregnancy_genes = true; public static bool egg_pregnancy_fertOrificeCheck_enabled = true; public static float egg_pregnancy_eggs_size = 1.0f; public static float egg_pregnancy_ovipositor_capacity_factor = 1f; public static bool safer_mechanoid_pregnancy = false; public static bool mechanoid_pregnancy_enabled = true; public static bool use_parent_method = true; public static float humanlike_DNA_from_mother = 0.5f; public static float bestiality_DNA_inheritance = 0.5f; // human/beast slider public static float bestial_DNA_from_mother = 1.0f; // mother/father slider public static bool complex_interspecies = false; public static int animal_impregnation_chance = 25; public static int humanlike_impregnation_chance = 25; public static float interspecies_impregnation_modifier = 0.2f; public static float fertility_endage_male = 1.2f; public static float fertility_endage_female_humanlike = 0.58f; public static float fertility_endage_female_animal = 0.96f; public static bool phantasy_pregnancy = false; public static float normal_pregnancy_duration = 1.0f; public static float egg_pregnancy_duration = 1.0f; public static float max_num_momtraits_inherited = 3.0f; public static float max_num_poptraits_inherited = 3.0f; private static bool useVanillaPregnancy = true; public static bool UseVanillaPregnancy => useVanillaPregnancy && ModsConfig.BiotechActive; private static Vector2 scrollPosition; private static float height_modifier = 0f; public static void DoWindowContents(Rect inRect) { Rect outRect = new Rect(0f, 30f, inRect.width, inRect.height - 30f); Rect viewRect = new Rect(0f, 30f, inRect.width - 16f, inRect.height + height_modifier); Widgets.BeginScrollView(outRect, ref scrollPosition, viewRect); Listing_Standard listingStandard = new Listing_Standard(); listingStandard.maxOneColumn = true; listingStandard.ColumnWidth = viewRect.width / 2.05f; listingStandard.Begin(viewRect); listingStandard.Gap(4f); listingStandard.CheckboxLabeled("RJWH_pregnancy".Translate(), ref humanlike_pregnancy_enabled, "RJWH_pregnancy_desc".Translate()); listingStandard.Gap(5f); if (ModsConfig.BiotechActive) { listingStandard.CheckboxLabeled("UseVanillaPregnancy".Translate(), ref useVanillaPregnancy, "UseVanillaPregnancy_desc".Translate()); listingStandard.Gap(5f); } listingStandard.CheckboxLabeled("RJWA_pregnancy".Translate(), ref animal_pregnancy_enabled, "RJWA_pregnancy_desc".Translate()); if (animal_pregnancy_enabled) { listingStandard.Gap(3f); listingStandard.CheckboxLabeled(" " + "RJWA_pregnancy_notifications".Translate(), ref animal_pregnancy_notifications_enabled, "RJWA_pregnancy_notifications_desc".Translate()); } listingStandard.Gap(5f); listingStandard.CheckboxLabeled("RJWB_pregnancy".Translate(), ref bestial_pregnancy_enabled, "RJWB_pregnancy_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("RJWI_pregnancy".Translate(), ref insect_pregnancy_enabled, "RJWI_pregnancy_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("egg_pregnancy_implant_anyone".Translate(), ref egg_pregnancy_implant_anyone, "egg_pregnancy_implant_anyone_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("egg_pregnancy_fertilize_anyone".Translate(), ref egg_pregnancy_fertilize_anyone, "egg_pregnancy_fertilize_anyone_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("egg_pregnancy_genes".Translate(), ref egg_pregnancy_genes, "egg_pregnancy_genes_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("RJWI_analPregnancy".Translate(), ref insect_anal_pregnancy_enabled, "RJWI_analPregnancy_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("RJWI_oralPregnancy".Translate(), ref insect_oral_pregnancy_enabled, "RJWI_oralPregnancy_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("RJWI_FertilizationCheck".Translate(), ref egg_pregnancy_fertOrificeCheck_enabled, "RJWI_FertilizationCheck_desc".Translate()); listingStandard.Gap(5f); listingStandard.Gap(5f); int eggs_size = (int)(egg_pregnancy_eggs_size * 100); listingStandard.Label("egg_pregnancy_eggs_size".Translate() + ": " + eggs_size + "%", -1f, "egg_pregnancy_eggs_size_desc".Translate()); egg_pregnancy_eggs_size = listingStandard.Slider(egg_pregnancy_eggs_size, 0.0f, 1.0f); int ovipositor_capacity_factor_percentage = (int)(egg_pregnancy_ovipositor_capacity_factor * 100); listingStandard.Label("egg_pregnancy_ovipositor_capacity_factor".Translate() + ": " + ovipositor_capacity_factor_percentage + "%", -1, "egg_pregnancy_ovipositor_capacity_factor_desc".Translate()); // Note: Choose the domain any wider and a different input method has to be used or the slider width has to be increased! egg_pregnancy_ovipositor_capacity_factor = listingStandard.Slider(egg_pregnancy_ovipositor_capacity_factor, .1f, 5f); listingStandard.Gap(12f); listingStandard.CheckboxLabeled("UseParentMethod".Translate(), ref use_parent_method, "UseParentMethod_desc".Translate()); listingStandard.Gap(5f); if (use_parent_method) { if (humanlike_DNA_from_mother == 0.0f) { listingStandard.Label(" " + "OffspringLookLikeTheirMother".Translate() + ": " + "AlwaysFather".Translate(), -1f, "OffspringLookLikeTheirMother_desc".Translate()); humanlike_DNA_from_mother = listingStandard.Slider(humanlike_DNA_from_mother, 0.0f, 1.0f); } else if (humanlike_DNA_from_mother == 1.0f) { listingStandard.Label(" " + "OffspringLookLikeTheirMother".Translate() + ": " + "AlwaysMother".Translate(), -1f, "OffspringLookLikeTheirMother_desc".Translate()); humanlike_DNA_from_mother = listingStandard.Slider(humanlike_DNA_from_mother, 0.0f, 1.0f); } else { int value = (int)(humanlike_DNA_from_mother * 100); listingStandard.Label(" " + "OffspringLookLikeTheirMother".Translate() + ": " + value + "%", -1f, "OffspringLookLikeTheirMother_desc".Translate()); humanlike_DNA_from_mother = listingStandard.Slider(humanlike_DNA_from_mother, 0.0f, 1.0f); } if (bestial_DNA_from_mother == 0.0f) { listingStandard.Label(" " + "OffspringIsHuman".Translate() + ": " + "AlwaysFather".Translate(), -1f, "OffspringIsHuman_desc".Translate()); bestial_DNA_from_mother = listingStandard.Slider(bestial_DNA_from_mother, 0.0f, 1.0f); } else if (bestial_DNA_from_mother == 1.0f) { listingStandard.Label(" " + "OffspringIsHuman".Translate() + ": " + "AlwaysMother".Translate(), -1f, "OffspringIsHuman_desc".Translate()); bestial_DNA_from_mother = listingStandard.Slider(bestial_DNA_from_mother, 0.0f, 1.0f); } else { int value = (int)(bestial_DNA_from_mother * 100); listingStandard.Label(" " + "OffspringIsHuman".Translate() + ": " + value + "%", -1f, "OffspringIsHuman_desc".Translate()); bestial_DNA_from_mother = listingStandard.Slider(bestial_DNA_from_mother, 0.0f, 1.0f); } if (bestiality_DNA_inheritance == 0.0f) { listingStandard.Label(" " + "OffspringIsHuman2".Translate() + ": " + "AlwaysBeast".Translate(), -1f, "OffspringIsHuman2_desc".Translate()); bestiality_DNA_inheritance = listingStandard.Slider(bestiality_DNA_inheritance, 0.0f, 1.0f); } else if (bestiality_DNA_inheritance == 1.0f) { listingStandard.Label(" " + "OffspringIsHuman2".Translate() + ": " + "AlwaysHumanlike".Translate(), -1f, "OffspringIsHuman2_desc".Translate()); bestiality_DNA_inheritance = listingStandard.Slider(bestiality_DNA_inheritance, 0.0f, 1.0f); } else { listingStandard.Label(" " + "OffspringIsHuman2".Translate() + ": " + "UsesOffspringIsHuman".Translate(), -1f, "OffspringIsHuman2_desc".Translate()); bestiality_DNA_inheritance = listingStandard.Slider(bestiality_DNA_inheritance, 0.0f, 1.0f); } } else humanlike_DNA_from_mother = 100; listingStandard.Gap(5f); listingStandard.Label("max_num_momtraits_inherited".Translate() + ": " + (int)(max_num_momtraits_inherited)); max_num_momtraits_inherited = listingStandard.Slider(max_num_momtraits_inherited, 0.0f, 9.0f); listingStandard.Gap(5f); listingStandard.Label("max_num_poptraits_inherited".Translate() + ": " + (int)(max_num_poptraits_inherited)); max_num_poptraits_inherited = listingStandard.Slider(max_num_poptraits_inherited, 0.0f, 9.0f); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("MechanoidImplanting".Translate(), ref mechanoid_pregnancy_enabled, "MechanoidImplanting_desc".Translate()); listingStandard.Gap(5f); if (mechanoid_pregnancy_enabled) { listingStandard.CheckboxLabeled("SaferMechanoidImplanting".Translate(), ref safer_mechanoid_pregnancy, "SaferMechanoidImplanting_desc".Translate()); listingStandard.Gap(5f); } listingStandard.CheckboxLabeled("ComplexImpregnation".Translate(), ref complex_interspecies, "ComplexImpregnation_desc".Translate()); listingStandard.Gap(10f); GUI.contentColor = Color.cyan; listingStandard.Label("Base pregnancy chances:"); listingStandard.Gap(5f); if (humanlike_pregnancy_enabled) listingStandard.Label(" Humanlike/Humanlike (same race): " + humanlike_impregnation_chance + "%"); else listingStandard.Label(" Humanlike/Humanlike (same race): -DISABLED-"); if (humanlike_pregnancy_enabled && !(humanlike_impregnation_chance * interspecies_impregnation_modifier <= 0.0f) && !complex_interspecies) listingStandard.Label(" Humanlike/Humanlike (different race): " + Math.Round(humanlike_impregnation_chance * interspecies_impregnation_modifier, 1) + "%"); else if (complex_interspecies) listingStandard.Label(" Humanlike/Humanlike (different race): -DEPENDS ON SPECIES-"); else listingStandard.Label(" Humanlike/Humanlike (different race): -DISABLED-"); if (animal_pregnancy_enabled) listingStandard.Label(" Animal/Animal (same race): " + animal_impregnation_chance + "%"); else listingStandard.Label(" Animal/Animal (same race): -DISABLED-"); if (animal_pregnancy_enabled && !(animal_impregnation_chance * interspecies_impregnation_modifier <= 0.0f) && !complex_interspecies) listingStandard.Label(" Animal/Animal (different race): " + Math.Round(animal_impregnation_chance * interspecies_impregnation_modifier, 1) + "%"); else if (complex_interspecies) listingStandard.Label(" Animal/Animal (different race): -DEPENDS ON SPECIES-"); else listingStandard.Label(" Animal/Animal (different race): -DISABLED-"); if (RJWSettings.bestiality_enabled && bestial_pregnancy_enabled && !(animal_impregnation_chance * interspecies_impregnation_modifier <= 0.0f) && !complex_interspecies) listingStandard.Label(" Humanlike/Animal: " + Math.Round(animal_impregnation_chance * interspecies_impregnation_modifier, 1) + "%"); else if (complex_interspecies) listingStandard.Label(" Humanlike/Animal: -DEPENDS ON SPECIES-"); else listingStandard.Label(" Humanlike/Animal: -DISABLED-"); if (RJWSettings.bestiality_enabled && bestial_pregnancy_enabled && !(animal_impregnation_chance * interspecies_impregnation_modifier <= 0.0f) && !complex_interspecies) listingStandard.Label(" Animal/Humanlike: " + Math.Round(humanlike_impregnation_chance * interspecies_impregnation_modifier, 1) + "%"); else if (complex_interspecies) listingStandard.Label(" Animal/Humanlike: -DEPENDS ON SPECIES-"); else listingStandard.Label(" Animal/Humanlike: -DISABLED-"); GUI.contentColor = Color.white; listingStandard.NewColumn(); listingStandard.Gap(4f); listingStandard.Label("PregnantCoeffecientForHuman".Translate() + ": " + humanlike_impregnation_chance + "%", -1f, "PregnantCoeffecientForHuman_desc".Translate()); humanlike_impregnation_chance = (int)listingStandard.Slider(humanlike_impregnation_chance, 0.0f, 100f); listingStandard.Label("PregnantCoeffecientForAnimals".Translate() + ": " + animal_impregnation_chance + "%", -1f, "PregnantCoeffecientForAnimals_desc".Translate()); animal_impregnation_chance = (int)listingStandard.Slider(animal_impregnation_chance, 0.0f, 100f); if (!complex_interspecies) { switch (interspecies_impregnation_modifier) { case 0.0f: GUI.contentColor = Color.grey; listingStandard.Label("InterspeciesImpregnantionModifier".Translate() + ": " + "InterspeciesDisabled".Translate(), -1f, "InterspeciesImpregnantionModifier_desc".Translate()); GUI.contentColor = Color.white; break; case 1.0f: GUI.contentColor = Color.cyan; listingStandard.Label("InterspeciesImpregnantionModifier".Translate() + ": " + "InterspeciesMaximum".Translate(), -1f, "InterspeciesImpregnantionModifier_desc".Translate()); GUI.contentColor = Color.white; break; default: listingStandard.Label("InterspeciesImpregnantionModifier".Translate() + ": " + Math.Round(interspecies_impregnation_modifier * 100, 1) + "%", -1f, "InterspeciesImpregnantionModifier_desc".Translate()); break; } interspecies_impregnation_modifier = listingStandard.Slider(interspecies_impregnation_modifier, 0.0f, 1.0f); } listingStandard.Label("RJW_fertility_endAge_male".Translate() + ": " + (int)(fertility_endage_male * 80) + "In_human_years".Translate(), -1f, "RJW_fertility_endAge_male_desc".Translate()); fertility_endage_male = listingStandard.Slider(fertility_endage_male, 0.1f, 3.0f); listingStandard.Label("RJW_fertility_endAge_female_humanlike".Translate() + ": " + (int)(fertility_endage_female_humanlike * 80) + "In_human_years".Translate(), -1f, "RJW_fertility_endAge_female_humanlike_desc".Translate()); fertility_endage_female_humanlike = listingStandard.Slider(fertility_endage_female_humanlike, 0.1f, 3.0f); listingStandard.Label("RJW_fertility_endAge_female_animal".Translate() + ": " + (int)(fertility_endage_female_animal * 100) + "XofLifeExpectancy".Translate(), -1f, "RJW_fertility_endAge_female_animal_desc".Translate()); fertility_endage_female_animal = listingStandard.Slider(fertility_endage_female_animal, 0.1f, 3.0f); listingStandard.Gap(10f); listingStandard.CheckboxLabeled("phantasy_pregnancy".Translate(), ref phantasy_pregnancy, "phantasy_pregnancy_desc".Translate()); listingStandard.Gap(5f); listingStandard.Label("normal_pregnancy_duration".Translate() + ": " + (int)(normal_pregnancy_duration * 100) + "%", -1f, "normal_pregnancy_duration_desc".Translate()); normal_pregnancy_duration = listingStandard.Slider(normal_pregnancy_duration, 0.05f, 2.0f); listingStandard.Gap(5f); listingStandard.Label("egg_pregnancy_duration".Translate() + ": " + (int)(egg_pregnancy_duration * 100) + "%", -1f, "egg_pregnancy_duration_desc".Translate()); egg_pregnancy_duration = listingStandard.Slider(egg_pregnancy_duration, 0.05f, 2.0f); listingStandard.Gap(5f); listingStandard.End(); height_modifier = listingStandard.CurHeight; Widgets.EndScrollView(); } public override void ExposeData() { base.ExposeData(); Scribe_Values.Look(ref humanlike_pregnancy_enabled, "humanlike_pregnancy_enabled", humanlike_pregnancy_enabled, true); Scribe_Values.Look(ref useVanillaPregnancy, "useVanillaPregnancy", useVanillaPregnancy, true); Scribe_Values.Look(ref animal_pregnancy_enabled, "animal_enabled", animal_pregnancy_enabled, true); Scribe_Values.Look(ref animal_pregnancy_notifications_enabled, "animal_notifications_enabled", animal_pregnancy_notifications_enabled, true); Scribe_Values.Look(ref bestial_pregnancy_enabled, "bestial_pregnancy_enabled", bestial_pregnancy_enabled, true); Scribe_Values.Look(ref insect_pregnancy_enabled, "insect_pregnancy_enabled", insect_pregnancy_enabled, true); Scribe_Values.Look(ref insect_anal_pregnancy_enabled, "insect_anal_pregnancy_enabled", insect_anal_pregnancy_enabled, true); Scribe_Values.Look(ref insect_oral_pregnancy_enabled, "insect_oral_pregnancy_enabled", insect_oral_pregnancy_enabled, true); Scribe_Values.Look(ref egg_pregnancy_implant_anyone, "egg_pregnancy_implant_anyone", egg_pregnancy_implant_anyone, true); Scribe_Values.Look(ref egg_pregnancy_fertilize_anyone, "egg_pregnancy_fertilize_anyone", egg_pregnancy_fertilize_anyone, true); Scribe_Values.Look(ref egg_pregnancy_genes, "egg_pregnancy_genes", egg_pregnancy_genes, true); Scribe_Values.Look(ref egg_pregnancy_fertOrificeCheck_enabled, "egg_pregnancy_fertOrificeCheck_enabled", egg_pregnancy_fertOrificeCheck_enabled, true); Scribe_Values.Look(ref egg_pregnancy_eggs_size, "egg_pregnancy_eggs_size", egg_pregnancy_eggs_size, true); Scribe_Values.Look(ref egg_pregnancy_ovipositor_capacity_factor, "egg_pregnancy_ovipositor_capacity_factor", egg_pregnancy_ovipositor_capacity_factor, true); Scribe_Values.Look(ref mechanoid_pregnancy_enabled, "mechanoid_enabled", mechanoid_pregnancy_enabled, true); Scribe_Values.Look(ref safer_mechanoid_pregnancy, "safer_mechanoid_pregnancy", safer_mechanoid_pregnancy, true); Scribe_Values.Look(ref use_parent_method, "use_parent_method", use_parent_method, true); Scribe_Values.Look(ref humanlike_DNA_from_mother, "humanlike_DNA_from_mother", humanlike_DNA_from_mother, true); Scribe_Values.Look(ref bestial_DNA_from_mother, "bestial_DNA_from_mother", bestial_DNA_from_mother, true); Scribe_Values.Look(ref bestiality_DNA_inheritance, "bestiality_DNA_inheritance", bestiality_DNA_inheritance, true); Scribe_Values.Look(ref humanlike_impregnation_chance, "humanlike_impregnation_chance", humanlike_impregnation_chance, true); Scribe_Values.Look(ref animal_impregnation_chance, "animal_impregnation_chance", animal_impregnation_chance, true); Scribe_Values.Look(ref interspecies_impregnation_modifier, "interspecies_impregnation_chance", interspecies_impregnation_modifier, true); Scribe_Values.Look(ref complex_interspecies, "complex_interspecies", complex_interspecies, true); Scribe_Values.Look(ref fertility_endage_male, "RJW_fertility_endAge_male", fertility_endage_male, true); Scribe_Values.Look(ref fertility_endage_female_humanlike, "fertility_endage_female_humanlike", fertility_endage_female_humanlike, true); Scribe_Values.Look(ref fertility_endage_female_animal, "fertility_endage_female_animal", fertility_endage_female_animal, true); Scribe_Values.Look(ref phantasy_pregnancy, "phantasy_pregnancy", phantasy_pregnancy, true); Scribe_Values.Look(ref normal_pregnancy_duration, "normal_pregnancy_duration", normal_pregnancy_duration, true); Scribe_Values.Look(ref egg_pregnancy_duration, "egg_pregnancy_duration", egg_pregnancy_duration, true); Scribe_Values.Look(ref max_num_momtraits_inherited, "max_num_momtraits_inherited", max_num_momtraits_inherited, true); Scribe_Values.Look(ref max_num_poptraits_inherited, "max_num_poptraits_inherited", max_num_poptraits_inherited, true); } } }
jojo1541/rjw
1.5/Source/Settings/RJWPregnancySettings.cs
C#
mit
19,708
using System; using UnityEngine; using Verse; namespace rjw { public class RJWSettings : ModSettings { public static bool animal_on_animal_enabled = false; public static bool animal_on_human_enabled = false; public static bool bestiality_enabled = false; public static bool necrophilia_enabled = false; private static bool overdrive = false; public static bool rape_enabled = false; public static bool designated_freewill = true; public static bool animal_CP_rape = false; public static bool visitor_CP_rape = false; public static bool colonist_CP_rape = false; public static bool rape_beating = false; public static bool gentle_rape_beating = false; public static bool rape_stripping = false; public static bool cum_filth = true; public static bool sounds_enabled = true; public static float sounds_sex_volume = 1.0f; public static float sounds_cum_volume = 1.0f; public static float sounds_voice_volume = 1.0f; public static float sounds_orgasm_volume = 1.0f; public static float sounds_animal_on_animal_volume = 0.5f; public static bool NymphTamed = false; public static bool NymphWild = true; public static bool NymphRaidEasy = false; public static bool NymphRaidHard = false; public static bool NymphRaidRP = false; public static bool NymphPermanentManhunter = false; public static bool NymphSappers = true; public static bool NymphFrustratedRape = true; public static bool FemaleFuta = false; public static bool MaleTrap = false; public static float male_nymph_chance = 0.0f; public static float futa_nymph_chance = 0.0f; public static float futa_natives_chance = 0.0f; public static float futa_spacers_chance = 0.5f; public static bool sexneed_fix = true; public static float sexneed_decay_rate = 1.0f; public static int Animal_mating_cooldown = 0; public static float nonFutaWomenRaping_MaxVulnerability = 0.8f; public static float rapee_MinVulnerability_human = 1.2f; public static bool RPG_hero_control = false; public static bool RPG_hero_control_HC = false; public static bool RPG_hero_control_Ironman = false; public static bool submit_button_enabled = true; public static bool show_RJW_designation_box = false; public static ShowParts ShowRjwParts = ShowParts.Show; public static float maxDistanceCellsCasual = 100; public static float maxDistanceCellsRape = 100; public static float maxDistancePathCost = 1000; public static bool WildMode = false; public static bool HippieMode = false; public static bool override_RJW_designation_checks = false; public static bool override_control = false; public static bool override_lovin = true; public static bool override_matin = true; public static bool matin_crossbreed = false; public static bool GenderlessAsFuta = false; public static bool DevMode = false; public static bool DebugLogJoinInBed = false; public static bool DebugRape = false; public static bool DebugInteraction = false; public static bool DebugNymph = false; public static bool AddTrait_Rapist = true; public static bool AddTrait_Masocist = true; public static bool AddTrait_Nymphomaniac = true; public static bool AddTrait_Necrophiliac = true; public static bool AddTrait_Nerves = true; public static bool AddTrait_Zoophiliac = true; public static bool AddTrait_FootSlut = true; public static bool AddTrait_CumSlut = true; public static bool AddTrait_ButtSlut = true; public static bool Allow_RMB_DeepTalk = false; public static bool Disable_bestiality_pregnancy_relations = false; public static bool Disable_egg_pregnancy_relations = false; public static bool Disable_MeditationFocusDrain = false; public static bool Disable_RecreationDrain = false; public static bool UseAdvancedAgeScaling = true; public static bool AllowYouthSex = true; public static bool sendTraitGainLetters = true; private static Vector2 scrollPosition; private static float height_modifier = 300f; public enum ShowParts { Extended, Show, Known, Hide }; public static void DoWindowContents(Rect inRect) { sexneed_decay_rate = Mathf.Clamp(sexneed_decay_rate, 0.0f, 10000.0f); nonFutaWomenRaping_MaxVulnerability = Mathf.Clamp(nonFutaWomenRaping_MaxVulnerability, 0.0f, 3.0f); rapee_MinVulnerability_human = Mathf.Clamp(rapee_MinVulnerability_human, 0.0f, 3.0f); Rect outRect = new Rect(0f, 30f, inRect.width, inRect.height - 30f); Rect viewRect = new Rect(0f, 0f, inRect.width - 16f, inRect.height + height_modifier); Widgets.BeginScrollView(outRect, ref scrollPosition, viewRect); // scroll Listing_Standard listingStandard = new Listing_Standard(); listingStandard.maxOneColumn = true; listingStandard.ColumnWidth = viewRect.width / 2.05f; listingStandard.Begin(viewRect); listingStandard.Gap(4f); listingStandard.CheckboxLabeled("animal_on_animal_enabled".Translate(), ref animal_on_animal_enabled, "animal_on_animal_enabled_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("animal_on_human_enabled".Translate(), ref animal_on_human_enabled, "animal_on_human_enabled_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("bestiality_enabled".Translate(), ref bestiality_enabled, "bestiality_enabled_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("necrophilia_enabled".Translate(), ref necrophilia_enabled, "necrophilia_enabled_desc".Translate()); listingStandard.Gap(10f); listingStandard.CheckboxLabeled("rape_enabled".Translate(), ref rape_enabled, "rape_enabled_desc".Translate()); if (rape_enabled) { listingStandard.Gap(3f); listingStandard.CheckboxLabeled(" " + "rape_stripping".Translate(), ref rape_stripping, "rape_stripping_desc".Translate()); listingStandard.Gap(3f); listingStandard.CheckboxLabeled(" " + "ColonistCanCP".Translate(), ref colonist_CP_rape, "ColonistCanCP_desc".Translate()); listingStandard.Gap(3f); listingStandard.CheckboxLabeled(" " + "VisitorsCanCP".Translate(), ref visitor_CP_rape, "VisitorsCanCP_desc".Translate()); listingStandard.Gap(3f); //if (!bestiality_enabled) //{ // GUI.contentColor = Color.grey; // animal_CP_rape = false; //} //listingStandard.CheckboxLabeled(" " + "AnimalsCanCP".Translate(), ref animal_CP_rape, "AnimalsCanCP_desc".Translate()); //if (!bestiality_enabled) // GUI.contentColor = Color.white; listingStandard.Gap(3f); listingStandard.CheckboxLabeled(" " + "PrisonersBeating".Translate(), ref rape_beating, "PrisonersBeating_desc".Translate()); listingStandard.Gap(3f); listingStandard.CheckboxLabeled(" " + "GentlePrisonersBeating".Translate(), ref gentle_rape_beating, "GentlePrisonersBeating_desc".Translate()); } else { colonist_CP_rape = false; visitor_CP_rape = false; animal_CP_rape = false; rape_beating = false; } listingStandard.Gap(10f); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("cum_filth".Translate(), ref cum_filth, "cum_filth_desc".Translate()); listingStandard.Gap(5f); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("sounds_enabled".Translate(), ref sounds_enabled, "sounds_enabled_desc".Translate()); if (sounds_enabled) { listingStandard.Label("sounds_sex_volume".Translate() + ": " + Math.Round(sounds_sex_volume * 100f, 0) + "%", -1f, "sounds_sex_volume_desc".Translate()); sounds_sex_volume = listingStandard.Slider(sounds_sex_volume, 0f, 2f); listingStandard.Label("sounds_cum_volume".Translate() + ": " + Math.Round(sounds_cum_volume * 100f, 0) + "%", -1f, "sounds_cum_volume_desc".Translate()); sounds_cum_volume = listingStandard.Slider(sounds_cum_volume, 0f, 2f); listingStandard.Label("sounds_voice_volume".Translate() + ": " + Math.Round(sounds_voice_volume * 100f, 0) + "%", -1f, "sounds_voice_volume_desc".Translate()); sounds_voice_volume = listingStandard.Slider(sounds_voice_volume, 0f, 2f); listingStandard.Label("sounds_orgasm_volume".Translate() + ": " + Math.Round(sounds_orgasm_volume * 100f, 0) + "%", -1f, "sounds_orgasm_volume_desc".Translate()); sounds_orgasm_volume = listingStandard.Slider(sounds_orgasm_volume, 0f, 2f); listingStandard.Label("sounds_animal_on_animal_volume".Translate() + ": " + Math.Round(sounds_animal_on_animal_volume * 100f, 0) + "%", -1f, "sounds_animal_on_animal_volume_desc".Translate()); sounds_animal_on_animal_volume = listingStandard.Slider(sounds_animal_on_animal_volume, 0f, 2f); } listingStandard.Gap(10f); listingStandard.CheckboxLabeled("RPG_hero_control_name".Translate(), ref RPG_hero_control, "RPG_hero_control_desc".Translate()); listingStandard.Gap(5f); if (RPG_hero_control) { listingStandard.CheckboxLabeled("RPG_hero_control_HC_name".Translate(), ref RPG_hero_control_HC, "RPG_hero_control_HC_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("RPG_hero_control_Ironman_name".Translate(), ref RPG_hero_control_Ironman, "RPG_hero_control_Ironman_desc".Translate()); listingStandard.Gap(5f); } else { RPG_hero_control_HC = false; RPG_hero_control_Ironman = false; } listingStandard.Gap(10f); listingStandard.CheckboxLabeled("UseAdvancedAgeScaling".Translate(), ref UseAdvancedAgeScaling, "UseAdvancedAgeScaling_desc".Translate()); listingStandard.CheckboxLabeled("AllowYouthSex".Translate(), ref AllowYouthSex, "AllowYouthSex_desc".Translate()); listingStandard.NewColumn(); listingStandard.Gap(4f); GUI.contentColor = Color.white; if (sexneed_decay_rate < 2.5f) { overdrive = false; listingStandard.Label("sexneed_decay_rate_name".Translate() + ": " + Math.Round(sexneed_decay_rate * 100f, 0) + "%", -1f, "sexneed_decay_rate_desc".Translate()); sexneed_decay_rate = listingStandard.Slider(sexneed_decay_rate, 0.0f, 5.0f); } else if (sexneed_decay_rate <= 5.0f && !overdrive) { GUI.contentColor = Color.yellow; listingStandard.Label("sexneed_decay_rate_name".Translate() + ": " + Math.Round(sexneed_decay_rate * 100f, 0) + "% [Not recommended]", -1f, "sexneed_decay_rate_desc".Translate()); sexneed_decay_rate = listingStandard.Slider(sexneed_decay_rate, 0.0f, 5.0f); if (sexneed_decay_rate == 5.0f) { GUI.contentColor = Color.red; if (listingStandard.ButtonText("OVERDRIVE")) overdrive = true; } GUI.contentColor = Color.white; } else { GUI.contentColor = Color.red; listingStandard.Label("sexneed_decay_rate_name".Translate() + ": " + Math.Round(sexneed_decay_rate * 100f, 0) + "% [WARNING: UNSAFE]", -1f, "sexneed_decay_rate_desc".Translate()); GUI.contentColor = Color.white; sexneed_decay_rate = listingStandard.Slider(sexneed_decay_rate, 0.0f, 10000.0f); } listingStandard.Gap(5f); listingStandard.CheckboxLabeled("sexneed_fix_name".Translate(), ref sexneed_fix, "sexneed_fix_desc".Translate()); listingStandard.Gap(5f); listingStandard.Label("Animal_mating_cooldown".Translate() + ": " + Animal_mating_cooldown + "h", -1f, "Animal_mating_cooldown_desc".Translate()); Animal_mating_cooldown = (int)listingStandard.Slider(Animal_mating_cooldown, 0, 100); listingStandard.Gap(5f); if (rape_enabled) { listingStandard.Label("NonFutaWomenRaping_MaxVulnerability".Translate() + ": " + (int)(nonFutaWomenRaping_MaxVulnerability * 100), -1f, "NonFutaWomenRaping_MaxVulnerability_desc".Translate()); nonFutaWomenRaping_MaxVulnerability = listingStandard.Slider(nonFutaWomenRaping_MaxVulnerability, 0.0f, 3.0f); listingStandard.Label("Rapee_MinVulnerability_human".Translate() + ": " + (int)(rapee_MinVulnerability_human * 100), -1f, "Rapee_MinVulnerability_human_desc".Translate()); rapee_MinVulnerability_human = listingStandard.Slider(rapee_MinVulnerability_human, 0.0f, 3.0f); } listingStandard.Gap(20f); listingStandard.CheckboxLabeled("NymphTamed".Translate(), ref NymphTamed, "NymphTamed_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("NymphWild".Translate(), ref NymphWild, "NymphWild_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("NymphRaidEasy".Translate(), ref NymphRaidEasy, "NymphRaidEasy_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("NymphRaidHard".Translate(), ref NymphRaidHard, "NymphRaidHard_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("NymphRaidRP".Translate(), ref NymphRaidRP, "NymphRaidRP_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("NymphPermanentManhunter".Translate(), ref NymphPermanentManhunter, "NymphPermanentManhunter_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("NymphSappers".Translate(), ref NymphSappers, "NymphSappers_desc".Translate()); listingStandard.Gap(5f); listingStandard.CheckboxLabeled("NymphFrustratedRape".Translate(), ref NymphFrustratedRape, "NymphFrustratedRape_desc".Translate()); listingStandard.Gap(5f); // Save compatibility check for 1.9.7 // This can probably be safely removed at a later date, I doubt many players use old saves for long. if (male_nymph_chance > 1.0f || futa_nymph_chance > 1.0f || futa_natives_chance > 1.0f || futa_spacers_chance > 1.0f) { male_nymph_chance = 0.0f; futa_nymph_chance = 0.0f; futa_natives_chance = 0.0f; futa_spacers_chance = 0.0f; } listingStandard.CheckboxLabeled("FemaleFuta".Translate(), ref FemaleFuta, "FemaleFuta_desc".Translate()); listingStandard.CheckboxLabeled("MaleTrap".Translate(), ref MaleTrap, "MaleTrap_desc".Translate()); listingStandard.Label("male_nymph_chance".Translate() + ": " + (int)(male_nymph_chance * 100) + "%", -1f, "male_nymph_chance_desc".Translate()); male_nymph_chance = listingStandard.Slider(male_nymph_chance, 0.0f, 1.0f); if (FemaleFuta || MaleTrap) { listingStandard.Label("futa_nymph_chance".Translate() + ": " + (int)(futa_nymph_chance * 100) + "%", -1f, "futa_nymph_chance_desc".Translate()); futa_nymph_chance = listingStandard.Slider(futa_nymph_chance, 0.0f, 1.0f); } if (FemaleFuta || MaleTrap) { listingStandard.Label("futa_natives_chance".Translate() + ": " + (int)(futa_natives_chance * 100) + "%", -1f, "futa_natives_chance_desc".Translate()); futa_natives_chance = listingStandard.Slider(futa_natives_chance, 0.0f, 1.0f); listingStandard.Label("futa_spacers_chance".Translate() + ": " + (int)(futa_spacers_chance * 100) + "%", -1f, "futa_spacers_chance_desc".Translate()); futa_spacers_chance = listingStandard.Slider(futa_spacers_chance, 0.0f, 1.0f); } listingStandard.Gap(5f); listingStandard.CheckboxLabeled("SendTraitGainLetters".Translate(), ref RJWSettings.sendTraitGainLetters, "SendTraitGainLetters_desc".Translate()); listingStandard.End(); height_modifier = listingStandard.CurHeight; Widgets.EndScrollView(); } public override void ExposeData() { base.ExposeData(); Scribe_Values.Look(ref animal_on_animal_enabled, "animal_on_animal_enabled", animal_on_animal_enabled, true); Scribe_Values.Look(ref animal_on_human_enabled, "animal_on_human_enabled", animal_on_human_enabled, true); Scribe_Values.Look(ref bestiality_enabled, "bestiality_enabled", bestiality_enabled, true); Scribe_Values.Look(ref necrophilia_enabled, "necrophilia_enabled", necrophilia_enabled, true); Scribe_Values.Look(ref designated_freewill, "designated_freewill", designated_freewill, true); Scribe_Values.Look(ref rape_enabled, "rape_enabled", rape_enabled, true); Scribe_Values.Look(ref colonist_CP_rape, "colonist_CP_rape", colonist_CP_rape, true); Scribe_Values.Look(ref visitor_CP_rape, "visitor_CP_rape", visitor_CP_rape, true); Scribe_Values.Look(ref animal_CP_rape, "animal_CP_rape", animal_CP_rape, true); Scribe_Values.Look(ref rape_beating, "rape_beating", rape_beating, true); Scribe_Values.Look(ref gentle_rape_beating, "gentle_rape_beating", gentle_rape_beating, true); Scribe_Values.Look(ref rape_stripping, "rape_stripping", rape_stripping, true); Scribe_Values.Look(ref NymphTamed, "NymphTamed", NymphTamed, true); Scribe_Values.Look(ref NymphWild, "NymphWild", NymphWild, true); Scribe_Values.Look(ref NymphRaidEasy, "NymphRaidEasy", NymphRaidEasy, true); Scribe_Values.Look(ref NymphRaidHard, "NymphRaidHard", NymphRaidHard, true); Scribe_Values.Look(ref NymphRaidRP, "NymphRaidRP", NymphRaidRP, true); Scribe_Values.Look(ref NymphPermanentManhunter, "NymphPermanentManhunter", NymphPermanentManhunter, true); Scribe_Values.Look(ref NymphSappers, "NymphSappers", NymphSappers, true); Scribe_Values.Look(ref NymphFrustratedRape, "NymphFrustratedRape", NymphFrustratedRape, true); Scribe_Values.Look(ref FemaleFuta, "FemaleFuta", FemaleFuta, true); Scribe_Values.Look(ref MaleTrap, "MaleTrap", MaleTrap, true); Scribe_Values.Look(ref sounds_enabled, "sounds_enabled", sounds_enabled, true); Scribe_Values.Look(ref sounds_sex_volume, "sounds_sexvolume", sounds_sex_volume, true); Scribe_Values.Look(ref sounds_cum_volume, "sounds_cumvolume", sounds_cum_volume, true); Scribe_Values.Look(ref sounds_voice_volume, "sounds_voicevolume", sounds_voice_volume, true); Scribe_Values.Look(ref sounds_orgasm_volume, "sounds_orgasmvolume", sounds_orgasm_volume, true); Scribe_Values.Look(ref sounds_animal_on_animal_volume, "sounds_animal_on_animalvolume", sounds_animal_on_animal_volume, true); Scribe_Values.Look(ref cum_filth, "cum_filth", cum_filth, true); Scribe_Values.Look(ref sexneed_fix, "sexneed_fix", sexneed_fix, true); Scribe_Values.Look(ref sexneed_decay_rate, "sexneed_decay_rate", sexneed_decay_rate, true); Scribe_Values.Look(ref Animal_mating_cooldown, "Animal_mating_cooldown", Animal_mating_cooldown, true); Scribe_Values.Look(ref nonFutaWomenRaping_MaxVulnerability, "nonFutaWomenRaping_MaxVulnerability", nonFutaWomenRaping_MaxVulnerability, true); Scribe_Values.Look(ref rapee_MinVulnerability_human, "rapee_MinVulnerability_human", rapee_MinVulnerability_human, true); Scribe_Values.Look(ref male_nymph_chance, "male_nymph_chance", male_nymph_chance, true); Scribe_Values.Look(ref futa_nymph_chance, "futa_nymph_chance", futa_nymph_chance, true); Scribe_Values.Look(ref futa_natives_chance, "futa_natives_chance", futa_natives_chance, true); Scribe_Values.Look(ref futa_spacers_chance, "futa_spacers_chance", futa_spacers_chance, true); Scribe_Values.Look(ref RPG_hero_control, "RPG_hero_control", RPG_hero_control, true); Scribe_Values.Look(ref RPG_hero_control_HC, "RPG_hero_control_HC", RPG_hero_control_HC, true); Scribe_Values.Look(ref RPG_hero_control_Ironman, "RPG_hero_control_Ironman", RPG_hero_control_Ironman, true); Scribe_Values.Look(ref UseAdvancedAgeScaling, "UseAdvancedAgeScaling", UseAdvancedAgeScaling, true); Scribe_Values.Look(ref AllowYouthSex, "AllowTeenSex", AllowYouthSex, true); Scribe_Values.Look(ref sendTraitGainLetters, "sendTraitGainLetters", sendTraitGainLetters, true); } } }
jojo1541/rjw
1.5/Source/Settings/RJWSettings.cs
C#
mit
19,193
using UnityEngine; using Verse; using Multiplayer.API; namespace rjw.Settings { public class RJWSettingsController : Mod { public RJWSettingsController(ModContentPack content) : base(content) { GetSettings<RJWSettings>(); } public override string SettingsCategory() { return "RJWSettingsOne".Translate(); } public override void DoSettingsWindowContents(Rect inRect) { if (MP.IsInMultiplayer) return; RJWSettings.DoWindowContents(inRect); } } public class RJWDebugController : Mod { public RJWDebugController(ModContentPack content) : base(content) { GetSettings<RJWDebugSettings>(); } public override string SettingsCategory() { return "RJWDebugSettings".Translate(); } public override void DoSettingsWindowContents(Rect inRect) { if (MP.IsInMultiplayer) return; RJWDebugSettings.DoWindowContents(inRect); } } public class RJWPregnancySettingsController : Mod { public RJWPregnancySettingsController(ModContentPack content) : base(content) { GetSettings<RJWPregnancySettings>(); } public override string SettingsCategory() { return "RJWSettingsTwo".Translate(); } public override void DoSettingsWindowContents(Rect inRect) { if (MP.IsInMultiplayer) return; //GUI.BeginGroup(inRect); //Rect outRect = new Rect(0f, 0f, inRect.width, inRect.height - 30f); //Rect viewRect = new Rect(0f, 0f, inRect.width - 16f, inRect.height + 10f); //Widgets.BeginScrollView(outRect, ref scrollPosition, viewRect); RJWPregnancySettings.DoWindowContents(inRect); //Widgets.EndScrollView(); //GUI.EndGroup(); } } public class RJWPreferenceSettingsController : Mod { public RJWPreferenceSettingsController(ModContentPack content) : base(content) { GetSettings<RJWPreferenceSettings>(); } public override string SettingsCategory() { return "RJWSettingsThree".Translate(); } public override void DoSettingsWindowContents(Rect inRect) { if (MP.IsInMultiplayer) return; RJWPreferenceSettings.DoWindowContents(inRect); } } public class RJWHookupSettingsController : Mod { public RJWHookupSettingsController(ModContentPack content) : base(content) { GetSettings<RJWHookupSettings>(); } public override string SettingsCategory() { return "RJWSettingsFour".Translate(); } public override void DoSettingsWindowContents(Rect inRect) { if (MP.IsInMultiplayer) return; RJWHookupSettings.DoWindowContents(inRect); } } }
jojo1541/rjw
1.5/Source/Settings/RJWSettingsController.cs
C#
mit
2,509
using System; using System.Collections.Generic; using UnityEngine; using Verse; namespace rjw { // TODO: Add option for logging pregnancy chance after sex (dev mode only?) // TODO: Add an alernate more complex system for pregnancy calculations, by using bodyparts, genitalia, and size (similar species -> higher chance, different -> lower chance) // TODO: Old settings that are not in use - evalute if they're needed and either convert these to settings, or delete them. /* public float significant_pain_threshold; // Updated public float extreme_pain_threshold; // Updated public float base_chance_to_hit_prisoner; // Updated public int min_ticks_between_hits; // Updated public int max_ticks_between_hits; // Updated public float max_nymph_fraction; // Updated public float comfort_prisoner_rape_mtbh_mul; // Updated public float whore_mtbh_mul; // Updated public static bool comfort_prisoners_enabled; // Updated //this one is in config.cs as well! public static bool ComfortColonist; // New public static bool ComfortAnimal; // New public static bool rape_me_sticky_enabled; // Updated public static bool bondage_gear_enabled; // Updated public static bool nymph_joiners_enabled; // Updated public static bool always_accept_whores; // Updated public static bool nymphs_always_JoinInBed; // Updated public static bool zoophis_always_rape; // Updated public static bool rapists_always_rape; // Updated public static bool pawns_always_do_fapping; // Updated public static bool whores_always_findjob; // Updated public bool show_regular_dick_and_vag; // Updated */ public class RJWPreferenceSettings : ModSettings { public static float vaginal = 1.20f; public static float anal = 0.80f; public static float fellatio = 0.80f; public static float cunnilingus = 0.80f; public static float rimming = 0.40f; public static float double_penetration = 0.60f; public static float breastjob = 0.50f; public static float handjob = 0.80f; public static float mutual_masturbation = 0.70f; public static float fingering = 0.50f; public static float footjob = 0.30f; public static float scissoring = 0.50f; public static float fisting = 0.30f; public static float sixtynine = 0.69f; public static float asexual_ratio = 0.02f; public static float pansexual_ratio = 0.03f; public static float heterosexual_ratio = 0.7f; public static float bisexual_ratio = 0.15f; public static float homosexual_ratio = 0.1f; public static bool FapEverywhere = false; public static bool FapInBed = true; public static bool FapInBelts = true; public static bool FapInArmbinders = false; public static bool ShowForCP = true; public static bool ShowForBreeding = true; public static Clothing sex_wear = Clothing.Nude; public static RapeAlert rape_attempt_alert = RapeAlert.Humanlikes; public static RapeAlert rape_alert = RapeAlert.Humanlikes; public static Rjw_sexuality sexuality_distribution = Rjw_sexuality.Vanilla; public static AllowedSex Malesex = AllowedSex.All; public static AllowedSex FeMalesex = AllowedSex.All; private static Vector2 scrollPosition; private static float height_modifier = 0f; // For checking whether the player has tried to pseudo-disable a particular sex type public static bool PlayerIsButtSlut => !(anal == 0.01f && rimming == 0.01f && fisting == 0.01f); // Omitting DP since that could also just be two tabs in one slot public static bool PlayerIsFootSlut => footjob != 0.01f; public static bool PlayerIsCumSlut => fellatio != 0.01f; // Not happy with this nomenclature but it matches the trait so is probably more "readable" public static int MaxQuirks = 1; public enum AllowedSex { All, Homo, Nohomo }; public enum Clothing { Nude, Headgear, Clothed }; public enum RapeAlert { Enabled, Colonists, Humanlikes, Silent, Disabled }; public enum Rjw_sexuality { Vanilla, RimJobWorld, Psychology, SYRIndividuality }; public static void DoWindowContents(Rect inRect) { Rect outRect = new Rect(0f, 30f, inRect.width, inRect.height - 30f); Rect viewRect = new Rect(0f, 0f, inRect.width - 16f, inRect.height + height_modifier); Widgets.BeginScrollView(outRect, ref scrollPosition, viewRect); // scroll Listing_Standard listingStandard = new Listing_Standard(); listingStandard.maxOneColumn = true; listingStandard.ColumnWidth = viewRect.width / 3.15f; listingStandard.Begin(viewRect); listingStandard.Gap(4f); listingStandard.Label("SexTypeFrequency".Translate()); listingStandard.Gap(6f); listingStandard.Label(" " + "vaginal".Translate() + ": " + Math.Round(vaginal * 100, 0), -1, "vaginal_desc".Translate()); vaginal = listingStandard.Slider(vaginal, 0.01f, 3.0f); listingStandard.Label(" " + "anal".Translate() + ": " + Math.Round(anal * 100, 0), -1, "anal_desc".Translate()); anal = listingStandard.Slider(anal, 0.01f, 3.0f); listingStandard.Label(" " + "double_penetration".Translate() + ": " + Math.Round(double_penetration * 100, 0), -1, "double_penetration_desc".Translate()); double_penetration = listingStandard.Slider(double_penetration, 0.01f, 3.0f); listingStandard.Label(" " + "fellatio".Translate() + ": " + Math.Round(fellatio * 100, 0), -1, "fellatio_desc".Translate()); fellatio = listingStandard.Slider(fellatio, 0.01f, 3.0f); listingStandard.Label(" " + "cunnilingus".Translate() + ": " + Math.Round(cunnilingus * 100, 0), -1, "cunnilingus_desc".Translate()); cunnilingus = listingStandard.Slider(cunnilingus, 0.01f, 3.0f); listingStandard.Label(" " + "rimming".Translate() + ": " + Math.Round(rimming * 100, 0), -1, "rimming_desc".Translate()); rimming = listingStandard.Slider(rimming, 0.01f, 3.0f); listingStandard.Label(" " + "sixtynine".Translate() + ": " + Math.Round(sixtynine * 100, 0), -1, "sixtynine_desc".Translate()); sixtynine = listingStandard.Slider(sixtynine, 0.01f, 3.0f); listingStandard.CheckboxLabeled("FapEverywhere".Translate(), ref FapEverywhere, "FapEverywhere_desc".Translate()); listingStandard.CheckboxLabeled("FapInBed".Translate(), ref FapInBed, "FapInBed_desc".Translate()); listingStandard.CheckboxLabeled("FapInBelts".Translate(), ref FapInBelts, "FapInBelts_desc".Translate()); listingStandard.CheckboxLabeled("FapInArmbinders".Translate(), ref FapInArmbinders, "FapInArmbinders_desc".Translate()); listingStandard.NewColumn(); listingStandard.Gap(4f); if (listingStandard.ButtonText("Reset".Translate())) { vaginal = 1.20f; anal = 0.80f; fellatio = 0.80f; cunnilingus = 0.80f; rimming = 0.40f; double_penetration = 0.60f; breastjob = 0.50f; handjob = 0.80f; mutual_masturbation = 0.70f; fingering = 0.50f; footjob = 0.30f; scissoring = 0.50f; fisting = 0.30f; sixtynine = 0.69f; } listingStandard.Gap(6f); listingStandard.Label(" " + "breastjob".Translate() + ": " + Math.Round(breastjob * 100, 0), -1, "breastjob_desc".Translate()); breastjob = listingStandard.Slider(breastjob, 0.01f, 3.0f); listingStandard.Label(" " + "handjob".Translate() + ": " + Math.Round(handjob * 100, 0), -1, "handjob_desc".Translate()); handjob = listingStandard.Slider(handjob, 0.01f, 3.0f); listingStandard.Label(" " + "fingering".Translate() + ": " + Math.Round(fingering * 100, 0), -1, "fingering_desc".Translate()); fingering = listingStandard.Slider(fingering, 0.01f, 3.0f); listingStandard.Label(" " + "fisting".Translate() + ": " + Math.Round(fisting * 100, 0), -1, "fisting_desc".Translate()); fisting = listingStandard.Slider(fisting, 0.01f, 3.0f); listingStandard.Label(" " + "mutual_masturbation".Translate() + ": " + Math.Round(mutual_masturbation * 100, 0), -1, "mutual_masturbation_desc".Translate()); mutual_masturbation = listingStandard.Slider(mutual_masturbation, 0.01f, 3.0f); listingStandard.Label(" " + "footjob".Translate() + ": " + Math.Round(footjob * 100, 0), -1, "footjob_desc".Translate()); footjob = listingStandard.Slider(footjob, 0.01f, 3.0f); listingStandard.Label(" " + "scissoring".Translate() + ": " + Math.Round(scissoring * 100, 0), -1, "scissoring_desc".Translate()); scissoring = listingStandard.Slider(scissoring, 0.01f, 3.0f); if (listingStandard.ButtonText("Malesex".Translate() + Malesex.ToString())) { Find.WindowStack.Add(new FloatMenu(new List<FloatMenuOption>() { new FloatMenuOption("AllowedSex.All".Translate(), (() => Malesex = AllowedSex.All)), new FloatMenuOption("AllowedSex.Homo".Translate(), (() => Malesex = AllowedSex.Homo)), new FloatMenuOption("AllowedSex.Nohomo".Translate(), (() => Malesex = AllowedSex.Nohomo)) })); } if (listingStandard.ButtonText("FeMalesex".Translate() + FeMalesex.ToString())) { Find.WindowStack.Add(new FloatMenu(new List<FloatMenuOption>() { new FloatMenuOption("AllowedSex.All".Translate(), (() => FeMalesex = AllowedSex.All)), new FloatMenuOption("AllowedSex.Homo".Translate(), (() => FeMalesex = AllowedSex.Homo)), new FloatMenuOption("AllowedSex.Nohomo".Translate(), (() => FeMalesex = AllowedSex.Nohomo)) })); } listingStandard.NewColumn(); listingStandard.Gap(4f); // TODO: Add translation if (listingStandard.ButtonText("SexClothing".Translate() + sex_wear.ToString())) { Find.WindowStack.Add(new FloatMenu(new List<FloatMenuOption>() { new FloatMenuOption("SexClothingNude".Translate(), (() => sex_wear = Clothing.Nude)), new FloatMenuOption("SexClothingHeadwear".Translate(), (() => sex_wear = Clothing.Headgear)), new FloatMenuOption("SexClothingFull".Translate(), (() => sex_wear = Clothing.Clothed)) })); } listingStandard.Gap(4f); if (listingStandard.ButtonText("RapeAttemptAlert".Translate() + rape_attempt_alert.ToString())) { Find.WindowStack.Add(new FloatMenu(new List<FloatMenuOption>() { new FloatMenuOption("RapeAttemptAlertAlways".Translate(), (() => rape_attempt_alert = RapeAlert.Enabled)), new FloatMenuOption("RapeAttemptAlertHumanlike".Translate(), (() => rape_attempt_alert = RapeAlert.Humanlikes)), new FloatMenuOption("RapeAttemptAlertColonist".Translate(), (() => rape_attempt_alert = RapeAlert.Colonists)), new FloatMenuOption("RapeAttemptAlertSilent".Translate(), (() => rape_attempt_alert = RapeAlert.Silent)), new FloatMenuOption("RapeAttemptAlertDisabled".Translate(), (() => rape_attempt_alert = RapeAlert.Disabled)) })); } if (listingStandard.ButtonText("RapeAlert".Translate() + rape_alert.ToString())) { Find.WindowStack.Add(new FloatMenu(new List<FloatMenuOption>() { new FloatMenuOption("RapeAlertAlways".Translate(), (() => rape_alert = RapeAlert.Enabled)), new FloatMenuOption("RapeAlertHumanlike".Translate(), (() => rape_alert = RapeAlert.Humanlikes)), new FloatMenuOption("RapeAlertColonist".Translate(), (() => rape_alert = RapeAlert.Colonists)), new FloatMenuOption("RapeAlertSilent".Translate(), (() => rape_alert = RapeAlert.Silent)), new FloatMenuOption("RapeAlertDisabled".Translate(), (() => rape_alert = RapeAlert.Disabled)) })); } listingStandard.CheckboxLabeled("RapeAlertCP".Translate(), ref ShowForCP, "RapeAlertCP_desc".Translate()); listingStandard.CheckboxLabeled("RapeAlertBreeding".Translate(), ref ShowForBreeding, "RapeAlertBreeding_desc".Translate()); listingStandard.Gap(26f); listingStandard.Label("SexualitySpread1".Translate(), -1, "SexualitySpread2".Translate()); if (listingStandard.ButtonText(sexuality_distribution.ToString())) { Find.WindowStack.Add(new FloatMenu(new List<FloatMenuOption>() { new FloatMenuOption("Vanilla", () => sexuality_distribution = Rjw_sexuality.Vanilla), //new FloatMenuOption("RimJobWorld", () => sexuality_distribution = Rjw_sexuality.RimJobWorld), new FloatMenuOption("SYRIndividuality", () => sexuality_distribution = Rjw_sexuality.SYRIndividuality), new FloatMenuOption("Psychology", () => sexuality_distribution = Rjw_sexuality.Psychology) })); } if (sexuality_distribution == Rjw_sexuality.RimJobWorld) { listingStandard.Label("SexualityAsexual".Translate() + Math.Round((asexual_ratio / GetTotal()) * 100, 1) + "%", -1, "SexualityAsexual_desc".Translate()); asexual_ratio = listingStandard.Slider(asexual_ratio, 0.0f, 1.0f); listingStandard.Label("SexualityPansexual".Translate() + Math.Round((pansexual_ratio / GetTotal()) * 100, 1) + "%", -1, "SexualityPansexual_desc".Translate()); pansexual_ratio = listingStandard.Slider(pansexual_ratio, 0.0f, 1.0f); listingStandard.Label("SexualityHeterosexual".Translate() + Math.Round((heterosexual_ratio / GetTotal()) * 100, 1) + "%", -1, "SexualityHeterosexual_desc".Translate()); heterosexual_ratio = listingStandard.Slider(heterosexual_ratio, 0.0f, 1.0f); listingStandard.Label("SexualityBisexual".Translate() + Math.Round((bisexual_ratio / GetTotal()) * 100, 1) + "%", -1, "SexualityBisexual_desc".Translate()); bisexual_ratio = listingStandard.Slider(bisexual_ratio, 0.0f, 1.0f); listingStandard.Label("SexualityGay".Translate() + Math.Round((homosexual_ratio / GetTotal()) * 100, 1) + "%", -1, "SexualityGay_desc".Translate()); homosexual_ratio = listingStandard.Slider(homosexual_ratio, 0.0f, 1.0f); } else { if (!xxx.IndividualityIsActive && sexuality_distribution == Rjw_sexuality.SYRIndividuality) sexuality_distribution = Rjw_sexuality.Vanilla; else if (sexuality_distribution == Rjw_sexuality.SYRIndividuality) listingStandard.Label("SexualitySpreadIndividuality".Translate()); else if (!xxx.PsychologyIsActive && sexuality_distribution == Rjw_sexuality.Psychology) sexuality_distribution = Rjw_sexuality.Vanilla; else if (sexuality_distribution == Rjw_sexuality.Psychology) listingStandard.Label("SexualitySpreadPsychology".Translate()); else listingStandard.Label("SexualitySpreadVanilla".Translate()); } listingStandard.Label("MaxQuirks".Translate() + ": " + MaxQuirks, -1f, "MaxQuirks_desc".Translate()); MaxQuirks = (int)listingStandard.Slider(MaxQuirks, 0, 10); listingStandard.End(); height_modifier = listingStandard.CurHeight; Widgets.EndScrollView(); } public static float GetTotal() { return asexual_ratio + pansexual_ratio + heterosexual_ratio + bisexual_ratio + homosexual_ratio; } public override void ExposeData() { base.ExposeData(); Scribe_Values.Look(ref vaginal, "vaginal_frequency", vaginal, true); Scribe_Values.Look(ref anal, "anal_frequency", anal, true); Scribe_Values.Look(ref fellatio, "fellatio_frequency", fellatio, true); Scribe_Values.Look(ref cunnilingus, "cunnilingus_frequency", cunnilingus, true); Scribe_Values.Look(ref rimming, "rimming_frequency", rimming, true); Scribe_Values.Look(ref double_penetration, "double_penetration_frequency", double_penetration, true); Scribe_Values.Look(ref sixtynine, "sixtynine_frequency", sixtynine, true); Scribe_Values.Look(ref breastjob, "breastjob_frequency", breastjob, true); Scribe_Values.Look(ref handjob, "handjob_frequency", handjob, true); Scribe_Values.Look(ref footjob, "footjob_frequency", footjob, true); Scribe_Values.Look(ref fingering, "fingering_frequency", fingering, true); Scribe_Values.Look(ref fisting, "fisting_frequency", fisting, true); Scribe_Values.Look(ref mutual_masturbation, "mutual_masturbation_frequency", mutual_masturbation, true); Scribe_Values.Look(ref scissoring, "scissoring_frequency", scissoring, true); Scribe_Values.Look(ref asexual_ratio, "asexual_ratio", asexual_ratio, true); Scribe_Values.Look(ref pansexual_ratio, "pansexual_ratio", pansexual_ratio, true); Scribe_Values.Look(ref heterosexual_ratio, "heterosexual_ratio", heterosexual_ratio, true); Scribe_Values.Look(ref bisexual_ratio, "bisexual_ratio", bisexual_ratio, true); Scribe_Values.Look(ref homosexual_ratio, "homosexual_ratio", homosexual_ratio, true); Scribe_Values.Look(ref FapEverywhere, "FapEverywhere", FapEverywhere, true); Scribe_Values.Look(ref FapInBed, "FapInBed", FapInBed, true); Scribe_Values.Look(ref FapInBelts, "FapInBelts", FapInBelts, true); Scribe_Values.Look(ref FapInArmbinders, "FapInArmbinders", FapInArmbinders, true); Scribe_Values.Look(ref sex_wear, "sex_wear", sex_wear, true); Scribe_Values.Look(ref rape_attempt_alert, "rape_attempt_alert", rape_attempt_alert, true); Scribe_Values.Look(ref rape_alert, "rape_alert", rape_alert, true); Scribe_Values.Look(ref ShowForCP, "ShowForCP", ShowForCP, true); Scribe_Values.Look(ref ShowForBreeding, "ShowForBreeding", ShowForBreeding, true); Scribe_Values.Look(ref sexuality_distribution, "sexuality_distribution", sexuality_distribution, true); Scribe_Values.Look(ref Malesex, "Malesex", Malesex, true); Scribe_Values.Look(ref FeMalesex, "FeMalesex", FeMalesex, true); Scribe_Values.Look(ref MaxQuirks, "MaxQuirks", MaxQuirks, true); } } }
jojo1541/rjw
1.5/Source/Settings/RJWSexSettings.cs
C#
mit
17,104
using Verse; namespace rjw { public class config : Def { // TODO: Clean these. public float minor_pain_threshold; // 0.3 public float significant_pain_threshold; // 0.6 public float extreme_pain_threshold; // 0.95 public float base_chance_to_hit_prisoner; // 50 public int min_ticks_between_hits; // 500 public int max_ticks_between_hits; // 700 public float max_nymph_fraction; public float comfort_prisoner_rape_mtbh_mul; } }
jojo1541/rjw
1.5/Source/Settings/config.cs
C#
mit
464
using RimWorld; using Verse; namespace rjw { // used in Vulnerability StatDef calculation public class SkillNeed_CapableOfResisting : SkillNeed_BaseBonus { public override float ValueFor(Pawn pawn) { if (pawn.skills == null) { return 1f; } int level = NegateSkillBonus(pawn) ? 0 : pawn.skills.GetSkill(skill).Level; return ValueAtLevel(level); } protected virtual bool NegateSkillBonus(Pawn pawn) { // remove melee bonus for pawns: downed, sleeping/resting/lying, wearing armbinder return pawn.Downed || pawn.GetPosture() != PawnPosture.Standing // Simple verification on RJW side, but ideally this method should just be overridden in RJW-EX || (xxx.RjwExIsActive && pawn.health.hediffSet.HasHediff(xxx.RjwEx_Armbinder)); } } }
jojo1541/rjw
1.5/Source/Stats/SkillNeed_CapableOfResisting.cs
C#
mit
786
using System; using UnityEngine; using Verse; using Verse.AI; using RimWorld; namespace rjw { public class ThinkNode_ChancePerHour_Bestiality : ThinkNode_ChancePerHour { protected override float MtbHours(Pawn pawn) { float base_mtb = xxx.config.comfort_prisoner_rape_mtbh_mul; // Default is 4.0 float desire_factor; { Need_Sex need_sex = pawn.needs.TryGetNeed<Need_Sex>(); if (need_sex != null) { if (need_sex.CurLevel <= need_sex.thresh_frustrated()) desire_factor = 0.40f; else if (need_sex.CurLevel <= need_sex.thresh_horny()) desire_factor = 0.80f; else desire_factor = 1.00f; } else desire_factor = 1.00f; } float personality_factor; { personality_factor = 1.0f; if (xxx.is_nympho(pawn)) personality_factor *= 0.5f; else if (xxx.is_prude(pawn) || pawn.story.traits.HasTrait(TraitDefOf.BodyPurist)) personality_factor *= 2f; if (pawn.story.traits.HasTrait(TraitDefOf.Nudist)) personality_factor *= 0.9f; // Pawns with no zoophile trait should first try to find other outlets. if (!xxx.is_zoophile(pawn)) personality_factor *= 8f; // Less likely to engage in bestiality if the pawn has a lover... unless the lover is an animal (there's mods for that, so need to check). if (!xxx.IsSingleOrPartnersNotHere(pawn) && !xxx.is_animal(LovePartnerRelationUtility.ExistingMostLikedLovePartner(pawn, false)) && !xxx.is_lecher(pawn) && !xxx.is_nympho(pawn)) personality_factor *= 2.5f; // Pawns with few or no prior animal encounters are more reluctant to engage in bestiality. if (pawn.records.GetValue(xxx.CountOfSexWithAnimals) < 3) personality_factor *= 3f; else if (pawn.records.GetValue(xxx.CountOfSexWithAnimals) > 10) personality_factor *= 0.8f; } float fun_factor; { if ((pawn.needs.joy != null) && (xxx.is_bloodlust(pawn))) fun_factor = Mathf.Clamp01(0.50f + pawn.needs.joy.CurLevel); else fun_factor = 1.00f; } return base_mtb * desire_factor * personality_factor * fun_factor; } public override ThinkResult TryIssueJobPackage(Pawn pawn, JobIssueParams jobParams) { try { return base.TryIssueJobPackage(pawn, jobParams); } catch (NullReferenceException) { //--ModLog.Message("ThinkNode_ChancePerHour_Bestiality:TryIssueJobPackage - error message" + e.Message); //--ModLog.Message("ThinkNode_ChancePerHour_Bestiality:TryIssueJobPackage - error stacktrace" + e.StackTrace); return ThinkResult.NoJob; ; } } } }
jojo1541/rjw
1.5/Source/ThinkTreeNodes/ThinkNode_ChancePerHour_Bestiality.cs
C#
mit
2,560
using System; using Verse; using Verse.AI; namespace rjw { /// <summary> /// Cooldown for breeding /// something like 4.0*0.2 = 0.8 hours /// </summary> public class ThinkNode_ChancePerHour_Breed : ThinkNode_ChancePerHour { protected override float MtbHours(Pawn pawn) { return xxx.config.comfort_prisoner_rape_mtbh_mul * 0.20f ; } public override ThinkResult TryIssueJobPackage(Pawn pawn, JobIssueParams jobParams) { try { return base.TryIssueJobPackage(pawn, jobParams); } catch (NullReferenceException) { return ThinkResult.NoJob; ; } } } }
jojo1541/rjw
1.5/Source/ThinkTreeNodes/ThinkNode_ChancePerHour_Breed.cs
C#
mit
596
using RimWorld; using Verse; using Verse.AI; using System.Linq; namespace rjw { public class ThinkNode_ChancePerHour_Fappin : ThinkNode_ChancePerHour { public static float get_fappin_mtb_hours(Pawn pawn) { float result = 1f; result /= 1f - pawn.health.hediffSet.PainTotal; float efficiency = pawn.health.capacities.GetLevel(PawnCapacityDefOf.Consciousness); if (efficiency < 0.5f) { result /= efficiency * 2f; } if (!pawn.RaceProps.Humanlike) { return result * 4f; } if (RimWorld.LovePartnerRelationUtility.ExistingLovePartner(pawn) != null) { result *= 2f; //This is a factor which makes pawns with love partners less likely to do fappin/random raping/rapingCP/bestiality/necro. } else if (pawn.gender == Gender.Male) { result /= 1.25f; //This accounts for single men } result /= GenMath.FlatHill(0.0001f, 8f, 13f, 28f, 50f, 0.15f, pawn.ageTracker.AgeBiologicalYearsFloat);//this needs to be changed if (xxx.is_nympho(pawn)) { result /= 2f; } return result; } protected override float MtbHours(Pawn p) { // No fapping for animals... for now, at least. // Maybe enable this for monsters girls and such in future, but that'll need code changes to avoid errors. if (xxx.is_animal(p)) return -1.0f; bool is_horny = xxx.is_hornyorfrustrated(p); if (is_horny) { bool isAlone = !p.Map.mapPawns.AllPawnsSpawned.Any(x => p.CanSee(x) && xxx.is_human(x)); // More likely to fap if alone. float aloneFactor = isAlone ? 0.6f : 1.2f; if (xxx.has_quirk(p, "Exhibitionist")) aloneFactor = isAlone ? 1.0f : 0.6f; // More likely to fap if nude. float clothingFactor = p.apparel.PsychologicallyNude ? 0.8f : 1.0f; float SexNeedFactor = (4 - xxx.need_some_sex(p)) / 2f; return get_fappin_mtb_hours(p) * SexNeedFactor * aloneFactor * clothingFactor; } return -1.0f; } } }
jojo1541/rjw
1.5/Source/ThinkTreeNodes/ThinkNode_ChancePerHour_Fappin.cs
C#
mit
1,925
using System; using Verse; using Verse.AI; namespace rjw { /// <summary> /// Cooldown for breeding /// something like 4.0*0.2 = 0.8 hours /// </summary> public class ThinkNode_ChancePerHour_MateBonded : ThinkNode_ChancePerHour { protected override float MtbHours(Pawn pawn) { return xxx.config.comfort_prisoner_rape_mtbh_mul * 0.20f ; } public override ThinkResult TryIssueJobPackage(Pawn pawn, JobIssueParams jobParams) { try { return base.TryIssueJobPackage(pawn, jobParams); } catch (NullReferenceException) { return ThinkResult.NoJob; ; } } } }
jojo1541/rjw
1.5/Source/ThinkTreeNodes/ThinkNode_ChancePerHour_MateBonded.cs
C#
mit
601
using System; using UnityEngine; using Verse; using Verse.AI; using RimWorld; namespace rjw { /// <summary> /// Necro rape corpse /// </summary> public class ThinkNode_ChancePerHour_Necro : ThinkNode_ChancePerHour { protected override float MtbHours(Pawn pawn) { float base_mtb = xxx.config.comfort_prisoner_rape_mtbh_mul; // Default of 4.0 float desire_factor; { var need_sex = pawn.needs.TryGetNeed<Need_Sex>(); if (need_sex != null) { if (need_sex.CurLevel <= need_sex.thresh_frustrated()) desire_factor = 0.15f; else if (need_sex.CurLevel <= need_sex.thresh_horny()) desire_factor = 0.60f; else if (need_sex.CurLevel <= need_sex.thresh_satisfied()) desire_factor = 1.00f; else // Recently had sex. desire_factor = 2.00f; } else desire_factor = 1.00f; } float personality_factor; { personality_factor = 1.0f; if (xxx.is_nympho(pawn)) personality_factor *= 0.8f; if (xxx.is_prude(pawn) || pawn.story.traits.HasTrait(TraitDefOf.BodyPurist)) personality_factor *= 2f; if (xxx.is_psychopath(pawn)) personality_factor *= 0.5f; // Pawns with no necrophiliac trait should first try to find other outlets. if (!xxx.is_necrophiliac(pawn)) personality_factor *= 8f; else personality_factor *= 0.5f; // Less likely to engage in necrophilia if the pawn has a lover. if (!xxx.IsSingleOrPartnersNotHere(pawn)) personality_factor *= 1.25f; // Pawns with no records of prior necrophilia are less likely to engage in it. if (pawn.records.GetValue(xxx.CountOfSexWithCorpse) == 0) personality_factor *= 16f; else if (pawn.records.GetValue(xxx.CountOfSexWithCorpse) > 10) personality_factor *= 0.8f; } float fun_factor; { if ((pawn.needs.joy != null) && (xxx.is_necrophiliac(pawn))) fun_factor = Mathf.Clamp01(0.50f + pawn.needs.joy.CurLevel); else fun_factor = 1.00f; } // I'm normally against gender factors, but necrophilia is far more frequent among males. -Zaltys float gender_factor = (pawn.gender == Gender.Male) ? 1.0f : 3.0f; return base_mtb * desire_factor * personality_factor * fun_factor * gender_factor; } public override ThinkResult TryIssueJobPackage(Pawn pawn, JobIssueParams jobParams) { try { return base.TryIssueJobPackage(pawn, jobParams); } catch (NullReferenceException) { return ThinkResult.NoJob; } } } }
jojo1541/rjw
1.5/Source/ThinkTreeNodes/ThinkNode_ChancePerHour_Necro.cs
C#
mit
2,481
using System; using RimWorld; using UnityEngine; using Verse; using Verse.AI; namespace rjw { /// <summary> /// Colonists and prisoners try to rape CP /// </summary> public class ThinkNode_ChancePerHour_RapeCP : ThinkNode_ChancePerHour { protected override float MtbHours(Pawn pawn) { var base_mtb = xxx.config.comfort_prisoner_rape_mtbh_mul; //Default 4.0 float desire_factor; { var need_sex = pawn.needs.TryGetNeed<Need_Sex>(); if (need_sex != null) { if (need_sex.CurLevel <= need_sex.thresh_frustrated()) desire_factor = 0.10f; else if (need_sex.CurLevel <= need_sex.thresh_horny()) desire_factor = 0.50f; else desire_factor = 1.00f; } else desire_factor = 1.00f; } float personality_factor; { personality_factor = 1.0f; if (xxx.has_traits(pawn)) { // Most of the checks are done in the SexAppraiser.would_rape method. personality_factor = 1.0f; if (!RJWSettings.rape_beating) { if (xxx.is_bloodlust(pawn)) personality_factor *= 0.5f; } if (xxx.is_nympho(pawn)) personality_factor *= 0.5f; else if (xxx.is_prude(pawn) || pawn.story.traits.HasTrait(TraitDefOf.BodyPurist)) personality_factor *= 2f; if (xxx.is_rapist(pawn)) personality_factor *= 0.5f; if (xxx.is_psychopath(pawn)) personality_factor *= 0.75f; else if (xxx.is_kind(pawn)) personality_factor *= 5.0f; float rapeCount = pawn.records.GetValue(xxx.CountOfRapedHumanlikes) + pawn.records.GetValue(xxx.CountOfRapedAnimals) + pawn.records.GetValue(xxx.CountOfRapedInsects) + pawn.records.GetValue(xxx.CountOfRapedOthers); // Pawns with few or no rapes are more reluctant to rape CPs. if (rapeCount < 3.0f) personality_factor *= 1.5f; } } float fun_factor; { if ((pawn.needs.joy != null) && (xxx.is_rapist(pawn) || xxx.is_psychopath(pawn))) fun_factor = Mathf.Clamp01(0.50f + pawn.needs.joy.CurLevel); else fun_factor = 1.00f; } float animal_factor = 1.0f; if (xxx.is_animal(pawn)) { var parts = pawn.GetGenitalsList(); // Much slower for female animals. animal_factor = Genital_Helper.has_male_bits(pawn, parts) ? 2.5f : 6f; } //if (xxx.is_animal(pawn)) { Log.Message("Chance for " + pawn + " : " + base_mtb * desire_factor * personality_factor * fun_factor * animal_factor); } return base_mtb * desire_factor * personality_factor * fun_factor * animal_factor; } public override ThinkResult TryIssueJobPackage(Pawn pawn, JobIssueParams jobParams) { try { return base.TryIssueJobPackage(pawn, jobParams); } catch (NullReferenceException) { return ThinkResult.NoJob; ; } } } }
jojo1541/rjw
1.5/Source/ThinkTreeNodes/ThinkNode_ChancePerHour_RapeCP.cs
C#
mit
2,822
using Verse; using Verse.AI; namespace rjw { /// <summary> /// Called to determine if the non animal is eligible for a Bestiality job /// </summary> public class ThinkNode_ConditionalBestiality : ThinkNode_Conditional { protected override bool Satisfied(Pawn p) { //if (p.Faction != null && p.Faction.IsPlayer) // ModLog.Message("ThinkNode_ConditionalBestiality " + xxx.get_pawnname(p) + " is animal: " + xxx.is_animal(p)); // No bestiality for animals, animal-on-animal is handled in Breed job. if (xxx.is_animal(p)) return false; // Bestiality off if (!RJWSettings.bestiality_enabled) return false; // No free will while designated for rape. if (!RJWSettings.designated_freewill) if ((p.IsDesignatedComfort() || p.IsDesignatedBreeding())) return false; return true; } } }
jojo1541/rjw
1.5/Source/ThinkTreeNodes/ThinkNode_ConditionalBestiality.cs
C#
mit
834
using Verse; using Verse.AI; namespace rjw { /// <summary> /// Called to determine if the animal is eligible for a breed job /// </summary> public class ThinkNode_ConditionalCanBreed : ThinkNode_Conditional { protected override bool Satisfied(Pawn p) { //ModLog.Message("ThinkNode_ConditionalCanBreed " + p); //Rimworld of Magic polymorphed humanlikes also get animal think node //if (p.Faction != null && p.Faction.IsPlayer) // ModLog.Message("ThinkNode_ConditionalCanBreed " + xxx.get_pawnname(p) + " is animal: " + xxx.is_animal(p)); // No Breed jobs for humanlikes, that's handled by bestiality. if (!xxx.is_animal(p)) return false; // Animal stuff disabled. if (!RJWSettings.bestiality_enabled && !RJWSettings.animal_on_animal_enabled) return false; //return p.IsDesignatedBreedingAnimal() || RJWSettings.WildMode; return p.IsDesignatedBreedingAnimal(); } } }
jojo1541/rjw
1.5/Source/ThinkTreeNodes/ThinkNode_ConditionalCanBreed.cs
C#
mit
919
using RimWorld; using Verse; using Verse.AI; namespace rjw { /// <summary> /// Called to determine if the animal is eligible for a mating with Bonded pawn /// </summary> public class ThinkNode_ConditionalCanMateBonded : ThinkNode_Conditional { protected override bool Satisfied(Pawn p) { if (!xxx.is_animal(p)) return false; // Animal stuff disabled. if ((!RJWSettings.bestiality_enabled) || (!RJWSettings.animal_on_human_enabled)) return false; if (xxx.HasBond(p)) return true; else return false; } } }
jojo1541/rjw
1.5/Source/ThinkTreeNodes/ThinkNode_ConditionalCanMateBonded.cs
C#
mit
546
using Verse; using Verse.AI; using RimWorld; namespace rjw { public class ThinkNode_ConditionalCanRapeCP : ThinkNode_Conditional { protected override bool Satisfied(Pawn p) { //ModLog.Message("ThinkNode_ConditionalCanRapeCP " + pawn); if (!RJWSettings.rape_enabled) return false; // Hostiles cannot use CP. if (p.HostileTo(Faction.OfPlayer)) return false; // Designated pawns are not allowed to rape other CP. if (!RJWSettings.designated_freewill) if ((p.IsDesignatedComfort() || p.IsDesignatedBreeding())) return false; // Animals cannot rape CP if the setting is disabled. //if (!(RJWSettings.bestiality_enabled && RJWSettings.animal_CP_rape) && xxx.is_animal(p) ) // return false; // Animals cannot rape CP if (xxx.is_animal(p)) return false; // colonists(humans) cannot rape CP if the setting is disabled. if (!RJWSettings.colonist_CP_rape && p.IsColonist && xxx.is_human(p)) return false; // Visitors(humans) cannot rape CP if the setting is disabled. if (!RJWSettings.visitor_CP_rape && p.Faction?.IsPlayer == false && xxx.is_human(p)) return false; // Visitors(animals/caravan) cannot rape CP if the setting is disabled. if (!RJWSettings.visitor_CP_rape && p.Faction?.IsPlayer == false && p.Faction != Faction.OfInsects && xxx.is_animal(p)) return false; // Wild animals, insects cannot rape CP. //if ((p.Faction == null || p.Faction == Faction.OfInsects) && xxx.is_animal(p)) // return false; return true; } } }
jojo1541/rjw
1.5/Source/ThinkTreeNodes/ThinkNode_ConditionalCanRapeCP.cs
C#
mit
1,535
using Verse; using Verse.AI; namespace rjw { /// <summary> /// Pawn frustrated /// </summary> public class ThinkNode_ConditionalFrustrated : ThinkNode_Conditional { protected override bool Satisfied (Pawn p) { return xxx.is_frustrated(p); } } }
jojo1541/rjw
1.5/Source/ThinkTreeNodes/ThinkNode_ConditionalFrustrated.cs
C#
mit
263
using Verse; using Verse.AI; namespace rjw { /// <summary> /// Pawn is horny /// </summary> public class ThinkNode_ConditionalHorny : ThinkNode_Conditional { protected override bool Satisfied(Pawn p) { return xxx.is_horny(p); } } }
jojo1541/rjw
1.5/Source/ThinkTreeNodes/ThinkNode_ConditionalHorny.cs
C#
mit
250
using Verse; using Verse.AI; namespace rjw { /// <summary> /// Pawn HornyOrFrustrated /// </summary> public class ThinkNode_ConditionalHornyOrFrustrated : ThinkNode_Conditional { protected override bool Satisfied (Pawn p) { return xxx.is_hornyorfrustrated(p); } } }
jojo1541/rjw
1.5/Source/ThinkTreeNodes/ThinkNode_ConditionalHornyOrFrustrated.cs
C#
mit
284
using Verse; using Verse.AI; namespace rjw { /// <summary> /// Called to determine if the animal can mate(vanilla reproductory sex) with animals. /// </summary> public class ThinkNode_ConditionalMate : ThinkNode_Conditional { protected override bool Satisfied(Pawn p) { //ModLog.Message("ThinkNode_ConditionalMate " + xxx.get_pawnname(p)); return (xxx.is_animal(p) && RJWSettings.animal_on_animal_enabled); } } }
jojo1541/rjw
1.5/Source/ThinkTreeNodes/ThinkNode_ConditionalMate.cs
C#
mit
432
using Verse; using Verse.AI; namespace rjw { /// <summary> /// Called to determine if the pawn can engage in necrophilia. /// </summary> public class ThinkNode_ConditionalNecro : ThinkNode_Conditional { protected override bool Satisfied(Pawn p) { //ModLog.Message("ThinkNode_ConditionalNecro " + p); if (!RJWSettings.necrophilia_enabled) return false; // No necrophilia for animals. At least for now. // This would be easy to enable, if we actually want to add it. if (xxx.is_animal(p)) return false; // No free will while designated for rape. if (!RJWSettings.designated_freewill) if ((p.IsDesignatedComfort() || p.IsDesignatedBreeding())) return false; return true; } } }
jojo1541/rjw
1.5/Source/ThinkTreeNodes/ThinkNode_ConditionalNecro.cs
C#
mit
732
using Verse; using Verse.AI; namespace rjw { /// <summary> /// Nymph nothing to do, seek sex-> join in bed /// </summary> public class ThinkNode_ConditionalNympho : ThinkNode_Conditional { protected override bool Satisfied(Pawn p) { //ModLog.Message("ThinkNode_ConditionalNympho " + p); if (xxx.is_nympho(p)) if (p.Faction == null || !p.Faction.IsPlayer) return false; else return true; return false; } } }
jojo1541/rjw
1.5/Source/ThinkTreeNodes/ThinkNode_ConditionalNympho.cs
C#
mit
451
using Verse; using Verse.AI; namespace rjw { /// <summary> /// Will nympho rape when frustrated? /// </summary> public class ThinkNode_ConditionalNymphoFrustratedRape : ThinkNode_Conditional { protected override bool Satisfied (Pawn p) { return RJWSettings.NymphFrustratedRape; } } }
jojo1541/rjw
1.5/Source/ThinkTreeNodes/ThinkNode_ConditionalNymphoFrustratedRape.cs
C#
mit
303
using Verse; using Verse.AI; namespace rjw { /// <summary> /// Rapist, chance to trigger random rape /// </summary> public class ThinkNode_ConditionalRapist : ThinkNode_Conditional { protected override bool Satisfied(Pawn p) { if (!RJWSettings.rape_enabled) return false; if (xxx.is_animal(p)) return false; if (!xxx.is_rapist(p)) return false; // No free will while designated for rape. if (!RJWSettings.designated_freewill) if ((p.IsDesignatedComfort() || p.IsDesignatedBreeding())) return false; if (!xxx.IsSingleOrPartnersNotHere(p)) { return false; } else return true; } } }
jojo1541/rjw
1.5/Source/ThinkTreeNodes/ThinkNode_ConditionalRapist.cs
C#
mit
655
using RimWorld; using System.Collections.Generic; using Verse; using Verse.AI; namespace rjw { /// <summary> /// Called to determine if the pawn can engage in sex. /// This should be used as the first conditional for sex-related thinktrees. /// </summary> public class ThinkNode_ConditionalSexChecks : ThinkNode_Conditional { protected override bool Satisfied(Pawn p) { //ModLog.Message("ThinkNode_ConditionalSexChecks " + xxx.get_pawnname(p)); //if (p.Faction != null && p.Faction.IsPlayer) // ModLog.Message("ThinkNode_ConditionalSexChecks " + xxx.get_pawnname(p) + " is animal: " + xxx.is_animal(p)); // Downed, Drafted and Awake are checked in core ThinkNode_ConditionalCanDoConstantThinkTreeJobNow. if (p.Map == null) return false; // Pawn(animal) is fogged, no sex, save tps if (p.Fogged()) return false; // Setting checks. if (!xxx.can_do_loving(p)) return false; else if (xxx.is_animal(p) && !RJWSettings.bestiality_enabled && !RJWSettings.animal_on_animal_enabled) return false; // State checks. No sex while trying to leave map. if (p.mindState?.duty?.def != null) if (p.mindState.duty.def == DutyDefOf.SleepForever) return false; else if (p.mindState.duty.def == VanillaDutyDefOf.EnterTransporter) return false; else if (p.mindState.duty.def == DutyDefOf.EnterTransporterAndDefendSelf) return false; else if (p.mindState.duty.def == DutyDefOf.ExitMapBest) return false; else if (p.mindState.duty.def == DutyDefOf.ExitMapBestAndDefendSelf) return false; else if (p.mindState.duty.def == DutyDefOf.ExitMapNearDutyTarget) return false; else if (p.mindState.duty.def == DutyDefOf.ExitMapRandom) return false; else if (p.mindState.duty.def == DutyDefOf.PrepareCaravan_CollectAnimals) return false; else if (p.mindState.duty.def == DutyDefOf.PrepareCaravan_GatherAnimals) return false; else if (p.mindState.duty.def == DutyDefOf.PrepareCaravan_GatherDownedPawns) return false; else if (p.mindState.duty.def == DutyDefOf.PrepareCaravan_GatherItems) return false; // No sex while starving or badly hurt. return ((!p.needs?.food?.Starving) ?? true && (xxx.is_healthy_enough(p) || !xxx.is_human(p))); } } }
jojo1541/rjw
1.5/Source/ThinkTreeNodes/ThinkNode_ConditionalSexChecks.cs
C#
mit
2,284
using RimWorld; using Verse; namespace rjw { public class ThoughtWorker_FeelingBroken : ThoughtWorker { public static int Clamp(int value, int min, int max) { return (value < min) ? min : (value > max) ? max : value; } protected override ThoughtState CurrentStateInternal(Pawn p) { var brokenstages = p.health.hediffSet.GetFirstHediffOfDef(xxx.feelingBroken); if (brokenstages != null && brokenstages.CurStageIndex != 0) { if (xxx.is_masochist(p) && brokenstages.CurStageIndex >= 2) { return ThoughtState.ActiveAtStage(2); // begging for more } return ThoughtState.ActiveAtStage(Clamp(brokenstages.CurStageIndex - 1, 0, 1)); } return ThoughtState.Inactive; } } }
jojo1541/rjw
1.5/Source/Thoughts/ThoughtWorker_FeelingBroken.cs
C#
mit
721
using RimWorld; using Verse; namespace rjw { public class ThoughtWorker_NeedSex : ThoughtWorker { protected override ThoughtState CurrentStateInternal(Pawn p) { var sex_need = p.needs.TryGetNeed<Need_Sex>(); if (sex_need != null) if (xxx.can_do_loving(p)) { var lev = sex_need.CurLevel; if (lev <= sex_need.thresh_frustrated()) return ThoughtState.ActiveAtStage(0); else if (lev <= sex_need.thresh_horny()) return ThoughtState.ActiveAtStage(1); else if (lev >= sex_need.thresh_satisfied()) return ThoughtState.ActiveAtStage(2); } return ThoughtState.Inactive; } } }
jojo1541/rjw
1.5/Source/Thoughts/ThoughtWorker_NeedSex.cs
C#
mit
627
using RimWorld; using Verse; namespace rjw { //This thought system of RW is retarded AF. It needs separate thought handler for each hediff. public abstract class ThoughtWorker_SexChange : ThoughtWorker { public virtual HediffDef hediff_served { get; } protected override ThoughtState CurrentStateInternal(Pawn pawn) { //Log.Message(" "+this.GetType() + " is called for " + pawn +" and hediff" + hediff_served); Hediff denial = pawn.health.hediffSet.GetFirstHediffOfDef(hediff_served); //Log.Message("Hediff of the class is null " + (hediff_served == null)); if (denial != null && denial.CurStageIndex!=0) { //Log.Message("Current denial level is " + denial.CurStageIndex ); return ThoughtState.ActiveAtStage(denial.CurStageIndex-1); } return ThoughtState.Inactive; } } public class ThoughtWorker_MtT : ThoughtWorker_SexChange { public override HediffDef hediff_served { get { return GenderHelper.m2t; } } } public class ThoughtWorker_MtF:ThoughtWorker_SexChange { public override HediffDef hediff_served { get { return GenderHelper.m2f; } } } public class ThoughtWorker_MtH : ThoughtWorker_SexChange { public override HediffDef hediff_served { get { return GenderHelper.m2h; } } } public class ThoughtWorker_FtT : ThoughtWorker_SexChange { public override HediffDef hediff_served { get { return GenderHelper.f2t; } } } public class ThoughtWorker_FtM : ThoughtWorker_SexChange { public override HediffDef hediff_served { get { return GenderHelper.f2m; } } } public class ThoughtWorker_FtH : ThoughtWorker_SexChange { public override HediffDef hediff_served { get { return GenderHelper.f2h; } } } public class ThoughtWorker_HtT : ThoughtWorker_SexChange { public override HediffDef hediff_served { get { return GenderHelper.h2t; } } } public class ThoughtWorker_HtM : ThoughtWorker_SexChange { public override HediffDef hediff_served { get { return GenderHelper.h2m; } } } public class ThoughtWorker_HtF : ThoughtWorker_SexChange { public override HediffDef hediff_served { get { return GenderHelper.h2f; } } } public class ThoughtWorker_TtH : ThoughtWorker_SexChange { public override HediffDef hediff_served { get { return GenderHelper.t2h; } } } public class ThoughtWorker_TtM : ThoughtWorker_SexChange { public override HediffDef hediff_served { get { return GenderHelper.t2m; } } } public class ThoughtWorker_TtF : ThoughtWorker_SexChange { public override HediffDef hediff_served { get { return GenderHelper.t2f; } } } }
jojo1541/rjw
1.5/Source/Thoughts/ThoughtWorker_SexChange.cs
C#
mit
2,531
using Verse; using Verse.AI.Group; namespace rjw { public class Trigger_SexSatisfy : TriggerFilter { private const int CheckInterval = 120; private const int TickTimeout = 900; private int currentTick = 0; public float targetValue = 0.3f; public Trigger_SexSatisfy(float t) { this.targetValue = t; currentTick = 0; } public override bool AllowActivation(Lord lord, TriggerSignal signal) { currentTick++; if (signal.type == TriggerSignalType.Tick && Find.TickManager.TicksGame % CheckInterval == 0) { float? avgValue = null; foreach (var pawn in lord.ownedPawns) { /*foreach(Pawn p in lord.Map.mapPawns.PawnsInFaction(Faction.OfPlayer)) { }*/ Need_Sex n = pawn.needs.TryGetNeed<Need_Sex>(); //if (n != null && pawn.gender == Gender.Male && !pawn.Downed) if(xxx.can_rape(pawn) && (xxx.is_healthy_enough(pawn) && xxx.IsTargetPawnOkay(pawn) || !xxx.is_human(pawn)) && Find.TickManager.TicksGame > pawn.mindState.canLovinTick) { avgValue = (avgValue == null) ? n.CurLevel : (avgValue + n.CurLevel) / 2f; } } //--Log.Message("[ABF]Trigger_SexSatisfy::ActivateOn Checked value :" + avgValue + "/" + targetValue); return avgValue == null || avgValue >= targetValue; } return currentTick >= TickTimeout; } } }
jojo1541/rjw
1.5/Source/Triggers/Trigger_SexSatisfy.cs
C#
mit
1,320
using RimWorld; using Verse; using Verse.AI; using Multiplayer.API; namespace rjw { /// <summary> /// Allow pawn to have sex /// dunno if this should be used to allow manual sex start or limit it behind sort of "hero" designator for RP purposes, so player can only control 1 pawn directly? /// </summary> public class WorkGiver_Sexchecks : WorkGiver_Scanner { public override int MaxRegionsToScanBeforeGlobalSearch => 4; public override PathEndMode PathEndMode => PathEndMode.OnCell; public override ThingRequest PotentialWorkThingRequest => ThingRequest.ForGroup(ThingRequestGroup.Pawn); public override bool HasJobOnThing(Pawn pawn, Thing t, bool forced = false) { if (!forced) //if (!(forced || RJWSettings.WildMode)) { //ModLog.Message("WorkGiver_RJW_Sexchecks::not player interaction, exit:" + forced); return false; } var isHero = RJWSettings.RPG_hero_control && pawn.IsDesignatedHero(); if (!(RJWSettings.override_control || isHero)) { //ModLog.Message("WorkGiver_RJW_Sexchecks::direct_control disabled or not hero, exit"); return false; } //! if (!isHero) { if (!RJWSettings.override_control || MP.IsInMultiplayer) { //ModLog.Message("WorkGiver_RJW_Sexchecks::direct_control disabled or is in MP , exit"); return false; } } else if (!pawn.IsHeroOwner()) { //ModLog.Message("WorkGiver_RJW_Sexchecks::not hero owner, exit"); return false; } Pawn target = t as Pawn; if (t is Corpse) { Corpse corpse = t as Corpse; target = corpse.InnerPawn; //ModLog.Message("WorkGiver_RJW_Sexchecks::Pawn(" + xxx.get_pawnname(pawn) + "), Target corpse(" + xxx.get_pawnname(target) + ")"); } else { //ModLog.Message("WorkGiver_RJW_Sexchecks::Pawn(" + xxx.get_pawnname(pawn) + "), Target pawn(" + xxx.get_pawnname(target) + ")"); } //Log.Message("1"); if (t == null || t.Map == null) { return false; } //Log.Message("2"); if (!(xxx.can_fuck(pawn) || xxx.can_be_fucked(pawn))) { //ModLog.Message("WorkGiver_RJW_Sexchecks::JobOnThing(" + xxx.get_pawnname(pawn) + ") is cannot fuck or be fucked."); return false; } //Log.Message("3"); if (t is Pawn) if (!(xxx.can_fuck(target) || xxx.can_be_fucked(target))) { //ModLog.Message("WorkGiver_RJW_Sexchecks::JobOnThing(" + xxx.get_pawnname(target) + ") is cannot fuck or be fucked."); return false; } //Log.Message("4"); if (!RJWSettings.bestiality_enabled && xxx.is_animal(target)) { //if (RJWSettings.DevMode) JobFailReason.Is("bestiality disabled"); return false; } //investigate AoA, someday //move this? //if (xxx.is_animal(pawn) && xxx.is_animal(target) && !RJWSettings.animal_on_animal_enabled) //{ // return false; //} if (!xxx.is_human(pawn) && !(xxx.RoMIsActive && pawn.health.hediffSet.HasHediff(xxx.TM_ShapeshiftHD))) { return false; } //Log.Message("5"); if (!pawn.CanReach(t, PathEndMode, Danger.Some)) { if (RJWSettings.DevMode) JobFailReason.Is( pawn.CanReach(t, PathEndMode, Danger.Deadly) ? "unable to reach target safely" : "target unreachable"); return false; } //Log.Message("6"); if (t.IsForbidden(pawn)) { if (RJWSettings.DevMode) JobFailReason.Is("target is outside of allowed area"); return false; } //Log.Message("7"); if (!pawn.IsDesignatedHero()) { if (!RJWSettings.WildMode) { if (pawn.IsDesignatedComfort() || pawn.IsDesignatedBreeding()) { if (RJWSettings.DevMode) JobFailReason.Is("designated pawns cannot initiate sex"); return false; } if (!xxx.is_healthy_enough(pawn)) { if (RJWSettings.DevMode) JobFailReason.Is("not healthy enough for sex"); return false; } if (xxx.is_asexual(pawn)) { if (RJWSettings.DevMode) JobFailReason.Is("refuses to have sex"); return false; } } } else { if (!pawn.IsHeroOwner()) { //ModLog.Message("WorkGiver_Sexchecks::player interaction for not owned hero, exit"); return false; } } if (!MoreChecks(pawn, t, forced)) return false; return true; } public virtual bool MoreChecks(Pawn pawn, Thing t, bool forced = false) { return false; } public virtual bool WorkGiverChecks(Pawn pawn, Thing t, bool forced = false) { return true; } public override Job JobOnThing(Pawn pawn, Thing t, bool forced = false) { return null; } } }
jojo1541/rjw
1.5/Source/WorkGivers/WorkGiver_Sexchecks.cs
C#
mit
4,512
<?xml version="1.0" encoding="utf-8"?> <ModMetaData> <name>RimJobWorld</name> <author>Ed86</author> <url>https://gitgud.io/Ed86/rjw</url> <supportedVersions> <li>1.1</li> <li>1.2</li> <li>1.3</li> <li>1.4</li> <li>1.5</li> </supportedVersions> <packageId>rim.job.world</packageId> <modDependencies> <li> <packageId>brrainz.harmony</packageId> <displayName>Harmony</displayName> <steamWorkshopUrl>steam://url/CommunityFilePage/2009463077</steamWorkshopUrl> <downloadUrl>https://github.com/pardeike/HarmonyRimWorld/releases/latest</downloadUrl> </li> </modDependencies> <modDependenciesByVersion> <v1.1> <li> <packageId>brrainz.harmony</packageId> <displayName>Harmony</displayName> <steamWorkshopUrl>steam://url/CommunityFilePage/2009463077</steamWorkshopUrl> <downloadUrl>https://github.com/pardeike/HarmonyRimWorld/releases/latest</downloadUrl> </li> <li> <packageId>UnlimitedHugs.HugsLib</packageId> <displayName>HugsLib</displayName> <downloadUrl>https://github.com/UnlimitedHugs/RimworldHugsLib/releases/latest</downloadUrl> <steamWorkshopUrl>steam://url/CommunityFilePage/818773962</steamWorkshopUrl> </li> </v1.1> <v1.2> <li> <packageId>brrainz.harmony</packageId> <displayName>Harmony</displayName> <steamWorkshopUrl>steam://url/CommunityFilePage/2009463077</steamWorkshopUrl> <downloadUrl>https://github.com/pardeike/HarmonyRimWorld/releases/latest</downloadUrl> </li> <li> <packageId>UnlimitedHugs.HugsLib</packageId> <displayName>HugsLib</displayName> <downloadUrl>https://github.com/UnlimitedHugs/RimworldHugsLib/releases/latest</downloadUrl> <steamWorkshopUrl>steam://url/CommunityFilePage/818773962</steamWorkshopUrl> </li> </v1.2> <v1.3> <li> <packageId>brrainz.harmony</packageId> <displayName>Harmony</displayName> <steamWorkshopUrl>steam://url/CommunityFilePage/2009463077</steamWorkshopUrl> <downloadUrl>https://github.com/pardeike/HarmonyRimWorld/releases/latest</downloadUrl> </li> <li> <packageId>UnlimitedHugs.HugsLib</packageId> <displayName>HugsLib</displayName> <downloadUrl>https://github.com/UnlimitedHugs/RimworldHugsLib/releases/latest</downloadUrl> <steamWorkshopUrl>steam://url/CommunityFilePage/818773962</steamWorkshopUrl> </li> </v1.3> <v1.4> <li> <packageId>brrainz.harmony</packageId> <displayName>Harmony</displayName> <steamWorkshopUrl>steam://url/CommunityFilePage/2009463077</steamWorkshopUrl> <downloadUrl>https://github.com/pardeike/HarmonyRimWorld/releases/latest</downloadUrl> </li> <li> <packageId>UnlimitedHugs.HugsLib</packageId> <displayName>HugsLib</displayName> <downloadUrl>https://github.com/UnlimitedHugs/RimworldHugsLib/releases/latest</downloadUrl> <steamWorkshopUrl>steam://url/CommunityFilePage/818773962</steamWorkshopUrl> </li> </v1.4> </modDependenciesByVersion> <loadAfter> <li>UnlimitedHugs.HugsLib</li> <li>brrainz.harmony</li> </loadAfter> <incompatibleWith> <li>gregorycurrie.AnimalGenetics</li><!-- Breaks CompHatcher.Hatch preventing eggs hatching --> <li>Dalrae.GaramRaceAddon</li><!-- Hijacks pawn generator fucking up pawn genders and who knows what else --> <li>IGNI.LostForest</li><!-- Intentionally breaks rjw jobs, hijacks storyteller to call raids and causes other issues when rjw detected --> <li>Sierra.RT.MedievalTalents</li><!-- Breaks pawn generator/pregnancies, causes pregnancies to instafail --> <li>com.yayo.raceQuestPawn</li><!-- Breaks pawn generator/pregnancies, wrong children outcome--> <li>Xenofell.HermaphroditeGene</li><!-- Transpiles same function(s) as RJW --> </incompatibleWith> <description> M for Mature Load mod at bottom of mod list: Harmony Core HugsLib ++Mods RimJobWorld RJW mods and patches Support dev: https://subscribestar.adult/Ed86 for crypto bros: USDT(TRC20):TAS9QbvuF6AquJ98TqG653bPDugC2a6mnk USDT(ERC20):0x6c61085700f4ad941df80234fbfb8a861b14b0de Forum: https://www.loverslab.com/files/file/7257-rimjobworld/ Discord: https://discord.gg/CXwHhv8 </description> </ModMetaData>
jojo1541/rjw
About/About.xml
XML
mit
4,150
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Manifest> <identifier>RimJobWorld</identifier> <version>5.6.0.5</version> <dependencies/> <incompatibleWith/> <loadAfter/> <suggests/> <manifestUri>https://gitgud.io/Ed86/rjw/raw/master/About/Manifest.xml</manifestUri> <downloadUri>https://gitgud.io/Ed86/rjw</downloadUri> </Manifest>
jojo1541/rjw
About/Manifest.xml
XML
mit
349
# Environment setup ## RimWorld dependencies The `.csproj` file has been configured to automatically detect standard Windows, Linux, and macOS Steam install locations, and should link dependencies regardless of the project's location on your hard drive. If that works for you, you don't need to read any farther. These are the paths RimJobWorld will look for the RimWorld dlls: - `../_RimWorldData/Managed/` (Custom) - `C:\Program Files (x86)\Steam\steamapps\common\RimWorld\RimWorldWin64_Data\Managed\` (Windows) - `$(HOME)/.steam/steam/SteamApps/common/RimWorld/RimWorldLinux_Data/Managed/` (Linux) - `$(HOME)/Library/Application Support/Steam/steamapps/common/RimWorld/RimWorldMac.app/Contents/Resources/Data/Managed/` (macOS) ### Custom project location If you choose to place the RimJobWorld project somewhere other than your RimWorld mods directory, you'll need to create a symlink in the RimWorld mods directory that points to the RimJobWorld project. Here are some examples of creating symlinks on different platforms: - Linux and macOS: Open the terminal and run this command (filling in the actual paths): `ln -s "~/where/you/put/rjw" "/your/RimWorld/Mods/rjw"` - Windows: Run the Command Prompt as administrator, then run this command: `mklink /D "C:\Your\Rimworld\Mods\rjw" "C:\Where\you\put\rjw"` ### Custom RimWorld install If you're using a custom RimWorld install, you'll want to create a symlink called `_RimWorldData` next to the `rjw` folder that points `RimWorldWin64_Data`, `RimWorldLinux_Data`, or `RimWorldMac.app/Contents/Resources/Data`, as appropriate. Refer to the previous section for how to create a symlink on your platform. In the end your file structure should look like this: - `where/you/put/` - `rjw/` - `RimJobWorld.Main.csproj` - ... - `_RimWorldData/` *(symlink)* - `Managed/` - `Assembly-CSharp.dll` - ... ## Deployment Notice Deployment scripts now make use of PowerShell 7+, instead of Windows PowerShell 5.1, allowing for cross platform execution. Please see [this document](https://docs.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows?view=powershell-7.2) if you don't have the new PowerShell on your device.
jojo1541/rjw
CONTRIBUTING.md
Markdown
mit
2,231
@ECHO OFF SET ThisScriptsDirectory=%~dp0 SET PSSctiptName=Deploy OLD.ps1 SET PowerShellScriptPath=%ThisScriptsDirectory%%PSSctiptName% PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '%PowerShellScriptPath%'";
jojo1541/rjw
Deploy/Deploy OLD.bat
Batchfile
mit
219
# Configurable variables $repo = '..' $packing = 'rjw_packing' $outputFormat = '..\..\RJW-{0}.7z' $internalPath = 'RJW' $pathsToRemove = '.git', '.gitattributes', '.gitattributes', '.gitignore', '1.1\Source', '1.2\Source', '1.3\Source', '1.4\Source', '1.5\Source', 'Deploy' [Console]::ResetColor() # Progress Bar Variables $Activity = "Deploying" $Id = 1 # Complex Progress Bar $Step = 0 $TotalSteps = 6 $StatusText = '"Step $($Step.ToString().PadLeft($TotalSteps.ToString().Length)) of $TotalSteps | $Task"' # Single quotes need to be on the outside $StatusBlock = [ScriptBlock]::Create($StatusText) # This script block allows the string above to use the current values of embedded values each time it's run # Read environvemt $Task = "Collecting info..." $Step++ ##Write-Progress -Id $Id -Activity $Activity -Status (& $StatusBlock) -CurrentOperation " " -PercentComplete ($Step / $TotalSteps * 100) $startupPath = Get-Location $7z = (GET-ItemProperty 'HKLM:\SOFTWARE\7-Zip').Path + '7z.exe' $packingRjw = $packing + "\" + $internalPath Push-Location -Path $repo try { [string]$version = git describe --tags } catch { [string]$version = "" } if ($version -eq "") { $manifest = "./About/Manifest.xml" [string]$version = (Select-Xml -Path $manifest -XPath '/Manifest/version' | Select-Object -ExpandProperty Node).innerText } $output = $outputFormat -f $version Pop-Location # Cleanup $Task = "Cleanup..." $Step++ Write-Progress -Id $Id -Activity $Activity -Status (& $StatusBlock) -CurrentOperation " " -PercentComplete ($Step / $TotalSteps * 100) if (Test-Path $packing) { Remove-Item -Recurse -Force $packing } if (Test-Path $output) { Remove-Item $output } # Prepating data $Task = "Copying..." $Step++ Write-Progress -Id $Id -Activity $Activity -Status (& $StatusBlock) -CurrentOperation " " -PercentComplete ($Step / $TotalSteps * 100) $items = Get-ChildItem -Force -Path $repo $items | Foreach-Object -Begin { $i = 0 } -Process { $i++ if (-Not ($pathsToRemove -contains $_.Name)) { Copy-Item -Recurse $_.FullName -Destination ($packingRjw + "\" + $_.Name) } $p = $i * 100 / $items.Count Write-Progress -Id ($Id+1) -ParentId $Id -Activity 'Copying' -Status ('{0:0}% complete' -f $p) -PercentComplete $p } Write-Progress -Id ($Id+1) -ParentId $Id -Activity "Copying" -Status "Ready" -Completed # removing files from subfolders $Task = "Excluding..." $Step++ Write-Progress -Id $Id -Activity $Activity -Status (& $StatusBlock) -CurrentOperation " " -PercentComplete ($Step / $TotalSteps * 100) foreach ($path in $pathsToRemove) { $p = $packingRjw + '\' + $path if (Test-Path $p) { Remove-Item -Recurse -Force $p } } # archiving $Task = "Archiving..." $Step++ Write-Progress -Id $Id -Activity $Activity -Status (& $StatusBlock) -CurrentOperation " " -PercentComplete ($Step / $TotalSteps * 100) Push-Location -Path $packing & $7z a -r -bsp1 ($startupPath.Path+'\'+$output) + $internalPath | Foreach-Object -Begin { Write-Progress -Id ($Id+1) -ParentId $Id -Activity 'Archiving' -Status "Starting..." -PercentComplete 0 } -Process { $line = $_.Trim() if ($line -ne "") { [int]$p = 0 [bool]$result = [int]::TryParse($line.Split('%')[0], [ref]$p) if ($result) { Write-Progress -Id ($Id+1) -ParentId $Id -Activity 'Archiving' -Status $line -PercentComplete $p } } } Write-Progress -Id ($Id+1) -Activity "Archiving" -Status "Ready" -Completed Pop-Location # cleanup $Task = "Cleanup..." $Step++ Write-Progress -Id $Id -Activity $Activity -Status (& $StatusBlock) -CurrentOperation " " -PercentComplete ($Step / $TotalSteps * 100) if (Test-Path $packing) { Remove-Item -Recurse -Force $packing } Write-Progress -Id $Id -Activity $Activity -Status (& $StatusBlock) -Completed # If running in the console, wait for input before closing. if ($Host.Name -eq "ConsoleHost") { Write-Host "Done" Write-Host "Press any key to continue..." $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyUp") > $null }
jojo1541/rjw
Deploy/Deploy OLD.ps1
PowerShell
mit
4,054
@ECHO OFF SET scriptDir=%~dp0 SET psScript=Deploy.ps1 SET pwshScriptPath=%scriptDir%%psScript% pwsh -NoProfile -ExecutionPolicy Bypass -Command "& '%pwshScriptPath%'";
jojo1541/rjw
Deploy/Deploy.bat
Batchfile
mit
169
# Configurable variables $repo = '..' $packing = 'rjw_packing' $outputFormat = Join-Path -Path '..\..' -ChildPath 'RJW-{0}.7z' $internalPath = 'RJW' $pathsToRemove = '.git', '.gitattributes', '.gitignore', (Join-Path -Path '1.1' -ChildPath 'Source'), (Join-Path -Path '1.2' -ChildPath 'Source'), (Join-Path -Path '1.3' -ChildPath 'Source'), 'Deploy' [Console]::ResetColor() # Progress Bar Variables $Activity = "Deploying" $Id = 1 # Complex Progress Bar $Step = 0 $TotalSteps = 6 $StatusText = '"Step $($Step.ToString().PadLeft($TotalSteps.ToString().Length)) of $TotalSteps | $Task"' # Single quotes need to be on the outside $StatusBlock = [ScriptBlock]::Create($StatusText) # This script block allows the string above to use the current values of embedded values each time it's run # Read environvemt $Task = "Collecting info..." $Step++ ##Write-Progress -Id $Id -Activity $Activity -Status (& $StatusBlock) -CurrentOperation " " -PercentComplete ($Step / $TotalSteps * 100) $startupPath = Get-Location if ($IsWindows) { $7z = (GET-ItemProperty 'HKLM:\SOFTWARE\7-Zip').Path + '7z.exe' } else { $7z = &which 7z } $packingRjw = Join-Path -Path $packing -ChildPath $internalPath Push-Location -Path $repo try { [string]$version = git describe --tags } catch { [string]$version = "" } if ($version -eq "") { $manifest = Join-Path -Path '.\About' -ChildPath 'Manifest.xml' [string]$version = (Select-Xml -Path $manifest -XPath '/Manifest/version' | Select-Object -ExpandProperty Node).innerText } $output = $outputFormat -f $version Pop-Location # Cleanup $Task = "Cleanup..." $Step++ Write-Progress -Id $Id -Activity $Activity -Status (& $StatusBlock) -CurrentOperation " " -PercentComplete ($Step / $TotalSteps * 100) if (Test-Path $packing) { Remove-Item -Recurse -Force $packing } if (Test-Path $output) { Remove-Item $output } # Prepating data $Task = "Copying..." $Step++ Write-Progress -Id $Id -Activity $Activity -Status (& $StatusBlock) -CurrentOperation " " -PercentComplete ($Step / $TotalSteps * 100) $items = Get-ChildItem -Force -Path $repo $items | Foreach-Object -Begin { $i = 0 } -Process { $i++ if (-Not ($pathsToRemove -contains $_.Name)) { Copy-Item -Recurse $_.FullName -Destination (Join-Path -Path $packingRjw -ChildPath $_.Name) } $p = $i * 100 / $items.Count Write-Progress -Id ($Id+1) -ParentId $Id -Activity 'Copying' -Status ('{0:0}% complete' -f $p) -PercentComplete $p } Write-Progress -Id ($Id+1) -ParentId $Id -Activity "Copying" -Status "Ready" -Completed # removing files from subfolders $Task = "Excluding..." $Step++ Write-Progress -Id $Id -Activity $Activity -Status (& $StatusBlock) -CurrentOperation " " -PercentComplete ($Step / $TotalSteps * 100) foreach ($path in $pathsToRemove) { $p = Join-Path -Path $packingRjw -ChildPath $path if (Test-Path $p) { Remove-Item -Recurse -Force $p } } # archiving $Task = "Archiving..." $Step++ Write-Progress -Id $Id -Activity $Activity -Status (& $StatusBlock) -CurrentOperation " " -PercentComplete ($Step / $TotalSteps * 100) Push-Location -Path $packing & $7z a -r -bsp1 (Join-Path -Path $startupPath.Path -ChildPath $output) + $internalPath | Foreach-Object -Begin { Write-Progress -Id ($Id+1) -ParentId $Id -Activity 'Archiving' -Status "Starting..." -PercentComplete 0 } -Process { $line = $_.Trim() if ($line -ne "") { [int]$p = 0 [bool]$result = [int]::TryParse($line.Split('%')[0], [ref]$p) if ($result) { Write-Progress -Id ($Id+1) -ParentId $Id -Activity 'Archiving' -Status $line -PercentComplete $p } } } Write-Progress -Id ($Id+1) -Activity "Archiving" -Status "Ready" -Completed Pop-Location # cleanup $Task = "Cleanup..." $Step++ Write-Progress -Id $Id -Activity $Activity -Status (& $StatusBlock) -CurrentOperation " " -PercentComplete ($Step / $TotalSteps * 100) if (Test-Path $packing) { Remove-Item -Recurse -Force $packing } Write-Progress -Id $Id -Activity $Activity -Status (& $StatusBlock) -Completed # If running in the console, wait for input before closing. if ($Host.Name -eq "ConsoleHost") { Write-Host "Done" Write-Host "Press any key to continue..." $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyUp") > $null }
jojo1541/rjw
Deploy/Deploy.ps1
PowerShell
mit
4,287
#!/usr/bin/env bash set -e scriptDir=$(pwd) scriptName="Deploy.ps1" scriptPath=$scriptDir/$scriptName echo "Reminder: p7zip and PowerShell Core are required." pwsh -NoProfile -ExecutionPolicy Bypass -Command "& '$scriptPath'"
jojo1541/rjw
Deploy/Deploy.sh
Shell
mit
227
Multiplayer: https://github.com/Parexy/Multiplayer ===================================================== desync: -? =====================================================
jojo1541/rjw
Multiplayer.txt
Text
mit
170
OwO what's this? RimjobWorld is a sex mod that overhauls Rimworld loving, mating and pregnancy mechanics. Mod supports various sex/hentai fetishes. Mod is highly configurable and most feature turned off by default, so you can go from vanilla experience to your wild fantasies. Many additional features(submods) can be found on LL forum and discord. You can support current Dev(Me) here: [SubscribeStar](https://subscribestar.adult/Ed86) [Ko-fi](https://ko-fi.com/caffeinated_ed) for crypto bros: USDT(TRC20):TAS9QbvuF6AquJ98TqG653bPDugC2a6mnk USDT(ERC20):0x6c61085700f4ad941df80234fbfb8a861b14b0de [Mod git]{https://gitgud.io/Ed86/rjw} Feedback: [Discord]{https://discord.gg/CXwHhv8} [LoversLab Forum]{https://www.loverslab.com/files/file/7257-rimjobworld/} Requirements: Hugslib ([Steam](https://steamcommunity.com/sharedfiles/filedetails/?id=818773962)) ([GitHub](https://github.com/UnlimitedHugs/RimworldHugsLib)) Installation: (if updating - Delete all files from previous RJW versions) Unpack the the content from the downloaded archive into "...steam/steamapps/common/Rimworld/Mods/RJW" You will see this folder structure - Rimworld/Mods/RJW/About Start Game Activate mod & the other required mods Restart game Load Order: -Rimworld Core (that's the game) --Hugslib ---your mods --RimJobWorld ---addons for RimJobWorld Contributing: use TABS not SPACES for xml/cs, please? do comments in code for other people(me?) P.S. im not a pro C# programmer or git user, so i might do weird stuff ;)
jojo1541/rjw
README.md
Markdown
mit
1,558
5.6.0.5 aelina: Less stupid scaling. Pawns have 0 severity parts until puberty (stage HumanlikePreTeenager for humanlikes, or 0.5 bodySizeFactor), reaching their full size at Adult. 5.6.0.4 amevarashi: Fix DesignatorsData fill condition Clear DesignatorsData when loading the save aelina: Fix giant/small xenotypes 5.6.0.3 removed HugsLogPublisher dependency aelina: fixs 5.6.0.2 aelina: fix inspect string 5.6.0.1 fixes 5.6.0 fix game crash with mp jikulopo: Add optional prepatcher support into GetRJWComp() extension ElToro: Fix for JobGiver_Bestiality not checking for ReadyForLovin(pawn) or xxx.is_horny(pawn) Animals with an existing bond, where bonded pawn will engage in bestiality with bonded animal, now be less often targeted by pawns that don't have bond with this specific animal + some minor fixes. Added closest (for a pawn) bed selection for female_bestiality if both pawn and animal beds are available, plus made some balancing changes for bestiality (overall and Mate Bonded), which will result in slightly less often bestiality attempts, while Mate Bonded will check if Pawn sex_need is not satisfied. Female pawns will first try to use their own bed for bestiality, and only after that they will go to animal bed. Animal-based fetishes (Fur Lover, e.t.c.) now not only increase the chance to select an animal during a bestiality attempt, but also will slightly increase bestiality chances overall + they will work with non-animal pawns (Furskin gene for example). New hediff for animals - Humanlike_Paraphilia, which is used in tracking animal interactions with humans + giving buff to animal sex drive. Changes to Male Bestiality - now a male humanlike pawn will only "rape" animals which don't have prior humanlike sex experience (Using Humanlike_Paraphilia) with 50% chance. Bigger severity level - less chance of rape. Changes to animal mating. If a female animal has a high levels of Humanlike_Paraphilia severity levels she will "decline" animal-on-animal mating with some chance (She will be treated as a pregnant animal by a male animal). Bonded animal with Humanlike_Paraphilia will decline all animal mating. Changes to bestiality - depending on Humanlike_Paraphilia severity animals will have different would_fuck_animal scores. I.e., animal who only experienced interactions with humans will be friendlier (Higher petness and lower wildness stats) than animal, who only mated with other animals (due do higher wildness and lower petness). Animal-human mating. Configurable by a toggle in RJW Settings. Bonded animals will try to initiate mating with their Bond (With fould_fuck_score verification). amevarashi: Upgrade to Sdk-style project + Nuget package refs Remove HugsLib Replaced HugsLib with Standalone Log Publisher in the About.xml modDependencies aelina: Sizing fixs Enable part editing on creation Detect external severity changes. Add fluid type to part editor Skomer: german translation 5.5.0.3 added bunch of synchronizers for multiplayer update part size instantly instead of once per day moved fluid volume calculation to own function updated parts growth to also update ownersize and fluid amount amevarashi: Better part selection logic and fallbacks. Debug action to dump selected part. Changed how pasts are selected Check for atrificial parts is natural is missing ElToro: Fix for excessive cum filth generation. Fix to allow female animal rape 5.5.0.2 fix demon parts removal error leanavy: Rewrote RelationChecker to work with same-gender parents, using new method that check only DirectPawnRelation Wrote patch for PawnRelations_Humanlike to link relationWorkers Fixed missing second parent in Dialog_NamePawn ElToro: Allowed female bestiality for fenced animals bestiality changes to SexAppraiser allowed slaves in RMB menu Vegapnk: Default scaling by bodysize is on for genitalia display added a modder-only field BodySizeOverride that changes display It checks for sex-driver whether the pawn died, got downed or had genitals changed or removed. null-checks for "Reduce_Rest_Need" 5.5.0.1 amevarashi: -Fixes for the RMB_Menu rework -Fixed nullref in RMB_Mechanitor.GenerateCategoryOption when the target is not a pawn -Removed hidden pawns from RMB_Menu targets -Removed unspawned pawns from RMB_Menu targets -In rjw dev mode show the reason if pawn removed from interaction targets 5.5.0 removed PC incompability tag, apperantly now it only breaks hediffs like other editors edited tips so, extrimists get (unlikely) slightly less offended because incomatibility with lost forest, also we are not sad KarubonWaito: Simplified Chinese amevarashi: Remove CnP and BnC compatibility RMB menu refactor - should give you reasons why there no sex interactions Sombrahide: Vanilla Psycasts Expanded - Puppeter Patch a flock of birds: Sex Part Rework -Major refactor of sex parts. Breaks saves and submods, but should be less bug-prone. -Removed flank bodypart. Udders are now just another kind of breast. -Added a simple sexual fluid system - parts can now define their own fluids, filth and effects on consumption. -Pawns can now consume insect jelly straight from the tap. -Cleaned up part stats screen. -Size description of harvested parts is now relative to baseline human size. -Added info about harvested parts to inspect. -Fixed egg production in artificial ovipositors (none currently exist but if they did they'd be fixed). -Fixed succubi failing to drain energy if they or their partner lacked a food need. -Removed some unused, nameless hediffs that were clogging up the dev mode menu and couldn't be filtered out 5.4.1 typo fixes fix labels and descriptions for anal bread/rape thoughts add dev msg for pregnancy/egg abortion for immortals improved age detection with life stages (ve androids) amevarashi: Assembly versioning Tory: Anamoly update Hikaro: Ukrainian translation 5.4.0 added modicon changed/moved egg size calculation code from genitals/impantation to Hediff_InsectEgg.ChangeEgg fix Egg size slider not working for egg generation translation strings for insect eggs hediff jikulopo & co: support for 1.5 5.3.9 fix (for now/ for ever?) receiver usedCondom not being set for receiver jobdriver, thus impregnating initiator improved rmb, hero now, again, skips most checks, direct control - not improve egg fertilization - DoublePenetration fertilizes both genitals and anus (not either) improve egg implanting Gargule: EggingFixes: -No more fertilizing ass through mouth -No more egging things that souldn't be egged -No more egging when it shouldn't happen 5.3.8 Ed86 Still being with you anon18392 Fix confusing log entries generated by fingering and handjob rapes FlirtyNymph Makes hero pawn check for opinion theshold when trying to have sex with RMB, without this it feels like cheating since target pawns will accept casual sex even if they are rivals which doesnt make sense. Makes RMB rape consider the would_fuck check because it feels a bit willy-nilly to be able to RMB rape everyone regardless of hero pawns preferences or game settings ghostclinic3YTB Allow nympho frustrated rape to be toggled Crow Notifications for animal pregnancies can now be disabled via option (in RJW-pregnancy settings) A-flock-of-birds Reverted quickie -> hookup report change Added target info to Quickie and JoinInBed Fixed capitalisation in rape jobs Added nympho check to xxx.is_prude Refactored poly checks to be more reusable Swapped IsSingleOrPartnersNotHere for HasNonPolyPartner(onCurrentMap: true) in the consensual sex WorkGiver Account for precepts when determining polyamory/prudishness 5.3.7.1 fix pregnancy error for races that block malnutrition hediff changed sexuality card to use modid instead of string fix oral bestiality rulepack typo ghostclinic3YTB Allow jobs to be marked for quickie interruption in xml file 5.3.7 added part property "FertilityToggle" for genitals added FertilityToggle prop for archotech genitals changed archotech fertility hediffs to not mention archotech changed archotech fertility toggle button to work for all genitals with "FertilityToggle" fix debug message in JobGiver_ComfortPrisonerRape 5.3.6.1 fix sex settings menu 5.3.6 Ed86: being with you Vegapnk: Relations for Insect-Egg Babies ghostclinic3YTB: separate orgam meter from job duration Hydrogen: Chinese 5.3.5.1 fix nre for empires/bionic body parts 5.3.5 increased size of pregnancy settings menu, should scale with options probably? moved GetSpecialApparelScoreOffset() from bondage gear to harmony patch, which can probably affect pawn desire to wear bondage by own will Tory: CE bulk patch Zsar: Added option to configure Ovipositor capacity Vegapnk: Added configurable gene-inheritance for egg pregnancies Changes: if both implanter and fertilizer are humans, egg gets genes stored according to vanilla logic On birth, kid gets genes Settings to put this behavior on/off (default on) General Cleanup and some refactoring Separating behavior in different methods, for easier patching and readability Valorantplayer993: Performance improvement on CompRJW - CompTick 5.3.4 fix futa reverse interactions to be 50/50, instead of 10/90 Taleir: csproj-refactoring Fixes a null reference exception in sex jobs on interruption fix pregnancy transpiler for latest Humanoid Alien Races Fix sex interruption on loading a save with sex in progress divineDerivative: Compatibility with Way Better Romance AntiJaoi: Ukraininan support 5.3.3.3 reverted d6da0ef9? fixed human/animal pregnancy error - needs some testing on you 5.3.3.2 added fix for pregnancy last name generation with non humans 5.3.3.1 fix toggles for x-slut traits not saving 5.3.3 reduced ChangeSex error to warning fixed human/animal pregnancy error added toggles for x-slut traits 5.3.2 replace AllowTeenSex with AllowYouthSex removed 2year difference requirement for youth sex nugerumon: Biotech: Check for fertile penis instead of male gender when compiling list of pawns that could fertilize ovum gterl: Genital_Helper: use tags to search for mouth, tongue and stomach Endismic: Fixed submissive quirks also added to dominant pawns Taleir: Improvements to the "knotting" job. https://gitgud.io/Ed86/rjw/-/merge_requests/253 Genital_Helper optimizations and cleanup. https://gitgud.io/Ed86/rjw/-/merge_requests/248 anon18392: Fix: Silence false positive errors when biotech disabled 5.3.1 replaced racegroupdef limitedSex with teenAge, added adultAge added AllowTeenSex mod settings anon18392: Allow feeding babies in bed without Biotech enabled Taleir: uh... stuff https://gitgud.io/Ed86/rjw/-/merge_requests/243 5.3.0.12 remove legacy age toggle a flock of birds: har-fix klorpa: Spelling and Spacing Fixes 5.3.0.11 set [1.4 FORK] EdB Prepare Carefully incompatible fixed reverse anal/vaginal rulepacks a flock of birds: Added letters for when a pawn gains a trait from sex (only important pawns, can be disabled in basic settings) Gaining the hypersexual trait now requires a pawn to be high on humpshroom as well as addicted Renamed hypersexuality trait to hypersexual (better matches vanilla naming conventions) and necrophiliac to necrophile (to match zoophile) If anal, rimming and anal fisting all have their weights set to 1 in sex settings, pawns can no longer have the buttslut quirk and can no longer gain the buttslut trait from sex (no good way to prevent them from spawning with it though) Likewise for the podophile and cumslut quirks/traits Trying to add an incompatible quirk via dev mode now generates a log message explaining why it failed Other Notes Reasoning for the new hypersexual requirement is that it makes more sense to gain a trait from an altered state of mind than the altered baseline which they might not even notice. You could also reason that a pawn going through withdrawal could get it though. Added an RJWHediffDefOf class to save on database lookups for humpshroom stuff Fixed capitalisation on "induced libido" label on the off chance it ever appears mid-sentence somewhere 5.3.0.10 a flock of birds: Fertility integration fix EndsM: Chinese translation 5.3.0.9 jetolska: Fix bestiality DNA being always human in biotech Fix gaining podopile/cumslut quirk crashing flock of birds: Fixed error on mechrape, improved pregnancy approach interaction selection logic 5.3.0.8 fix animal age check a flock of birds: Actually fixed pawns never reaching ahegao from consensual sex Actually fixed pawns not respecting the preferences of their podophile/impregnation fetishist partners in consensual sex 5.3.0.7 removed sex age settings added min sex age to racedefs change phantasy_pregnancy to grow child until reproductive OR adult lifestage fix error when trying to transfer nutrition for succ from pawn without rest need EndsM: chinese translation a flock of birds: RJW fertility now factors in Biotech fertility if possible Pregnancy approach is factored in to RJW pregnancy calculations for consensual sex RJW fertility is used instead of Biotech's fertility stat for things like checking if a pawn can spawn pregnant Same-gender lovers can select a pregnancy approach if they have the appropriate bits The fertility tooltip in the health tab is slightly more informative Fixed an error when a child reaches a new life stage without Biotech installed Pawns born from non-Biotech pregnancies are no longer always called Baby RJW's install IUD operation is hidden in favour of its vanilla equivalent if using Biotech pregnancy Genderless pawns no longer mess up the "Pawn is sterile" explanation for why pregnancy approach is not available Pregnancy approach now affects the likelihood of vaginal sex being chosen rather than directly multiplying pregnancy chance. Fixed another error caused by non-biotech children turning three Fixed error spam caused by opening the worktab with a non-biotech child in the colony Fixed pawns never reaching ahegao from consensual sex Fixed pawns not respecting the preferences of their podophile/impregnation fetishist partners in consensual sex 5.3.0.6 ... added missing backstories 5.3.0.5 fixed pregnancy icon tooltip error fixed nymphs for 1.4 removed C# backstories, can now use xml to change many nymphs stuff enabled homekeeper nymphs nymphs now can have any bodytype, not only thin EndsM: chinese translation 5.3.0.4 fixed rjw child backstories for 1.4 added toggle to use biotech pregnancy for females in bestiality and human-human pregnancies *humanlike pregnancy and child growth to adult without dlc will cause errors, probably safe to ignore feet/cum/butt slut traits added cumslut(fellatio),buttslut(anal) quirks changed footslut at apply to reciever cumslut,buttslut,footslut now have 5% to be gained after appropriate sex added isRevese bool to sexprops so modders can find if interaction has (InteractionTag.Reverse) faster/easier fixed namespace in HackMechPregnancy, so it should work in older versions of visual studio 5.3.0.3 with biotech dlc hacking mechanoid pregnancy now spawn player faction mechanoids instead of neutral mechanitor can hack pregnancy without operations / ultra meds added dlc PregnantHuman detection to pawn IsPregnant() fix mech genital patch if no dlc found fix typo in Tips, removed brothel mentioning 5.3.0.2 added biotech mechs to implanting pregnancy added mech genitals to biotech mechs 5.3.0.1 fix FeelingBroken being broken a flock of birds: Temp fix for render error on gene interface Less time is spent ticking genitals on unimportant worldpawns 5.3.0 1.4 support 1.3 support not 5.2.4 make rjwtab pawns, pawnTableDef fields public 5.2.3 rjw designators box and icon are now disabled by default added drop down menu for rjwtab with colonists, animals, property designators KeirLoire: lowercase label for drugs 5.2.2 fixes for udder stuff, added udder bondage blocking fix wip tab warnings fix masturbation spot finder 4f9ff58a anon18392: Move Udder from Body to Flank(new) to fix surgery -Add new BodyPartDef Flank as location for udders. -Implement Recipe_RemoveUdder which targets hediffs on the Flank. -Allows for harvesting udders from pawns Add Multi surgeries for insect/animal parts -Allow adding an m/f ovipositor to existing genitals -Allow adding an insect anus to an existing anus -Allow adding an udder to an existing udder 5.2.1 fix parts size update for childrens 5.2.0 rjw maintab with some basic functionality not really a fix for casual sex error maybe fix for maybe error if theres no valid masturbation spot disabled sex thinknodes for fogged pawns, should reduce tps impact on animals breeding in huge maps fix parts size update (wrong size after surgery etc) re-add sex meditation focus source code Dubs670: new settings for egg capabale body parts: minEggsproduced and maxEggsproduced, setting the min and max of eggs generated in a single step. fixes a bug in MakeFuta which was not available in case of females with ovipositors 5.1.0 removed content remove title addition for pregnancy added condom check for receiver, so it should prevent impregnating initiator... unless its group sex ... then F(not like rjw supports group sex) changed pregnancy code to do checks on multiple pregnancies mech/ovi pregnancy now remove all pregnancies instead of 1st one split is_slave check into vanilla and modded slaves added patch to pregnancy hediffs so they dont outright error when added through dev mode, outcome? who knows added bestiality tag to necro, so you can enjoy good time with corpses of your pets added genspawn patch to re/add pawn parts on pawn spawn mwcr: Psyfocus gain from sex now depends on having sex meditation focus, instead of having hypersexuality trait 5.0.3 added content added props display for vagina, breast hediffs fix vagina type hediffs props not working 5.0.2 added content changed bio icon to rjw logo added Sex meditation icon VanillaPsycastsExpanded 5.0.1 fix manifest for mod loader 5.0 its probably wise(who am i kidding? you probably wont even read this) to start a new game and wait for sub mods to update, unless you like walls of red text disabled unused workigers removed whoring removed sexability removed degeneracy that should not be removed milking wip code removed bukkake/cum overlays removed stds 4.9.9 fix post pregnancy baby genital stuff split Bra size and Bra cup korean translation 4.9.8 reduced humpshroom growth time 15->6 (like ideo shrooms) can now plant humpshrooms in deco pots, so everyone can enjoy this glowwy phallus shaped shroom in their bedrooms added designators unset when guest/prisoner/slave leave map fix for 4.9.4.3 -changed interaction requirement to check CustomHandler AND sub/dom requirements 4.9.7 changed BestialityForFemale to behave like other sex jobs instead of 2 stage reverse fuckery fixed rape mentalstate interrupting sex when finished and breaking aftersex thingys added STDImmune prop for slime parts added STDImmune prop for archotech parts added ability to set custom child stories in race support typo fix in "install rodent agina" amevarashi: masturbation typos fixes Twonki: Added Orgasm-Counter to Sexprops Haseiliu: Fix? fertility for animals(allow juveniles to reproduce) XenoMorphie: Enable Cross-Platform Deployment (Linux, macOS & Windows 7+) 4.9.6.1 fixed? slave children faction inheritance marked MedievalTalents incompatible due to pregnancy breaking marked Real Faction Guest incompatible due to pregnancy/ pawngenerator hijack and messing up children 4.9.6 changed pregnancy check to be optional/ pregnancy should be visible for abortion moved paternity check behind pregnancy check/ visible pregnancy done paternity check now shows father in hediff tip added pregnancy abortion for mech implants* changed "Reroll sexuality" button to "Reroll" fixed Disable_bestiality_pregnancy_relations cheat option not being saved added cheat option to Disable_MeditationFocusDrain for frustrated pawns added cheat option to Disable_RecreationDrain for bad sex fix "female" invite to bed bestiality rmb not saving interaction support for 1.3 Mech_Termite 4.9.5.8 fix masturbation counters and semen overlay 4.9.5.7 reverted SexUtility.LogSextype(); position, so dirtytalk/speakup should work again? 4.9.5.6 fix? pawns in warcaskets cant pass loving check, no sex for horny! fix some apparel (warkaskets) breaking rjw nude drawer, so it wont crash but youll get weird shit 4.9.5.5 fixed pregnancy error disabled would_fuck spam 4.9.5.4 fix rmb interaction randomization fix masturbation errors added masturbation social logs, rulepacks Caufendra Sunclaws age scaling improvement for non-human age scaling (shorter lifespans and also longer but below 500years) advanced age scaling uses the "reproductive" lifestage to determine adulthood since Rimworld don't have the notion of adult baked in its lifestages added setting to toggle advanced age scaling (enabled by default) (right under hero mode) 4.9.5.3 Caufendra Sunclaws - Breastjob fixes ? probably - Gender detection fixes ? - Part preference calculations fix for tongue/beak/mouth variants 4.9.5.2 fix anal, oral egg implanting/pregnancy Ed86 added deepthroating / oral rape interaction for fe/male ovi oral egg implanting/fertilizing 4.9.5.1 put SexualizeGenderlessPawn log spam under rjwdev mode replaced legacy part adder racename.Contains("droid") to AndroidsCompatibility.IsAndroid(pawn) exclude prf drones from sexualization genitalless drones and considered asexual fix pregnancy miscarry warning added isReceiver to sexprops fixed pregnancy detection for futa on futa action Caufendra Sunclaws: - fixing fovi - fixing cocoon - LogModule update - Reverse interaction detection fix for fovi - Csproj /w detection of RIMWORLD env variable - Sex Appraiser age scale rebalanced for immortal races - Reverse detector fix for futa - Harmony update to 2.2 nugerumon: whore bed room update performance improvement by analyzing room only once mwcr: Prevent Null Reference when RJW-EX not active. Added simple RJW-EX discovery 4.9.5 fix errors in trait inheritance which could break pregnancy changed udders to also apply to body(animals) bodypart, which should stop spam message in log when pawn created added ai sex thinknode checks when ai tries to exit map/form caravan/enter transporter added error message to rmb when no interaction found, rather than red error moved necro to separate interactions chinese translation CaufendraSunclaws: fixed footjobs fix some parts being blocked for necro ADHD_Coder Add double penetration interation to snakes and such Animals should now have indirect relations such as grandparent or cousin. 4.9.4.5 reverted fix for f ovis to be recognized as penetrative orgasn 4.9.4.4 fix rmb necro added Dead pawnstate to vaginal, anal, dbl p interactions, so they can be used by necrophiles CaufendraSunclaws: fix for f ovis to be recognized as penetrative orgasn 4.9.4.3 added "hands", "arm" defname check for interactions Hands parts changed interaction requirement to check CustomHandler AND sub/dom requirements fix interaction error with necro russian 4.9.4.2 merged rmb strings for rape enemy, rape cp, in just rape "fixed" rmb strings for animal rape, so you wont get options for bread anymore disabled birthing with no ideo until tynan fixes error spam 4.9.4.1 fix non rape giving negative joy fix rmb error, force end previous job, sometimes some why previous job was not interrupted(sleep etc) 4.9.4 maybe fixed rare sex job driver error maybe fixed rare gizmo error fixed egg pregnancy fixed ovi genital tickers, and simplebaby ticker fix colonists orgasm impregnating mechanoids changed SatisfyPersonal, split satisfaction into sex satisfaction, joy satisfaction. changed get_satisfaction_circumstance_multiplier to get multipliers for both violent and (new)non violent sex joy gains from orgasm can now be negative(normal pawn getting raped, masochist not getting raped, rapist not raping, etc), maybe someday zoo? removed ahegao from sex_need thought, now its separate thought and last half day, reduced ahegao mood bonus 12->8, requires sex be at 95+% and joy 95+% or 3 stage broken pawn psychopaths get heart mote when getting raped, will still hate rapist tho added psychopaths for "bloodlust_stole_some_lovin" thought replaced old wimp checks with TraitDef.Named("Wimp") reduced whoring prices for wimps added toggle to cheats menu to Disable relations(mother/father/siblings) from bestiality pregnancy. reenabled rmb animal rape/breeding disabled ai leading ropable animals to bed changed animal rape to use breeding interactions disabled rmb breeding for Rope'able animals changed bestiality service to only work on penetratable organs changed bestiality hj to only work on penetrating organs fix boobitis std fixed cum/nutrition/thirst transfer a flock of birds: Whoring thoughts are applied in their own method called by think_about_sex instead of a delegate in a constructor in the JobDriver's iterator method Added a DefOf class for whoring thoughts Cleaned up existing code Fixed the project refusing to build if the user doesn't have an unused NuGet targets file buried in some specific dot-ridden subdirectory of 0trash jhagatai: Korean translation update for 4.9.3 4.9.3 fixed pregnancy hediffs removed miscarry randomizations and mp sync/lag enabled abortion for unchecked pregnancies safe mechanoid implant option only available for checked pregnancies fix missing pregnancy settings localizations strings fix interaction tail error 4.9.2 fixed ovi's not producing eggs disabled spammy interaction logger 4.9.1 fix knotting not working for reverse interractions fix RaceSupportDef error on save added toggle for limp nymph raids - uses raid points, since someone wanted them, pretty disappointing experience, Ed86 would personally rate them 2/10: -1 for being nymphs -2 for being naked(only applies with rimnude) 4.9.0 not save compatible, start new game or else! your pawns logs will be broken, you will be presented with errors, you pc will burn, your vtuber waifu will ntr you, and who knows what else interactions overhaul: interactions are now not hardcoded in rjw and can be dynamically added, so you can have as many interactions in your game as your pc can handle for modders - interactions now has various tags and filters, so you can now get an some idea what is happening in animation, like what parts are used etc, rather than just roll dice and try to make a guess like it was before pregnancy patch to work with new interactions so you cant finally know who impregnates who - reciever/bottom/sub male/futa can impergnate initiator/dom female/futa (reverse mating press, futa x futa, etc) rmb overhaul: rmb are now brokedown into 3 patches(masturbation,sex,rape) and not hardcoded, so you can order pawn to use any interaction in your game as long as they meet conditions for interaction like have correct parts, big enough size etc, except MechImplant and None sex and rape brokedown in 2 groups ()[staight] and (reverse), where initiator gets serviced/services receiver ... well usually, so you can roleplay being submissive and breedable femboy and after adding few dozens interactions, rmb menu wold still fit in your screen masturbation now have interactions/options on what parts to use to satisfy self, so you can give yourself/pawn selftitjob, autofelatio or go vanilla disabled rmb animal rape, maybe implement it later added interaction template xml with XMLSchema for interaction creating/xhanging, Use Visual Studio Code + XML Extension(redhat.vscode-xml) for validation edited and broke down all interactions in to sep xmls fixed nymph raids, so they are back at "normal" strength after rewrite significantly weakened them removed testing incidents made StringListDef's public disabled bondage for tribals as ideo desirable fix? parts length description with weird bodysize modifier(40 size horse penises yay!) removed sexprops give/reciever fix typo in crosbreed description time dilation on parts hediffs, it should work ok... probably changed pregnancy/egg tick to better handle time dilation, so unless you have like x100 time dilation it should work ok... probably childrens now generated without ideo, so you'll need to convert them, and without (vanilla)backstory, uses moded anyway so w/e? added knotting after sex added option for alternative need_sex calculation/thresholds, technically its correct one but, reduces rjw triggers by 1 notch, so world is boring and less rapey NamingIsHard: enable players to control the number of parental traits can be inherited by babies CaufendraSunclaws: rewrite interactions system(confused, yet satisfied, Ed86 noises) rewrite nymphs events(confused Ed86 noises, was it worth it?) rewrite quirks(??? its rummored to be better, but Ed86 doesnt know or care, You go figure it out) 4.8.2 update mp api to 0.3 update harmony to 2.1.1 removed pawnJobDriverGet, partnerJobDriverGet from SexProps since they dont work added AnimalGenetics to incompatible mods changed bondage arms layer to draw on top of legs layer fixed bodypart incorrectly scale after transplantation changed rjw parts props Knoted -> Knotted 4.8.1.2 fix slave/prisoner breeding pregnancy error when baby is animal 4.8.1.1 fixed condoms not being applied after used removed variables from JobDriver_Sex: (applied after start())usedCondom, (applied in JobDriver_SexBaseInitiator start()) isRape, isWhoring fixed cum/semen being applied with condoms on initiator fixed cum/semen not being applied after core sex fixed implantable egg fertilization fixed std not being applied aftersex 4.8.1 added bondage apparel layers added rmb floatmenu option, where partner refuses sex with initiator, so people can stop asking why "have sex" option isnt working added option for same animaltype matin crossbreed added human->animal egglayer fertilizing added slider for animal sex cd readded legacy age sliders changed RulePackDef defName beakjobRP -> BeakjobRP Korean 4.8.0.4 changed SatisfyPersonal() to SatisfyPersonal(SexProps props, float satisfaction = 0.4f) changed Sex_Beatings() to Sex_Beatings(SexProps props) changed get_satisfaction_circumstance_multiplier() to get_satisfaction_circumstance_multiplier(SexProps props) changed CountSatisfiedQuirks() to CountSatisfiedQuirks(SexProps props) changed Roll_to_hit(pawn, Partner) to Roll_to_hit(); removed SexProps.violent added SexProps.isRapist added SexProps.pawnJobDriverGet() added SexProps.partnerJobDriverGet() replaced some checks isRape with isRapist added varibles set/inheritance to partners SexProps when initializing rjw sex -sexType = Sexprops.sexType, -isRape = isRape, 4.8.0.3 fixed reversed Sexprops/sexoutcome 4.8.0.2 fix? starting bodyparts(things) error with SOS2 or other start with no colonists fix masturbation errors fix semenhelper error fix gizmo error descriptions for SexProps 4.8.0.1 fix worldgen error 4.8.0 (and yes this will break rjw addons) moved bed related checks from xxx to Bed_Utility moved whoring related methods to whoring helper moved bed related methods to bed helper moved aftersexthoughts to separate helper, split many methods into smaller methods moved path related checks to pather utility split succubus related functions into separate methods since i figured how to save constructs, changed most functions to call Sexprops rather than (pawn,partner,...., etc) changed orgasm() to function properly and impregnate, do cum stuff, transfer nutrition when triggered rather than after sex changed breedingforfemale to call mating job, so rather than reverse fuckery now animal is initiator changed parts detection to use filtered lists bound to pawns that are updated on 1st rquest/gameload/part add/loss, rather than going through all hediffs everytime added fuctions to pawn extension for easier calls pawn.GetGenitalsList() etc added sexutility.SexInterractions with all valid rjw interractions added rjwSextype rjwSextypeCollection list with all sextypes added check for torso(whole body)BPR moved wild mode, hippie mode and debug toggles under dev mode toggle breakdown of CheckTraitGain breakdown of records handling methods changed SaveStorage.DataStore.GetPawnData(pawn) to pawn.GetRJWPawnData() remove satisfy() removed sexutility.sexActs changed rmb extending from AddHumanlikeOrders to ChoicesAtFor, so hopefully some mods that patch AddHumanlikeOrders wont shit them selves disabled breeding selection for animal invite, now you can only invite it and it will do w/e it wants disabled guilt for player initiated rape/ beatings inetegrated Aftersex with AftersexMasturbation changed age checks to pawn growth and reproduction lifestage removed option to disable pregnancy trait filter removed parts stacking removed disable kidnapping patch, use my workshop mod added chest,genitals,anus bodypartgroups fix implant eggs not saving their label/size on save/load added tongue check for cuni,rim,69 fixed birthing with double udders/featureless chests 4.7.2.5 fix egglayers pregnancies 4.7.2.4 fix egg progress not being saved 4.7.2.3 removed statOffsets for archo parts spanish PortugueseBrazilian 4.7.2.2 disabled test random interactions selection instead of scored one 4.7.2.1 fix eggs gestation 4.7.2 fix mechimplanting added Name="RJW_EggUnfertilized_Default" to ThingDef's of rjw eggs multiplied cum on body amount by 10 fix for pregnancies with races without gestationPeriodDays (mechanoids etc) fixed eggnancies for races with no gestationPeriodDays fix error pregnancy, while looking at hediff debug, while birthing more that 1 pawn changed HumpShroom to fungus korean 4.7.1.1 fix patch error for newborn pawn missing pawn.styles - droids etc chinese 4.7.1 added gender check when missing genitals to CheckPreference, so next time Mesa looses genitals - can still be considered for sex added patch to fix for vanilla pawn generator making newborns with beards and tattoos added - rape marking pawn guilty for 1 day if partner not maso/slave/prisoner/CP fix? error when pawn get downed from cuminflation or wounds after sex and cant interract/tame animal after sex childrens born from colony prisoner/slave will inherit mother factions and prisoner/slave status added resizable props to demon,slime,bio,archo parts added buttons to resize parts in rjw bio menu removed gay trait from child trait inheritance nugerumon: Fix empty line in inspect string, hide whoring overlays/buttons on non-player beds 4.7.0 1.3 support: added countsAsClothingForNudity for bondage added 1.3 IsSlave tag for slavery detection disabled rmb for prisoners and slaves disabled ability to set prisoners and slaves as hero added SlaveSuppression for bondage moved would_fuck debug menu to bio rjw icon, since oldone is removed in 1.3(removed SocialCardUtilityPatch transpiler) added button to export would_fuck scores to csv fix semen overlay fix settings menu fix pawn creation ui widget fix sex pawn drawing fix aftersex pawn drawing added PartnerPawn to JobDriver_Sex to reduce checks in Partner.get{} fix? added null check for JobGiver_RapeEnemy when debug enabled and no rapeEnemyJobDef found fixed Hediff_SimpleBaby Merge branch 'Tory-Dev-patch-82770' Include unofficial 1.3 version of Prepare Carefully to incompatibleWith Merge branch 'a-flock-of-birds-Dev-patch-31845' Fixed humanlikes requiring animals to be over sex_free_for_all_age regardless of lifestage 4.6.9 passive whoring for prisoners added RJW_NoBuy tag to bondage and natural parts, natural parts no longer spawn in vanilla traders patch to filter tradable stuff by tag RJW_NoBuy, so you cant sell rjw stuff to any(vanilla) trader just because its 15+ silver worth increased condom price to 2 switched usedcondoms sellable->buyable set Demon parts to be untradable set SlimeGlob to be untradable set pegdick to be untradable changed SexPartAdder & LegacySexPartAdder classes to public 4.6.8.2 fix meditation error more description to GoToModSettings anime tree support(meditation) descriptions to Hediff_RapeEnemyCD functionality, if anyone want to edit it changed label of MeditationFocusDef Sex to start with capital motd1233: fix thread error on loading icon 4.6.8.1 fix updatepartposition() error fix for modContentPack is null on one of the surgeries from PolarisBloc korean for 1.1, 1.2 4.6.8 changed nymphs <PawnKindDef> to <PawnKindDef Name="RJW_NymphStandard"> moved parts eggs production ticks to separate function so they dont have to sync whole part tick in mp, but only rng disabled rmb colonist_CP_rape when option is disabled in setting allow nymphs to meditate at things with SEX meditation focus (ex: porn magazines) moved udders from "chest" bodypart to "torso"/"wholebody"/null legacy sexualizer - cowgirls now spawn with normal breasts and 50% udders added HasUdder toggle to race support - adds 1 udder to female pawn added code to add(operation recipe) single part/hediff(if it doesnt exist) added recipes to add 1 udder or remove from torso(does not create udder part, doesnt work for animals, fix someday, maybe) added titanic breast preset to char editor chinese lang update gmasterslayer: Replace the random number generator with the Box-Muller translation. Box-Muller allows for randomly generating numbers that adhere to standard distribution. Part sizes will now fit standard distribution meaing that 'average' part size is now truely average. Extreme ends of the part size severity curve will now be increasingly less likely to be generated, while increasing the normal aka 'average'. klorpa: typo fixes motd1233: Restore vanilla's pregnancy indicators in animal tab and caravan/transport dialogs which were disappeared. 4.6.7.4 fix gizmo error if pawn has no Need_Rest moved satisfaction bonuses for nerco and zoo to SatisfyPersonal, so its now triggered on orgasm 4.6.7.3 fix masturbation errors 4.6.7.2 fix sex loop if vanilla overrides disabled fix partAdders error 4.6.7.1 fix part addder error from race support patches set orgasm modifier for animals x4->x1 4.6.7 added sexgizmo, separate enjoyment tickers, orgasms, toggle for neverending sex(or until pawn collapses from exhaustion), button to trigger beating during rape moved satisfaction to orgasm method added partAdders to race support - overwrites normal rjwparts adding/generation, so now you can create cute 9 dick-tailed foxes with hydraulic penis arms, levitating with the power of their anuses(probably). Youll need to create custom parts that wont be moved during saveload self fix added filter to not move/fix rjw parts on certain bodyparts replaced HediffDef.Named("Hediff_Submitting") checks with xxx.submitting added toggles to disable fapping in chastity belts and/or with bound hands more sextypes for transfer nutrition and succubus mana moved beatings into separate method removed "sex ability" from all calculations changed whoring prices to be affected by whoring experience rather than sex ability fixed condom removing error for medieval mods nugerumon: Hippie Mode whoring bed code/reservation improvements 4.6.6 fixed jobs ending before they actually should (and not getting aftersex toil) debug info for whoring pricing reduce pregnancy detection recipes exp gains fixed min age check that prevented animals breeding set base impregnation chance for same species egg layers to 100% added rmb deeptalk social "cheat" option added sapper nymphs fix? for colonist prisoner pregnancy, maybe? disabled age_factor log message 4.6.5b fix polyamory/polygamy checks returning always false 4.6.5a fix [HarmonyPostfix],[HarmonyPrefix] tags 4.6.5 moved some sex checks from SexTick loop to single check at sex start added missing SexTick for whoring removed health check for nonhumans to initiate sex fixed error when birthing eggs from dead pawn added Animal on animal volume modifier chinese translation stuff you probably dont care: renamed bunch of harmony patches methods to more descriptive than "this_is_postfix" pawn request generator update wip interactions: ↲ interactions generator ↲ abstract interactions ↲ rmb label nugerumon: allow other polyamory/polygamy mods 4.6.4 removed patreon link (if you have it on your site or post, replace it with SubscribeStar https://subscribestar.adult/Ed86) fix rmb violate corpse vaginal eggnancy now removes "normal" pregnancies DeterminePaternity now requires 1 medicine nugerumon: whore bed fps performance tweaks display whore bed price factor only in infocards of humanoid beds 4.6.3 fixed oral egg pregnancy breakin all pregnacies fixed whoring thoughts error spam for whores without bed added anal egg pregnancy toggle 4.6.2a fixed desync for rmb sex options 4.6.2 added sync for rmb socialize and masturbation, disabled options for sex until i figure out how to sync them, maybe this year fix rmb lag in multiplayer fix settings egg strings Nabber: egg implantation changes nugerumon: Add toggle to beds to (dis)allow whoring Mewtopian: Fix alien ages, not by changing ScaleToHumanAge but by letting old humans have some lovin 4.6.1 fix error during SelectSextype detection for non predefined interactions public class RaceGroupDef 4.6.0 changed IUD to reduce chance of pregnancy by 99% instead of setting fertility to 0, changed iud descriptions switched eggs generation from father+implanter to implanter, any pawn with fertile pp/male ovi now can fertilize eggs, outcome will be implanter kind or what is in predefined egg (in case of animal implanter) changed postfix_TrySpawnHatchedOrBornPawn to affect only vanilla pregnancy, eggs hatcher, and rjw pregnancies changed mech implant description(not sure its used anywhere but w/e) disabled stun after rape if rape beating disabled removed egg requirement for male insects to rape pawns Interaction overhaul: removed consensual interactions from rape and bestiality breakdown Oral sexacts into rimming,fellatio,cunnilingus,sixtynine split consensual interactions into male/female, give/receive, top/bottom... your get the idea...probably? :RJWVodka: added female rape interactions(someone should rewrite descriptions, actually most descriptions should probably be rewritten, but Ed is a Trashboat and doesnt speak english[This is machine translation to your primitive monkey language by your supervising AI overlord]) added ability to add custom interactionDefs for sex added ability to set rulepacksDefs for each interactionDef *should someday rewrite rmb code to filter interactions by sex type instead of being hardcoded nuganee: Add options hint to black designations square. mwcr: Add newer jobs to list of jobs interruptable for quickie 4.5.6 disabled sex rulepacks (2nd part of message in pawn log) changed interaction defs rulestrings, so they more descriptive about sex changed rmb options to use rjw's interactionDef label strings (someone should probably fix grammar someday) added rape interaction defs, so you can now dominantly give blowjobs and stuff removed cocoon requirement for anal egging added few more patches to disable nymph meditation disabled rape cp for animals remove double debug message for rapin added RJW_ prefix for brothel tab defs, so they dont conflict with other mods mwcr: Hide command gizmos for other players and non-heroes in HC mode 4.5.5 1.2 enabled patch for wordoflove to use rjw orientation checks backported below changes to 1.1, hopefully last patch for 1.1 changed distance (cells) check to be ...erm... more human understandable(at least now i know how it works!) increased default maxDistanceCellsRape => 100, maxDistancePathCost => 1000, you should probably go to settings and change/increase it manually to default(at least CellsRape) added more logs for tracing rape and why pawns are excluded from target list reversed PawnBeauty social bonus for purpose of rape, so PawnBeauty effects are nulified for kind pawns, and work as penalty for everyone else(more likely to rape) changed mating override patch so animals will mate even with animal_on_animal disabled fix ovi's having no fluid amount set and therefore no cum on pawn, newly generated ovi's now use penis x2 fluid modifier mwcr: widget optimisations 4.5.4 changed mod structure to move away from 1.0-1.1(this is probably last version/update for rw1.1) changed RandomRape descriptions hi-res egg textures fixed semen warning spam fixed mating reservation error spam reduced min pregnancy time modifier 10->5% typos fixes by Casiy Rose 4.5.3 changed insect eggs to new glowing ones by SlicedBread added new HediffDef_MechImplants so mods can define what mechanoid pregnancies birth instead of always Mech_Scyther prop fixes 4.5.2 set PrepareCarefully as incompatible fix rape error fix consensual nonbed sex check added Tapered prop to DogPenis added more props missing props source mwcr: Added capitalization of pregnancy letters. 4.5.1 changed UsedCondom to AnimalProductRaw removed NymphosCanPickAnyone option, will probably remove other options too with time added parts props(: knots, etc), maybe will have some usage in future increased size penalties for breasts size 1.4+ added titanic breasts size(to reflect hyper lact max max effect) changed targetfinders to filter distance to target in 2 paths, distance in cells(fast), distance in path(slow) split sex distance check in 3 options for casual and rape sex, path check added distance check options and descriptions added los check to whoring cheated thought changed 'something' with poly partners(likely need total overhaul) moved casualsex target selectors to casualsexhelper 4.5.0 allow birthing to be done if pawn dies due to pain during contractions stage added natural parts resize (for kids growing) based on bodysize, probably broken af if you try transplant it until pawn fully grown... or not... who knows changed masturbation in bed on happen in owned bedroom/prison cell, (prison)barracks now need frustrated for exhibitionist quirk merged masturbation spot finder with quickies changed quick sex target finder scores: -added per door bonus/penalty for sexspot searching? so corridors or rooms with lots of doors would be less desirable, unless exhibitionist -necrophiles now gain bonus from nearby corpses +20 -removed prisoner cell bonus -added +5 bonus to cells that has beds -added -100 score penalty to doorways, unless exhibitionist -added -10 penalty to Barracks, Laboratory, RecRoom, DiningRoom, Hospital, PrisonBarracks, PrisonCell cells unless pawn is exhibitionist, then +10 hide already added quirks from quirk add menu fix got_anal_bred not being removed when pawn become zoo Merge branch 'AddTips' into 'Dev' 4.4.12 fixed pregnancy error fix egg pregnancy with unidentified eggs made quirk public set slime breast FluidType to none 4.4.11 fix aftersex thoughts 4.4.10 fixed error caused by downing or killing pawn before sex over added horny_or_frustrated requirement for random_rape MentalState fixed errors in debug pregnancy/add pregnancy hediff/birth fixed father relations overwrite mother, so self-fertilized female is always mother moved postbirth humanlike baby patches/fixes from PawnGenerator patch to TrySpawnHatchedOrBornPawn PawnUtility postfix patch, which should cover rjw pregnancies and hatching/ovi 4.4.9 fixed/changed mechanoid detection for implanting to "Mech_", (yay pikeman you can no use your pike on colonists too) added override for mech implanting sextype, so it shouldnt error with no valid types added is_mechanoid() check for mech implanting sextype, so you probably better keep your pawns off tamed mechanoids and droids, unless... fixed mech impregnation removing previous mech pregnancy fixed error when searching for targets to do quickies with pawns that have no relations like droids and stuff removed RJW_EggOrassanFertilized, since its now sep mod maybe? fixed mp desync when pawn broken with PC chinese 4.4.8 added Ovi egg pregnancy support to races changed implanted eggs to actually birth eggs that hatch(for non humanlikes) moved some post birth baby code to PawnGenerator(so humanlikes can be birthed through eggs) fixed egg birthing during sex(disabled, so it wont interrupt sex with error) removed nihal race patch reduced pregnancy hunger to 30% added ability to make other races kinddefs into rjw "Nymphs" better pregnancy nymph filter, so kids cant by nymphs fix labels for big/large implants/penises fix size changer typo fixed? part size to use race bodysize instead of owner bodysize(which is probably was broken for childrens) 4.4.7 added option to show extended(sizes) RjwParts info reduced TalkTopicSex from 80% to 8% Merge branch 'Dev' into 'Dev' added phantasy pregnancy toggle(faster child growth) added sliders to change pregnancy duration removed hardcoded archo fertility bonus changed immortal pregnancy to silently miscarry changed Archotech fertility enhancer from 25% to 100% added vomitmtb to mid pregnancy stage changed vomitmtb to 2/4/6 per pregnancy stage added double hunger rate during pregnancy increased pain during contractions to 50% fix anal rape thoughts re-added debuffs for avg/large parts readded Manipulation penalties to breasts increased penalties for "hydraulic breasts" reduced penalties for bionics and archotech fixed rape flag not being set in rmb sex scores disabled log spam of Sex satisfaction multiplier FacialAnimation_compatibility chinese 4.4.6 fix? bestiality/mating checks typo fix in override_matin setting unforbid insect jelly in home area moved Raccoon to sep race group added rmb for hero to socialize fix? error for transfer nutrition for pawns without props brazillian portuguese german 420san: Allow rape to trigger during raids dastardlii: Added Sex Satisfaction Stat Added stat modifiers for Royalty implants. Fixed Missing Surgeries Remove old, broken EPOE integration (Was injecting recipes with Harmony instead of using defs) Updated prosthetic recipe defs to include abstract master defs for convenience Crafting benches for prosthesis are now defined in the defs Fixed Consciousness being applied to SexAbility in the inverse direction. Move circumstantial satisfaction bonuses (rape/masochism/broken...) to their own function. Fixed bonus satisfaction for broken pawns being applied all the time instead of only during violent sex. Changed sex satisfaction handling for broken pawns and violence to match old behavior while using new the stat Moved satisfaction effects from humpshroom withdraw from C# to XML 4.4.5 changed humpshroom and nympho trait descriptions to show their effect on psyfocus reduced mood buffs from sex by ~2 changed mating/loving patch so, should it fail, it should stop before rjw override kick in reverted baby bio age set to 0 on birth, so you can have your 14yo babies changed rape stripping to only work when colonist involved russian, chinese translations TDarksword: add (flat) breasts to males (racesupport?) add udders to Donkeys, Horses and Yaks 4.4.4 changed min whore price modifier to 0.1% at 12% age Merge branch 'setup-streamlining' into 'Dev' added apparel in thingCategories Containsining ("vibrator", "piercing", "strapon") to be drawn during sex russian chinese simpl 4.4.3 added hybrid/predefined pregnancies changed other mods detection so it doesnt rely on mod names added 1.2 tag 4.4.2 changed pregnancy check variables names set default rape stripping and complex pregnancies to false fix pregnancy? on birth: -remove implant hediffs and restore part -remove immortal hediff -set babies biological age to 0 fix hemipenis detection german translation typo fixes 4.4.1 added https://subscribestar.adult/Ed86 so you can send me all your money there added forced can_rape check for rmb, which ignores pawn sexneed, so now all you degenerate rapist can rape pawns non stop added race sexdrive modifier to race support(*looks at hentai space cats*) added option to strip rape victims changed Vigorous Quirk to reduce sex rest drop by half instead of by 1 changed Vigorous Quirk description changed SexulaizeGenderlessPawn to SexualizeGenderlessPawn fixed? teleport fucking fixed mod menu rectangles heights, sidescroll fix has_genitals checking wrong bodypartrecord 4.4.0 translations: chinese, korean 4.4.0 changed rmb faction detection to not error on rw1.2 support for yet another simple slavery 1.1 added sounds volume settings fixed default mod settings for when ppl upgrade added rmb to change masturbation "pose" fixed error when trying to rmb sex with drafted pawn wip tags for interactions? removed bondage merged Masturbate_Bed and Masturbate_Quick into Masturbate job driver merged quickie receiver into loved job driver rename jobdef RJWMate -> RJW_Mate set miscarry, abort, kill, to discard babies before removing pregnancy hediff doubled cocoon healing, added 50 heat/cold insulation fixed immortal? pawns/eggers loosing genitals after being resurrected fix for possible royalty pregnancy bug with titles spam fix for pregnancy losing father, when father discarded fixed xml eggsize setting not working added eggsize slider to pregnancy settings disabled fertilization of broken eggs disabled prostrating for pawns with ovis when they are about to lay eggs fixed? droid? aftersex cleanup so it shouldnt error because lack of need? 4.3.3 disable rmb for guests fixed targeted masturbation fixed bestiality firing casual sex and vice versa fixed got_anal_raped, got_anal_raped_byfemale not being removed from pawn when becoming masochist korean 4.3.2 changed rjw widget to not show designators when rape/bestiality options disabled disabled rmb when pawn is having sex added rmb menu for rape and breeding, since 80% interactions are consensual, rape/breeing menu is pretty empty until someone writes more interactions, or redesign whole system? split DetermineSextype into few functions added Sexprops to sex drivers moved available parts for sex detection to sep method better description for changesex royalty worldgen error fix? for pawn trying trying to solicit while having sex/going to bed with client changed debug prefix naming korean translation Abraxas: Update sizes for Implants Update CE size_setter Tirem12: Normal/anal rape Thoughts distinction 4.3.1 rmb - fix hero mode check rmb - fix CP rape check rmb - added conditions for normal rape - target must be rapable/vulnerable enough, rapist vulnerability must be less than or equal to victim 4.3.0 removed workgivers doubled whoring tab room Column size support for Nightmare Incarnation Succubuses rmb menu backstories for civil/tribal childrens Korean Translation file for RJW-2.4.6 translation fixes Mewtopian: Add granular cup size, length, girth, and weight to parts. Scale part size measurements by body size. Mitt0: rape-debugging toggle price-range-room-bonus tip 4.2.6 changed trait beauty check to PawnBeauty stat added mating jobdriver, so it doesnt spam rape messages when animals mate fixed cocoon and restraints removal recipes changed nymph join "colony" to "settlement" fix for drawing pawn on diff map during sex post whoring fixes: reduced base whoring prices by 2 changed 20% whoring price gender bonus from female to futa reduced whore prices past 1st half-life typo fix for whoring tab Mitt0: whoring fixes brothel-tab-improvements interruptable-jobs for quickies 4.2.5 raised hard nymph raid to 1k fix for pregnancy maybe another for transfer nutrition disabled bobitis updater and breast growth/shirnk recipes 4.2.4 chinese translation set Rjw sexuality to force reset to Vanilla on game launch unless individuality or psychology installed anal egg pregnancy for cocooned pawns fix? for nutrition transfer error when pawn has needs but no food need fix for insect birthing error 4.2.3 fix error in ChangePsyfocus with ROMA and animals 4.2.2 changed ChangePsyfocus to first check for royalty dlc b4 doing anything fix for error when sex is interrupted changed sexneed to reduce psyfocus only at frustrated level by -0.01 typo fix german translation korean translation 4.2.1 fix for sexneed checks preventing some sex when frustraited fixed whoring tab toggles fix sick whore not giving failed solicitation thoughts fixed whores prisoners/slaves getting payed by colonists removed whore beds added Morbid meditation focus to necrophiliacs added Sex meditation focus -nyphomaniacs can use Sex meditation focus -humpshrooms can be used as Sex meditation focus, 100% eff -humpshrooms restore 100% focus on consumption added 1% psyfocus regen per sextick (~8-15% total) in non solo sex for: -necrophiles for violating corpse -zoophiles for sex with animal if they have natural meditation focus -nymphs -succubuses x2 horny pawns loose 1% psyfocus per 10 needtick (~25s) frustrated/ahegao pawns loose 5% psyfocus per 10 needtick (~25s) changed cocooning to hostile targets, it maybe even work disabled whoring widget disabled milking widget checks merged widget permission checks into 1 function updated nymph backstories to make some sense added CompEggLayer check for -human pregnancies so it should fertilize eggs instead of causing normal/rjw pregnancy -bestiality - no pregnancy or fertilization set birthing "nymph" parent kinddef to default to colonist, so they wont be birthed adult set droids without genitals always be asexual, animal with individuality and psychology now also apperantly asexual hidden animals sexuality in social wouldfuck check since its always asexual set asexual pawns to return 50% sex need ChineseSimplified for version 4.2.0. more korean? fixes for archotech parts descriptions typos some tips and description changes by DianaWinters geoper: quickie job filters support for Simple Slavery[1.1] Renewed merged whoring tab toggles 4.2.0 fix error for semen applying fix quickes errors with forbidden zones changed oversized size name to: -breasts - massive -penis - towering -vag/anus - gigantic reduced moving penalties of oversized anus/vag overhaul of genital_helper: -functions now return all parts instead of 1st they can find, -functions now accept premade parts list, which should speed things up a bit -removed old genitals enum checks since parts can be added by any mod now and that would fail -replaced inside code of get_penis/vag functions with get_penis/vag_all later removed -(PS. mods that uses genital_helper are broken and need to be at least recompiled) changed some rjw logs requirement for RW dev to RJW dev changed eggs to cap speed penalty at 10% per egg for pawns with ovis decreased starting egg severity to 0.01 changed immortals to always miscarry pregnancies rather than being infertile too lazy to make immortals toggle, disable support code patch to remove DeathAcidifier from babies removed obsolete english,chinese,korean translations added korean translation? 4.1.5a fix immortals error 4.1.5 changed bukkake to apply real ejaculation amount shown in part hediff instead of bodysize based add job filters for quickie target selection, so forced or probably important jobs wont be interrupted set max nymph spawn limit for raids to 100 disabled birthing while being carried disabled individuality/psychology sexuality warning spam for animals, because they likely have none fix for psychology sexuality resetting added recheck for psychology sexuality change midgame disabled breeding rape alerts for animal vs animal changed breeding to still consider pregnant humanlikes set pregnancy Miscarry only trigger with 40+% Malnutrition immortals set to infertile geoper: Sex on spot fixes 4.1.4 new tips, yay! moved setup beating ticks to setup_ticks ImprovedSleepingSpot: raised rest effectiveness raised surgery chance sleeping spots: -reduced comfort from sleeping in dirt to 0.1 -increased rest effectiveness to minimum of 0.8 -removed imunity nerf -removed surgery nerf increasesd RJW_DoubleBed stats increased ejaculation amounts for big creatures(work only on new pawns) fixed necro error changed brothel button to icon pawn with aphrodisiac effect now counts as nymph for would_fuck calculation set default FapEverywhere to false added workgiver to masturbate in chair/other sittable furniture replaced direct control with cheat option, disabled cheat overrides in mp separated all nymph events into separate toggles fix oversized breast implants using setmax instead offset manipulation added bondage_gear_def exclusion for drawing pawn during sex, so bondage should be drawed added bondage apparel category added pregnancy filter to breeding, so animal stop breeding pregnant receivers adjusted sexuality reroll and quirks to need rw.dev instead of rjw.dev fix for better infestartion raping enemy duty merged Chinese translatio0n merged sex on spot by geope 4.1.3 fix bestialityFF and whoring pathing to SleepSpot 4.1.2 fix royalty bed patch 4.1.1 update apis and 1.1 multiplayer changed jobrivers moved motes and sounds to sep functions overhauled sextick fixed rjw pawn rotation handler so rjw can now actually affect pawns facing direction fixed doggy orientation for FF bestilaity added mutual thrust during loving looks like fixed bestiality for female jobdriver, so it wont freeze if you forbid doors, probably fixed(or broken, untested) whore servicing clients reduced breast oversized size penalty to -40% movement added breast back breaking size -80% movement, you will probably need some bionics to move probably made natural parts not impact(reduce?) pawn price probably disabled sexualization of genderless non animals/humanlikes disabled beatings for animal vs animal sex, no more blood for blood god fixed error caused by killing pawn while it still doing breeding added DefaultBodyPart to parts added patch to fix broken parts locations on world load after breaking them with with pawnmorpher, or other mod that changes bodies added patch to fix broken parts after breaking them with prepare carefully set default egg bornTick to 5000 so its gives 1 min for testing egg implanting and birthing increased parts tick 60(1sec) -> 10000(~3min) give some loving chance(based on SecondaryLovinChanceFactor) for orientation check in would_fuck even if orientation_factor is 0, so pawns still might consider opposite orientation if they VERY like someone 4.1.0 changed jobs to select sextype at the beginning of sex instead of after added start(), end() to masturbation, rape corpse, casual sex added toggles for override vanilla loving with casual sex, matin with breeding fix sex jobdriver Scribe_References added JobDriver_washAtCell to DubsBadHygiene patch, disabled for now, not sure if it should exist removed "RJW" from pregnancy options in Pregnancy Settings disabled Initialize function for ProcessVanillaPregnancy and ProcessDebugPregnancy since it already should be done in Create function cleaned that mess with rape alerts, added silent mode, disable option now disables them set beating to always use gentle mode for animal vs animal fixed whoring and sex need thoughts not working at minimum pawn sex age patch for FertileMateTarget to detect rjw pregnancies so animals wont mate already pregnant females set parts update interval to 60 ticks added code for rjw parts to delete them selves when placed at null/whole body (PC) update for individuality 1.1.7 moved syr trait defs to xxx instead of somewhere in code changed egg pregnancy to produce insectjelly only if baby or mother is insect changed nymphbackstories to use SkillDefOf added rape enemy job to DefendHiveAggressively Mewtopian: -Add size to racegroupdefs Toastee: -paternity test 4.0.9 changed insect egg pregnancy birth to spawn forbidden insect jelly disabled hooking with visitors for slaves set slaves to obey same rules as prisoners disabled fapping for slaves(like prisoners) unless they are frustrated slaves now counted as prisoners for whoring (thought_captive) added slaves to bondage equip on probably disabled pregnancies for android tiers droids fixed quirks descriptions for 1.1, added colortext to quirks fixed nymph generator for 1.1 added chance to spawn wild nymph added 2 nymph raids: -easy 10% - you can do them -hard 01% - they can do you changed "No available sex types" from error to warning added patch/toggle to disable kidnaping changed parts adder so pawns with age less than 2 dont spawn with artificial parts(not for race support) 4.0.8 fix for casual hookin 4.0.7 since no one reads forum, added error/warning for Prepare Carefully users and another Merge whoring fix 4.0.6 removed old sexuality overrides patches Merge whoring fix set Aftersex to public fixed error when designated tamed animal goes wild 4.0.5 adde sexdrive to HumpShroomEffect fixed bestiality and whoring follow scrip sometimes gets interruped and cause notification spam Merge branch 'patch-1' into 'Dev' fix: error when child growing to teenager 4.0.4 fixes for casualsex and whoring disabled vanilla orientation rolls and quirk adding for droids fix for droids getting hetero sexuality instead of asexual fixed rjw parts resetting in storage added fluid modifier, maybe someday use in drugs or operations added previous part owner name, maybe one day you stuff them and put on a wall added original owner race name 4.0.3 disabled breastjobs with breasts less than average added autofellatio(huge size) check, in case there ever will be descriptions for masturbation added workgiver for soliciting, (disabled since its mostlikely fail anyway) moved hololock to FabricationBench changed condoms to not be used during rape, unless CP has them job_driver remaster disabled settings Rjw_sexuality.RimJobWorld changed options to reset to vanilla instead of rjw added option to disable freewill for designated for comfort/mating pawns changed rape target finders to select random pawn with above average fuckability from valid targets instead of best one set rjw sex workgivers visible, so ppl can toggle them if game for some reason didnt start with them on pregnancy code cleaning cleaned pawngenerators fixed mech pregnancy removed hediff clearing for humanlike babies(which should probably make them spawn with weird alien parts?) fixed missing parts with egg birthing humanlikes added hint to Condom description changed mentalstate rape, to work for non colonists and last like other mentalstates or until satisfied set GaramRaceAddon as incompatible as im sick of all the people complaining about asexuality error after GaramRaceAddon breaking pawn generator/saves and all C# mods that loaded after it fixed check that failed adding rjw parts if there is already some hediff in bodypart added RaceProps.baseBodySize modifier to fluid production roll, so big races probably produce more stuff 4.0.2 remove debug log spam on parts size change changed default Rjw_sexuality spread to Vanilla reduced LoveEnhancer effect by 50% for rjw changed cocoon hediff to: - not bandage bleeding(which doesnt make sense) but instead rapidly heal up, can still die if too much bleeding - tend only lethal hediffs, presumably infections, chronic only tended if there danger for health support for unofficial psychology/simple slavery, Consolidated Traits - 1.1. untested but probably working renamed xml patches rearranded defs locations in xmls changed fap to masturbation added masturbation at non owned bed moved sex workgivers into on own worktype category, so royalty can also have sex removed workgivers from worktab(cept cleanself, its moved to cleaning category) disabled cell/things scaners for workgivers some other workgiver fixes changed RJW_FertilitySource/Reproduction to RJW_Fertility(should stop warning from med tab) aftersex thoughts with LoveEnhancer - pawn now considered masochists/zoophile aftersex thoughts - removes masochist HarmedMe thought with rape beating enabled removed ThoughtDef nullifiers and requirements from bestiality/rape added negative MasochistGotRapedUnconscious thougth (its not fun when you are away during your own rape) reduced masochist raped mood bonus typo and misc fixes more tips merged merge requests with public classes and some fixes 4.0.1 since LostForest intentionally breaks rjw, support for it removed and flagged it as incompatible, you should probably remove that malware added LoveEnhancer effect for normal lovin' fixed SlimeGlob error 4.0.0 added parts size changing/rerolling, works only in character editor and another Mech_Pikeman fix disabled eggs production if moving capacity less than 50% disabled eggs production for non player pawns on non player home map disabled egg message spam for non colonists/prisoners fixed operations on males flagging them as traps fixed crash at worldgen when adding rjw artificial techhediffs/parts to royalty, assume they are happy with their implants and new life fixed gaytrait VanillaTraitCheck fixed error in can_get_raped check when toberaped is set to 0 fixed pawn generator patch sometimes spawning pawns without parts in 1.1 fixed bionic penis wrong size names fixed error when applying cum to missing part split rape checks in WorkGiver_Rape to show JobFailReason if target cant be raped or rapist cant rape removed RR sexualities cleaned most harmony patches changed Hediff_PartBase into Hediff_PartBaseNatural, implants changed to Hediff_PartBaseArtifical, so purists/transhumansts should be satisfied changed mod data storage use from hugslib to game inbuild world storage changed penis big-> penis large someversionnumber 5 v1.1 patch patch patch patch patch set default sexability to 1 another fix for pikeman added horse to equine race group and another hugs/harmony update someversionnumber 4 v1.1 patch patch patch patch update for new harmony someversionnumber 3 v1.1 patch patch patch harmony, hugslib update changed Hediff_PartBase class Hediff_Implant to HediffWithComps replaced RationalRomance with vanilla sexuality, now default added hediff stages for parts sizes added patch to nerf vanilla sleeping spots into oblivion added fixed ImprovedSleepingSpot removed broken ImprovedSleepingSpot added RjwTips, maybe it even works changed descriptions for parts items to not say severed added tech and categories tag for implants set archotech reward rate to RewardStandardHighFreq set archotech deterioration rate to 0, like other archo stuff added descriptionHyperlinks for hediffs added support for Pikeman mechanoid someversionnumber 2 v1.1 patch patch fixed bondage/prostetic recipes fixed translation warning fixed sold x thoughts removed CompProperties_RoomIdentifier from beds fixed humpshroom error even more hediff descriptions hediff descriptions update implants thingCategories someversionnumber 1 v1.1 patch added additional option to meet SatisfiesSapiosexual quirk satisy int>= 15 added manipulation > 0 check for pawnHasHands check added egg production to ovis fixed crocodilian penis operation needing HemiPenis changed Udder to UdderBreasts changed Hemipenis to HemiPenis changed Submitting after rape trigger only for hostile pawns rjw parts rewrite -disabled broken breast growth -disabled broken cardinfo -remove old size hediffs, recipes,thingdefs -remove old size CS rjw parts rewrite parts data now stored in comps and can be transfered from pawn to pawn -parts are resized based on owner/reciver bodysize -parts can store data like cum/milk stuff -parts data can be affected by stuff like drugs and operations v1.1 ---------------------------------------------------------- 3.2.2 removed bondage sexability offsets, should probably completely remove all traces of sexability some changes to target finding can_fuck/fucked/rape checks, removed sexability checks added armbinder hands block stuff added condoms to Manufactured category 3.2.1 added prostrating hediff for colonists or 600 ticks stun for non colonists after rape changed mechGenitals to mechanoid implanter put max cap 100% to fertility modifier for children generation, so you don't get stupid amount of children's because of 500% fertility changed condom class to ResourceBase so its not used for medicine/operation stuff PinkysBrain: fixed mechanoind bodysize warning Funky7Monkey: Add Fertility Pills 3.2.0 added toggle to show/hide rjw parts fixed? quirk skin fetish satisfaction fixed 10 job stack error with mental randomrape removed equine genitals from ibex fixed rapealert with colonist option fixed added quirks not being saved fixed? orientation/ quirk menu not being shown in rjwdev fixed sexuality window being blank in caravans/trade added chastity belt(open), can do anal added chastity cage, cant do penis stuff added hediffs for cage/belt split genital blocking code into penis/vag blocking added ring gag(open), can do oral replaced gag with ball gag, cant do oral added blocking code for oral(blocks rim,cuni,fel,69) 3.1.1 reverted broken whoring 3.1.0 fixed humanlike baby birth faction warning enabled birthing in caravans moved postbirth humanlike baby code to sep method added above stuff to egg birthing (untested), egg humanlike babies should work like normal babies from humanlike pregnancy simplified Getting_loved jobdriver, hopefully nothing broken changed rjw patching to not completely fail if recipes/workbenches/rjw parts removed by other (medieval/fantasy) mods, there can still be errors with pawn generation but w/e slight edit cheat options descriptions fixed designators save/load issues menu for quirk adding, works at game start,hero,rjwdevmode disabled condom usage for non humans and pawns with impregnation fetish 3.0.2 enable sex need decrease while sleeping fixed ThinkAboutDiseases apply thought to wrong pawn set fertility/Reproduction priority to 199 fixed error when using condoms with animals 3.0.1 RatherNot: Pregnancy search fixed (caused pregnancy check to fail for every pregnancy but mechanoids) 3.0.0 changed CnP & BnC birth stories to non disabled child, since those mods dont fix their stories/cached disabled skills added baby state, no manipulation flag to BnC set babies skills to 0 merged rape roll_to_hit into sex_beatings patch for ThoughtDef HarmedMe so it wont trigger for masochists during rape or social fights added option to reduce rape beating to 0-1% added option to select colonist orientation when game starts added option to disable cp rape for colonists whore tab toggle, somewhat working fix? for would_fuck size_preference with has_penis_infertile aka tentacles fix for debug humanlike pregnancy birth RatherNot: Merge branch 'moddable_pregnancies' into 'Dev' Merge branch 'traits_generation_rework' into 'Dev' Merge branch 'trait_loop_fix' into 'Dev' 2.9.5 reverted loadingspeed up since in seems incompatible with some races fixed error with breeding on new (unnamed) colony fixed error with animal beating, since they have no skills 2.9.4 Mewtopian: Change RaceGroupDef to use lists of strings instead of lists of defs to avoid load order issues with adding custom parts the another mod defines. Also added some consistency checks and fixed chances logic. 2.9.3 updated condoms stuff for recent version fixed condoms defs errors, yes your can eat them now moved condoms getting to jobdriver that actually starts servicing set condoms getting to room where sex happens, potentially working for non whoring in future, maybe added some parts to vanilla animals small mod loading speed increase added maxquirks settings revert Boobitis text changes since it doesnt compile Mitt0: Add condoms for whoring Mewtopian: Merge branch 'TweakBoobitis' into 'Dev' Merge branch 'FixDoubleUdderIssue' Merge branch 'ReformQuirks' Change most fetish quirks to cause a fixed size positive attraction/satisfaction bump rather than subtle up and down tweaks. All quirks are the same commonality and everyone gets 1-5 of them. Added race based quirks (and tags to support them). Added thought for sex that triggers quirk. Changed quirk descriptions to use pawn names like traits do. 2.9.2 replaced faction check with hostility check in animal mating patch, so animals can mate everything that is not trying to kill them patch now always override vanilla mating added toggle to silence getting raped alerts added toggle to disable CPraped, breed alerts Merge branch 'Zombie_Striker/rjw-master' -typo fixes -Made it so non-violent pawns wont beat cp 2.9.1 disabled RaceGroupDef log spamm fixed ai error when trying to find corpse to fuck changed rape corpse alert to show name of corpse instead of Target fixed error when fucking corpse fix for futa animals mating, bonus - futa animal will mate everything that moves with wildmode on removed BadlyBroken check for got raped thoughts fix for DemonTentaclesPenis defname set chance to gain masochist trait when broken 100% => 5% changed begging for more thought to only work of masochists 2.9.0 added rape check for comfort designator, if rape disabled, pawn cant be marked for comfort added AddTrait_ toggles to settings patch to allow mating for wild animals (animal-on-animal toggle) change/update description of Enable animal-on-animal added dubs hygiene SatisfyThirst for cocooned pawns added debug whoring toggle RJW_wouldfuck show caravan/member money disabled colonist-colonist whoring race support for some rimworld races added isslime, isdemon tags for racegroups fix for RaceGroupDef filteredparts Merge branch 'ImproveRaceGroupDefFinding' into 'Dev' by Mewtopian Merge branch 'FixRapeEnemyNullPointer2' into 'Dev' by Mewtopian Merge branch 'FixMoreNymphStuff' into 'Dev' by Mewtopian 2.8.3 changed roll_to_skip logs to be under DebugLogJoinInBed option changed RJW_wouldfuck check to display prisoners, tamed/ wild animals split better infestation patch into separate file fixed custom races checks breaking pregnancy and who knows what else fix whore tab for factionless pawns(captured wild/spacers) -filter pawns by faction(colonist/non colonists) --filter pawns by name enable rjw widget for captured wild pawns and spacers? parts chance lists for races 2.8.2 added missing Mp synchronisers changed racegroupdefs removed race db/defs renamed specialstories xml to whorestories 2.8.1 cleanup whoring jobgiver changed designator description from Enable hookin' to Mark for whoring fix for whoring tab not showing prisoners split GetRelevantBodyPartRecord return in 2 rows so it easier to find out which .Single() causes error if any changed sorting of debug RJW WouldFuck to by name reenable curious nymphs backstories added age factor to sex need so it wont decrease below 50% if humanlike age below min sex age fix for hookup chance being reversed 2.8.0 whoring tab: -changed whoring tab to show all pawns -changed column descriptions -changed comfort prisoner column into prisoners/slaves -added experience column fix for designators, need to save game for them to update/fix removed ModSync, since it never worked and probably never will FeelingBroken: -changed FeelingBroken to apply to whole body instead of torso -FeelingBroken no longer applies to slimes -FeelingBroken applies to succubuses again, 400% harder to break than normal pawn -Broken stage adds nerves trait +8% MentalBreaks -Extremely broken stage adds nerves trait +15% MentalBreaks -changed Stages to broken body to Feeling broken, and removed "body" from stages -renamed Feeling broken classes to something sensible -added trait modifiers to speed of gain/recovery Feeling broken" --Tough trait gain twice slower and looses twice faster, Wimp - reverse --Nerves trait +200%, +150%, -150%, -200% added idol to whore backstories, removed Soldier, Street(wtf is that?) disabled add multipart recipes if there is no parts persent fixed rape thought amnesia? increased rape thought limit 5->300, set limit for same pawn to 3 increased stacklimit 1->10 of unhappy colonist whore thought added force override sexuality to Homosexual if pawn has Gay trait Mewtopian: Add boobitis, a mechanite plague that spreads through chest-to-chest contact and causes permanent breast growth if left untreated. changed the way races added into rjw, old patches will no longer work 2.7.3 changed trait gain only during appropriate sex, rapist => rape, zoo => bestiality, necro => necro Merge branch 'feature/brothel-tab' by Mitt0 fix for rape check 2.7.2 fixed error when trying to breed/rapecp and there no designators set 2.7.1 fixed beastilality error/disabled virginity 2.7.0 added designators storage, which should increase designator lookup by ~100 times, needs new game or manual designators resetting prevent demons, slimes and mechanoids from getting stds reduced maximum slider value of maxDistancetowalk to 5000, added check if it is less than 100 to use DistanceToSquared instead of pather, which should have less perfomance impact, but who knows is its even noticeable changed whoring and breeder helpers back to non static as it seems somehow contribute to lag disabled additional checks if pawn horny, etc in random rape, so if pawn gets that mental, it will actually do something fix for rape radius check error removed 60 cells radius for rape enemy disabled workgivers if direct control/hero off fix for ability to set more than 1 hero in mp update to widgets code, up to 6000% more fps renamed records yet another fix for virginity 2.6.4 changed IncreasedFertility/DecreasedFertility to apply to body, so it wont be removed by operation added patch for animal mating - instead of male gender - checks for penis disabled hooking for animals fixed 0 attraction/relations checks for hooking fix for virginity check fix for ovi not removing fertility, now both ovi remove it fix for breast growth/decrease defs AddBreastReduction by Mewtopian 2.6.3 added check to see if partner willing to fuck(since its consensual act) removed same bed requirement for consensual sex fixed direct control consensual sex condition check fixed direct control rape condition check fixed SocialCardUtilityPatch debugdata and extended/filtered with colonist/noncolonist/animals would_fuck check Merge branch 'debugData' into 'Dev', patch to SocialCardUtility to add some debug information for dev mode 2.6.2 fix for MultiAnus recipes 2.6.1 split cluster fuck of widget toggles into separate scripts fixed CP widget disabled widget box for non player/colony pawns added 50% chance futa "insect" to try fertilize eggs rather than always implanting 2.6.0 'AddBreastGrowthRecipes' by Mewtopian added trait requirement to CP/Bestiality description added toggle to disable hookups during work hours added adjustable target distance limiter for ai sex, based on pathing(pawns speed/terrain) cost, so pawns wont rush through whole map to fuck something, but will stay/check within (250 cost) ~20 cells, whoring and fapping capped at 100 cells added relationship and attraction filter for hookups(20, 50%), (0, 0% for nymphs) added debug override for cp/breed designators for cheaters added auto disable when animal-animal, bestiality disabled readded SexReassignment recipedef for other mods that are not updated fixed? error when trying to check relations of offmap partner fixed std's not (ever) working/applying, clean your rooms fixed animal designator error fixed warning for whoring RandomElement() spam changed necro, casual sex reservations from 1 to 6 changed aloneinbed checks to inbed to allow casual group sex(can only be initiated by player) some other changes you dont care about 2.5.1 fix error in Better Infestations xml patch, so it shouldnt dump error when mod not installed 2.5.0 overhauled egg pregnancies, old eggs and recipes were removed changed egging system from single race/patch/hardcode dependent to dynamic new system, rather than using predefined eggs for every race, generates generic egg that inherits properties of implanter and after being fertilized switches to fertilizer properties any pawn with female ovi can implant egg with characteristics of implanter race any pawn with male ovi can fertilize egg changing characteristics to ones of fertilizer race added settings to select implantation/fertilization mode - allow anyone/limit to same species added multiparent hive egg, so hivers can fertilize each other eggs regardless of above settings patch for better infestations to rape and egg victims changed insect birth to egg birth set demon parts tradeability to only sellable, so they shouldnt spawn at traders fix for ability to set multiple heros if 1st dies and get resurrected added hero ironman mode - one hero per save merged all repeating bondage stuff in abstract BondageBase added <isBad>false</isBad> tag to most hediffs so they dont get removed/healed by mech serums and who knows what moved contraceptive/aphrodisiac/humpshroom to separate /def/drugs changed humpshroom to foodtype, so it can be filtered from food pawn can eat added negative offset to humpshroom, so its less likely to be eaten added humpshroom to ingredients(no effect on food) changed rape enemy logic - animal will rape anyone they can, humans seek best victim(new: but will ignore targets that is already being raped) android compatibility: -no quirks for droids, always asexual orientation -no fert/infert quirk for androids -no fertility for (an)droids -no thoughts on sexchange for droids -sexuality reroll for androids when they go from genderless/asexual thing to depraved humanlike sexmachine -ability for androids to breed non android species with archotech genitals, outcome is non android 2.4.0 added new rjw parts class with multi part support, maybe in future sizes and some other stuff, needs new game or manually updating pawn healthtab rjw hediffs changed all surgery recipes, added recipes for multi part addition, only natural(red) parts can be added, parts cant be added if there is artificial part already added parts stacking toggle to debug settings added "penis", "pegdick", "tentacle" to has_multipenis check for double penetration sex fixed ability to add/remove parts to slimes, which should not be added blocks_anus condition to chastity belt, so pawn wont have sex at all, probably changed description CP rape -> comfort rape, so now fbi knocking you door chance is reduced by 0.01% improved virginity detection, now also checks for children relations added archotech_breasts to genital helper, maybe to be used in future added check of partner for vanilla lovin fix sex with partner ignoring would_fuck conditions disabled submit button for droids enabled drafting of droids in hero HC added toggles to disable fapping added sex filter for males and females - all/homo/nohomo 2.3.2 added thought GotRapedUnconscious fix vanilla animal pregnancy-> bestiality patch 2.3.1 fixed mark for breeding designator added disablers for servicing and milk designators when pawn is no longer colonist 2.3.0 added patch for nymphs to ignore "CheatedOnMe"(disabled by default) fixed necro patch ObservedRottingCorpse -> ObservedLayingRottingCorpse, which probably was not updated from B18? change to some bondage descriptions added hooking settings for: -visitors vs visitors -prisoner vs prisoner -reverse nymph homewreck(nymphs say no to sex, even if it bites them later) fixed bug that allowed setting multiple heroes re-enabled cum overlays, disabled add semen button in mp fixed overlays memory fill, overlays no longer has dif sizes, i think i've probably reduced cum amount disabled slimes cumming on themselves archo FertilityEnhancer, increases egg pregnancy gestation rate by 50% archo FertilityEnhancer, increases pregnancy gestation rate by 25% when archo FertilityEnhancer on, pawn age is ignored and fertility set to 100 reduced fertility bonus from increased fertility 50->25 reduced fertility bonus from archo fertility enhancer 60->25 added mp sync for bio - resexualization added mp sync for bio - archotech mode switch added "normal"(not ench and not blocked fertility) mode for archotech parts added sexuality change button for hero disabled slime parts change in mp fixed comfort and breeding designators stuck in "on" after releasing prisoner fixed? using xml race_filter, was applying breasts to males made installing flat chests to males not change them to traps 2.2.0 patch for pregnancy, less debug log spam futa / install part, exposed core operations cleaning fixed gizmo crash with hero HC reverted artificial parts from addedparts back to implants added hideBodyPartNames to remove part recipes added side scroll for basic and pregnancy settings randomtyping: Add mod settings to control hookups 2.1.2 randomtyping: Fix a crash in JoinInBed with offmap/dead lovers on nymphos. Add a mod option, disabled by default, to turn on spammy logging to help track down these issues. 2.1.1 fix for mating added option for bestiality to birth only humans or animals 2.1.0 added HaveSex workgiver to start sex with pawns in same bed fix for pregnancy checked/hacked state hardcore hero mode - disable controls for non hero pawns disable controls for non owned heros fix for implants to be counted toward transhumanist thoughts randomtyping: Pawns who don't have partners might hook up with other pawns who don't have partners. At least partners who are around right now... Nymphos no longer cheat on partners or homewreck. Pawns will consider AllPawns, not just FreeColonists, so that they can bang guests too. Haven't tested with prisoners but come on it's only like 98% likely to have a bug. Significantly increased the distance pawns will travel to find a hookup Added vanilla Got Some Lovin' thought to partners after casual sex Bug fix for xxx.HasNonPolyPartner() when neither RomanceDiversified or Psychology are active; it should have returned true when the pawn had any partner instead of false. vulnerability change to 3.5% per melee level instead of 5%. Don't add Got Some Lovin to whores while whoring. Add some limited casual sex mechanics and better hookups with partners! Give humpshroom addicts going through withdrawl a tiny amount of satisfaction so they aren't completely disabled. Make humpshroom grow in a reasonable amount of time, reduced price 2.0.9.2 fix for hero widget 2.0.9.1 disabled part removing patch, figure out someday how to add support to weird races, enjoy bleeding/frostbite mechanoids meanwhile 2.0.9 changed rand unity to verse slapped SyncMethod over everything rand added predictable seed, maybe figure out how it works someday rewrote widgets code(FML) desynced hero controls disabled hero controls for non owned hero disabled all workgivers for non owned hero disabled submit for non owned hero disabled all widgets when hero is imprisoned/enslaved disabled whoring in multiplayer, maybe fix it someday or not disabled mod settings in multiplayer disabled fix for stuck designators when prisoner join colony, refix someday later, maybe, clicking red designator should be enough to fix it disabled auto self cleaning(semen) for hero fix for insect pregnancy generating jelly at current map instead of mother's fix for recipe patcher, patch now works only for humanlikes and animals fix for gave virginity thought fix for error caused by factionless nymphs fix for miscarrying mechanoid pregnancies, no easy wayout added TookVirginity thought, maybe implement it some day, this year, maybe added parts remover for non humanlikes or animals, no more mechanoids frostbite? added patch for animal mating, remove vanilla pregnancy and apply rjw, maybe moved GetRapedAsComfortPrisoner record increase from any rape to rape cp only changed widget ForComfort description, added hero descriptions changed description of GetRapedAsComfortPrisoner record 2.0.8 fix for error when other mods remove Transhumanist trait fix for cum on body not being applied for futas disabled jobgivers for drafted pawns, so pawns should not try sexing while drafted renamed CumGenerator to CumFilthGenerator added girl cum/filth, maybe someday will have some use changed cum filth to spawn for penis wielders and girlcum for vagina, double mess for futas, yay!? slimes no longer generate cum filth cum on body no longer applied on receiving slimes, goes into their food need support for modsync version checking, probably broken, remove later? support for modmanager version checking 2.0.7 added ability to change slime parts at will(50% food need) for slime colonists/prisoners fixes for CnP/BnC changing gender of hero will result positive mood rather than random reduced FeelingBroken mood buff 40->20 2.0.6a fix for error when removing parts reduced SlimeGlob market value 500->1 2.0.6 multiplayer api, probably does nothing reorganized sources structure, moved overlays, pregnancy, bondage etc to mudules/ disabled semen overlays added operations support for all races, probably needs exclusion filters for mechanoids and stuff hidded restraints/cocoon operation if those hediffs not present removed needless/double operations from animals and humans fixed parts operation recipes changed sterilization -> sterilize rjw bodyparts can no longer be amputated 2.0.5b added toggle to select sexuality distribution: -RimJobWorld(default, configurable), -RationalRomance, -Psychology, -SYRIndividuality made slime organs not operable fix for egg pregnancies error changed egg birth faction inheritance: -hivers = no changes -human implanter+human fertilizer = implanter faction -human implanter+x = null(tamable) faction -animal implanter+ player fertilizer = null(tamable) faction -animal implanter+ non player fertilizer = implanter faction fixed VigorousQuirk description 2.0.5a fixes for sex settings descriptions disabled nymph think tree for non player colonists simplified? egg fertilization code changed pregnancy so if father is slime, baby will be slime disabled asexual orientation for nymphs(Rational romance can still roll asexual and stuff) renamed trait nymphomaniac => hypersexuality so it covers both genders 2.0.5 fix error for pawns not getting comps (MAI, RPP bots) fix for error when pawn tries to love downed animal fixed? non reversed interaction from passive bestiality fix error by egg considered fertilized when it isnt added kijin to cowgirl type pawn breast generation(excluding udders) changed animal pather so animal doesnt wait for pawn to reach bed changed nutrition increase from sex now requires oral sex and penis RimWorld of Magic: -succubus/warlock gain 10% mana from oral/vag/anal/dbl sex -succubus/warlock gain 25% rest, partner looses 25% rest -succubus immune to broken body debuff support for dubsbadhygiene -semen can be removed by washing - 1 at a time -all semen can be removing by using shower, bath, hottub -with dubsbadhygiene clean self workgiver disabled -oral sex increases DBH thirst need Zweifel merge (with my edits) -added slider to adjust semen on body amount (doesn't affect filth on ground) -increased base amount of semen per act, slowed down drying speed ~ 3 days -increased minimum size of overlays, so also smaller amounts should be visible now -fixed semen not being shown when pawn is sleeping -private parts semen is now also shown when pawn is positioned sideways 2.0.4 fixed abortion fix for cum error when having sex at age 0 changed pregnancy so slimes can only birth slimes changed(untested) egg pregnancy to birth implanter/queen faction for humanlikes, insect hive for insect hivers, non faction for other animals(spiders?) changed custom race genital support from pawn.kindDef.defName to pawn.kindDef.race.defName added filter/support for egging races(can implant eggs and fert them without ovis) support for nihal as egging test race added selffertilized property to eggs, implanted eggs will be fertilized by implanter 2.0.3 disabled non designated targets for breeders disabled rape beating for non human(animal) rapists changed male->futa operations jobstrings from Attaching to Adding added filters for featureless breast, no penis/vag/breast/anus excluded mechanoids for getting quirks some bondage compatibility stuff changed egging impregnation, so if insect can implant at least one egg it'll do so moved some settings from basic settings menu to debug, should not tear mod settings anymore... for now changed pregnancy detection, pregnancies now need check to determine what kind of pregnancy it is changed abortions so they cant be done until player do pregnancy check added operation to hack mechanoid, so it wont try to kill everyone once birthed changes to menu descriptions and new pregnancy description 2.0.2 added checks for infertile penis(aka tentacles and pegdick), so maybe slimes will rape and breed and stuff... or everything will be broken and rip the mod renamed cum options and descriptions, added option for cum overlays added item commonality of 0 to hololocks and keys, so maybe zombies wont drop them changed chains modifiers from -75% to 35% max removed relations: dom/sub/breeder changed insect restraints to cocoon, cocoon will tend and feed pawn mech pregnancy birth now destroys everything inside torso, failed to add blood ... oh well, we are family friendly game after all changed birthed ai from assault colony to defend ship, so it wont leave until everything is dead reduced births needed for incubator quirk to 100 2.0.1 bearlyAliveLL support for lost forest Zweifel bukkake addon ekss: Changes to bondage gear -allows hediff targeted to body parts -allows restriction of selected body part groups from melee actions, in combination with 0 manipulation restricts from using weapons too -changed harmony patch for on_remove function to allow bondage gear without hololock -changes to existing bondage items, their hediffs will be shown on relevant body parts -added one new gear for prisoners -PostLoadInit function to check and fix all bondage related hediffs to make everything save compatible (may be thrown out if too ugly, but all existing bondage gear will be needing re equipment) 2.0.0 after rape, victim that is in bed and cant move, should be put back to bed added parts override, so existing parts can be added to any race without messing with mod sources (will see how this ends) changed incubator/breeder descriptions replaced that mess of code for bestial dna inheritance with same as humanlikes (hopefully nothing broken) kids should always get father surname(if exist) changed litter size calculations, added parents fertility and breeder modifiers(this means that pawns now can actually birth twins and triplets when correctly "trained") breeder quirk now increases pregnancy speed by 125% (was 200%) gaining breeder quirk now also gives impregnation fetish gaining incubator quirk now also gives impregnation fetish hero can now mark them selves for cp, breeding, whoring fixed/changed requirement for zoophile trait gain to also account loving with animals(was only raping) increased glitter meds requirement for mech pregnancy abortion 1.9.9h fix self-impregnating mechanoids xD added recipe to "determine" mechanoid pregnancy added recipe to abort mechanoid pregnancy(uses glitter meds, i was told its sufficiently rare... idk maybe remove it later?) 1.9.9g added new mechanoid pregnancy instead of old microprocessor ones added insect birth on pawn death added mechanoid birth on pawn death maybe? added hive ai to born hostile insects added ai to birthed mechanoids, which will try to kill everyone... i mean give hugs... yes... added initialize() for pregnancy if started through "add hediff" options added days to birth info for pregnancy debug fix for loving 1.9.9f added designator icons, when pawn refuses to breed/comfort/service wip mechanoid pregnancy increased aphordisiac price 11->500 lotr compatibility? -set hololock techlevel to space -set whore beds techlevel to Medieval -set nymph techlevel to Tribal -set aphrodisiac techlevel to Medieval some other minor fixes 1.9.9e change to lovin patch which should allow other pregnancy mods(vanilla, cnp) to start pregnancy if rjw pregnancy disabled added lots of debug info for pregnancy_helper fixed pregnancy checks fix? vanilla pregnancy should now disappear if pawn lost vagina(used to be genitals) fixed error in designated breeder searching moved bestiality target searching to BreederHelper moved finding prisoners from xxx to CPRape jobgiver moved most whoring related stuff from xxx to whore_helper cosmetic changes to target finders, for readability disabled age modifiers for sex ability and sex drive, so your custom races dont need to wait few hundred years to get sex added "always show tag" for UID, Sterilization, peg arm operations made get_sex_drive() function to catch errors if pawn has no sex drive stat fixed? pawns having double vaginas or penises reduced parts sexability by around 2, so now it actually matters and sex wont always end with ahegao added missing? armbinder textures for male body 1.9.9d reverted age lock changed bond modifier for bestiality from flat +0.25 to +25% increase rape temp danger to Some, so rapes should happen even in uncomfortable temps reorder whore client filter, which should be a bit faster, probably fixed ability to set multiple hero, if other hero offmap fix error during sexuality reroll added translation strings for pregnancy and sex options/setting added options to turn on futa/trap fix males now cant be generated as futa and will be traps, was causing errors humpshrooms: -added pink glow -added +2 beauty modifier -increased price x2 -increased nutrition x2 fix/workaround for WTH mechanoids simplified surgeries, now only need to add modded races to SurgeryFlesh def added photoshop sources for designators updated glow effect on breeding icon, to be like other icons 1.9.9c fixed egg formula 1.9.9b removed fertility for pawns with ovis fixed aftersex satisfy error for fapping fixed error of calculation current insect eggs in belly fixed error when whores try to solicit non humans fixed error checking orientationless pawns(cleaning bots, etc) fixed Hediff_Submitting applying to torso instead of whole body during egg birth fixed mech pregnancy not impregnanting added chance to teleport in eggs during mech pregnancy overhauled insect eggs: changed egg pregnancy duration to bornTick=450,000*adult insect basesize*(1+1/3), in human language that means pregnancies will be shorter, mostly added abortTick = time to fertilize egg, if abortTick > bornTick - can always fertilize added eggsize 1 = 100%, if 0 eggsize - pawn can hold unlimited eggs eggs were reweighted according to hatchling size, in human language that means less eggs than random number it used to be, bigger movement debuffs and big eggs wont even fit in pawns without propper training and/or some operations detailed familiy planning calculations can be seen at rjw\Defs\HediffDefs\eggs.xlsx 1.9.9a added wip feeding-healing cocoon to replace restrains for insects, somehow its broken, fix it someday later, maybe fixed necro errors disabled nutrition transfer for necro moved "broken body" stuff from CP to all rape nerfed Archotech parts sexability to slightly above average support for insects from Alpha Animals 1.9.9 [FIX] reversed conditions for breed designators [FIX] sex initiated by female vs insect, werent egging female [CORE] split ovi's form penis infertile category, now has own [FEATURE] added ovi install operation [FEATURE] non insects with ovi's will implant Megascarab eggs, cant fertilize eggs [FEATURE] eggs implanted by colonist has additional 25 * PsychicSensitivity chance to spawn neutral insect [FEATURE] neutral eggs implanted by colonist has 50 * PsychicSensitivity chance to spawn tamed insect [FEATURE] added "hero" mode, player can directly command pawn 1.9.8b [FIX] designators should refresh/fix them selves if pawn cant be designated(loss of genitals, prisoner join colony, etc) [FIX] mechanoid "pregnancy" parent defs [COMPATIBILITY] suggested support for egg pregnancy for Docile Hive, havent tested that one 1.9.8a [FIX] fixed missing interaction icon for bestiality 1.9.8 [FEATURE] removed workgiver rape comfort prisoners [CORE] removed designators: ComfortPrisoner, RJW_ForBreeding [CORE] moved many bestiality checks to xxx.would_fuck_animal [CORE] moved FindFapLocation from job quick fap driver to giver [CORE] merged postbirth effects from human/beast pregnancies in base pregnancy [FIX] bugs in postbirth() [FIX] reversed dna inheritance [FIX] possible error with debug/vanilla birthing from bonded animal [FIX] rape enemy job checks, mechanoids can rape again [FIX] mechanoid sex rulepack error [FIX] typo fix "resentful" as "recentful" [FIX] comfortprisonerrape, should now call breeding job if comfort target is animal [FIX] drafting pawn should interrupt w/e sex they are doing [FIX] errors with bestiality birthing train [FIX] errors with bestiality/human thoughts [FIX] for other mods(psychology etc) fail to initialize pawns and crash game [FIX] forced reroll sexuality, hopefully fixes kinsley scale with psychology [BALANCE] Renamed free sex to age of consent. [FEATURE] moved animal breeder designator in place of whoring [FEATURE] made animal breeding icon/ designator [FEATURE] added direct control mode for most sex actions(pawn may refuse to do things), non violent pawns cant rape 1.9.7c Zaltys: [CORE] Renamed NymphJoininBed to JoininBed. [FIX] Fixed futa settings. [FEATURE] Expanded JoininBed job so that normal pawns can join their lover/spouse/fiancee in bed (but joining a random bed is still limited to nymphs). Ed86: fixed pawns fapping during fight or being drafted fixed noheart icon error in logs 1.9.7b fix for futa chances 1.9.7a Zaltys: [FIX] Corrected the trait checking for Vigorous quirk. [FIX] Compatibility fix for androids when using an old save (unable to test this in practice, leave feedback if it still doesn't work). [FIX] Fixed a major compatibility bug when using Psychology with RJW. [FIX] Sapiosexual quirk fix for players who aren't using Consolidated Traits mod. [COMPATIBILITY] Pawn sexuality is synced with other mods during character generation if the player is using Psychology or Individuality. (Instead of the old method of syncing it when the game starts.) 1.9.7 Settings and fixes Skömer: [FEATURE] Archotech parts (penis, vagina, breasts, anus). DegenerateMuffalo: [COMPATIBILITY] Compatibility with "Babies and Children" mod, hopefully with "CnP" as well. Fixes CnP bug with arrested kids Zaltys: [CORE] Moved Datastore to PawnData, since that's the only place it is used. [CORE] New method in PregnancyHelper for checking whether impregnation is possible. [CORE] Replaced Mod_Settings with RJWSettings. [FIX] Fixed Breed job. [FIX] Whores no longer offer services to prisoners from other factions. [FIX] Added a check to whoring to make sure that the client can reach the bed. (Thanks for DegenerateMuffalo for pointing out these problems.) [FIX] Added same check for bestiality-in-bed, which should fix the error if the animal is zone-restricted. [FIX] ChancePerHour_RapeCP incorrectly counted animal rape twice. (Credit to DegenerateMuffalo again.) [FIX] Polyamory fix for JobGiver_NymphJoininBed. Also added some randomness, so that the nymph doesn't repeatedly target the same lover (in case of multiple lovers). [FIX] Fixed NymphJoininBed not triggering if the nymph is already in the same bed with the target (which is often the case with spouses). [FEATURE] New less cluttered settings windows, with sliders where applicable. [FEATURE] Pawn sexuality. Imported from Rational Romance, Psychology, or Individuality if those are in use. Otherwise rolled randomly by RJW. Can be viewed from the RJW infocard (Bio-tab). [FEATURE] New settings for enabling STDs, rape, cum, and RJW-specific sounds. Also included settings for clothing preferences during sex, rape alert sounds, fertility age, and sexuality spread (if not using RR/Psychology/Individuality). [FEATURE] Added a re-roller for pawn sexuality, accessible from the info card. If the sexuality is inherited from another mod, this only re-rolls the quirks. Only available during pawn generation, unless you're playing in developer mode. [FEATURE] Added new optional setting to enable complex calculation of interspecies impregnation. Species of similar body type and size have high chance of impregnation, while vastly different species are close to zero. [FEATURE] Added fertility toggle for archotech penis/vagina, accessible from the infocard (through bio-tab). [FEATURE] New random quirk: Vigorous. Lowers tiredness from sex and reduces minimum time between lovin', not available to pawns with Sickly trait. Animals can also have this quirk. Ed86: added armbinders and chastity belts wearable textures, moved textures to apropriate folders *no idea how to add gags and not conflict with hairs hats and stuff, and i have little interest in wasting half day on that, so they stay invisible added quality to bdsm gear changed crafting recipes and prices(~/2) of bdsm gear, can now use steel, sliver, gold, plasteel for metal parts and hightech textiles/human/plain leather for crafting bdsm gear now has colors based on what its made of increase armbinder flamability 0.3->0.5 [bug?] game generates gear ignoring recipe, so bdsm gear most likely need own custom stuff category filters and harmony patching, not sure if its worth effort Designators changes: -masochists can be designated for comforting -zoophiles can be designated for breeding -or wildmode fixed ignoring age and other conditions for sex under certain settings fixed submitting pawn, "submitting" hediff ends and pawn can run away breaking sex, so when pawn is "submitting", hediff will be reaplied each time new pawns rapes it added missing Archotech vagina for male->futa operation fixed above commits checks, that disabled mechanoid sex fixed that mess of pregnancy above fix for broken settings and auto disable animal rape cp if bestiality disabled 1.9.6b Zaltys: [CORE] Renamed the bestiality setting for clarity. [FIX] Re-enabled animal-on-animal. [FIX] Animals can now actually rape comfort prisoners, if that setting is enabled. The range is limited to what that they can see, animals don't seek out targets like the humanlikes do. (My bad, I did all of the job testing with the console, and forgot to add it to the think trees.) [COMPATIBILITY] Fixed the Enslaved check for Simple Slavery. Ed86: [CORE] Renamed the bestiality setting for clarity. fixed broken jobdriver 1.9.6a fix for pregnancy 1.9.6 Zaltys: [CORE] Added manifest for Mod Manager. [CORE] Added more support for the sexuality tracker. [CORE] Moved some things to new SexUtility class, xxx was getting too cluttered. [CORE] Added a new method for scaling alien age to human age. This makes it easier to fix races that have broken lifespans in their racedefs. [FIX] Pawn sexuality icon was overlapping the icon from Individuality mod during pawn generation. Moved it a bit. Please leave feedback if it still overlaps with mod-added stuff. [FIX] Enabled whore price checking during pawn generation. [FIX] Female masturbation wasn't generating fluids. [FIX] Clarified some of the setting tooltip texts. [FIX] Added text fixes to fellatio, for species that have a beak.. [BALANCE] Permanent disfiguring injuries (such as scars) lower the whore price. [BALANCE] Rapist trait gain now occurs slightly slower on average. [FEATURE] Pawns now have a chance of cleaning up after themselves when they've done masturbating. Affected by traits: higher probability for Industrious/Hard Worker, lower for Lazy/Slothful/Depressive. Pawns who are incapable of Cleaning never do it. Also added the same cleaning check for whoring (some whores will clean after the customer, some expect others to do it.) [FEATURE] Added a few pawn-specific quirks such as foot fetish, increased fertility, teratophilia (attraction to monsters/disfigured), and endytophilia (clothed sex). Quirks have minor effects, and cover fetishes and paraphilias that don't have large enough impact on the gameplay to be implemented as actual traits. You can check if your pawns have any quirks by using the new icon in the Bio-tab, the effects are listed in the tooltip. Some quirks are also available to animals. [FEATURE] Added glow to the icon, which shows up if the pawn has quirks. For convenience, so you can tell at a glance when rerolling and checking enemies. (Current icons are placeholders, but work well enough for now.) [FEATURE] Added a new job that allows pawns to find a secluded spot for a quick fap if frustrated. (...or not so secluded if they have the Exhibitionist quirk). The job is available to everyone, including visitors and even idle enemies. This should allow most pawns to keep frustration in check while away from home, etc. [COMPATIBILITY] Rimworld of Magic - shapeshifted/polymorphed pawns should now be able to have sex soon after transformation. [COMPATIBILITY] Added conditionals to the trait patches, they should now work with mods that alter traits. [COMPATIBILITY] Lord of the Rims: The Third Age - genitalia are working now, but the mod removes other defs that RJW needs and may not be fully compatible. Note: Requires new save. Sorry about that. The good news is that the groundwork is largely done, so this shouldn't happen again anytime soon. Ed86: disabled ability to set designators for comfortprisoner raping and bestiality for colonists and animals comfort raping and bestiality designators can be turned on for prisoners and slaves from simple slavery nymphs will consider sexing with their partner(if they have one) before going on everyone else added options to spawn futa nymphs, natives, spacers added option to spawn genderless pawns as futas changed descriptions to dna inheritance changed all that pos code from patch pregnancy, to use either rjw pregnancies or vanilla shit code added animal-animal pregnancies(handled through rjw bestiality) added filter, so you shouldnt get notifications about non player faction pregnancies added Restraints(no one has suppiled decent name) hediff, insects will restrain non same faction pawn after egging them, easily removed with any medicine changed incubator to quirk, incubator naw affect only egg pregnancy added breeder quirk - same as incubator but for non eggs, needs only 10 births for humans or 20 for animals v1.9.5b fix for hemipenis and croc operations Zaltys: [CORE] More sprite positioning work. sexTick can be called with enablerotation: false to disable the default 'face each other' position. [CORE] Figured out a simple way to hide pawn clothing during sex, without any chance of it being lost. Added parameters to the sexTick method to determine if the pawn/partner should be drawn nude, though at the moment everything defaults to nude. If a job breaks, may result in the pawn getting stuck nude for a short while, until the game refreshes clothing. [BALANCE] Added age modifier for whore prices. [FEATURE] Added a new info card for RJW-related stats. Accessible from the new icon in the Bio tab. Very bare-bones at the moment, the only thing it shows for now is the price range for whoring. Will be expanded in later updates. v1.9.5a fix for pregnancy error mod menu rearangement fix? for hololock crafting with CE "ComplexFurniture" research requirement for for whore beds v1.9.5 Fix for mechanoid 'rape' and implanting. [FIX] Corpse violation was overloading to the wrong method in some cases, causing errors. Fixed. [FIX] Nymphomaniac trait was factored multiple times for sex need. Removed the duplicate, adjusted sex drive increase from the trait itself to compensate. [FIX] Other modifications to the sex need calculations. Age was factored in twice. [CORE] Added basic positioning code to JobDriver_GettinRaped. Pawns should now usually have sex face-to-face or from behind, instead of in completely random position. [BALANCE] Made necrophilia much rarer for pawns without the trait. [BALANCE] Made zoophilia rarer for pawns without the trait, and made non-zoos pickier about the targets (unless frustrated). [BALANCE] Adjusted the whore prices. Males were getting paid far less, made it more even. Added more trait adjustments. As before, Greedy/Beautiful pawns still get the best prices, and the bedroom quality (and privacy) affects the price a lot. [BALANCE] Soliciting for customers now slightly increases Social XP. [BALANCE] Higher Social skill slightly improves the chance of successful solicitation. [BALANCE] Sexually frustrated customers are more likely to accept. [FEATURE] Converted the old whore beds into regular furniture (since whores can use any bed nowadays), for more furniture variety. The old luxury whore bed is now a slightly less expensive version of a royal bed, and the whore sleeping spot is now an improved version that's between a sleeping spot and the normal low-tier bed in effectiveness: quick and cheap to build. Better than sleeping on floor and useful in early game, but you probably want to upgrade to regular bed as soon as possible. Descriptions and names may need further work. [FEATURE] Added 69 as a new sex type. Cannot result in pregnancy, obviously. Frequency modifiable in settings, as usual. v1.9.4c insect eggs kill off other pregnancies pawns cant get pregnancies while having eggs fix for non futa female rapin vulrability check added 1h cooldown heddif to enemy rapist, so job wont dump errors and freeze pawn/game added a bunch of animal and insect checks, so rape enemy shouldnt trigger if those options disabled made/separated enemyrapeByhumanlikes, like other classes v1.9.4b fix for rape enemy, so it wont rape while enemies around v1.9.4a fix for rape enemy not raping v1.9.4 Zaltys: [FIX] Extended the list of jobs that can be interrupted by whores, this should make whores considerably more active. [FIX] Animals with non-standard life-stages were not considered valid targets for various jobs. Fixed by adding a check for lifestage reproductiveness. [FIX] Engaging in lovin' with partners that have minimal sex ability (such as corpses) could result in the pawn getting no satisfaction at all, causing them to be permanently stuck at frustrated. Fixed by adding a minimum. (Humpshroom addiction can still result in zero satisfaction.) [BALANCE] Made pawns less likely to engage in necrophilia when sated. [BALANCE] Added vulnerability modifiers to a few core traits (Wimp, Tough, Masochist,..) [FEATURE] Added crocodilian penis for some animal species. (Alligator, crocodile, quinkana, sarcosuchus, etc) [CORE] Consolidated common sex checks into a single thinknode (ThinkNode_ConditionalSexChecks), which makes it easier to include/update important checks for various jobs. [CORE] Removed dummy privates, wrote a new comp for automatically adding genitalia when the pawn is spawned. Far faster than the old method of doing it. Should be compatible with old saves, though some weirdness may occur. [CORE] Added a basic but functional sexuality tracker (similar to Kinsey scale) to the above comp. Currently hidden from players and not actually used in calculations, just included as a proof of concept. [FIX] Added some null checks. [FIX] Removed a bad check from CP rape, should now work at intended frequency. [FIX] Some thinktree fixes for pawns that don't need to eat. [BALANCE] Made pawns less likely to engage in zoophilia if they have a partner. Unless the partner is an animal (there's mods for that). [BALANCE] Made pawns slightly less likely to engage in necrophilia if they have a partner. Ed86: raping broken prisoner reduces its resistance to recruit attempts fixed fertility wrong end age curve fixed pregnancies for new parts comp added futa and parents support for vanila/debug preg v1.9.3 Zaltys: [FIX] Rewrote the code for sexual talk topics. [FIX] Whorin' wasn't triggering properly. [FIX] Other miscellaneous fixes to the whorin' checks. They should now properly give freebies to colonists that they like. [FIX] Fixed forced handjob text. [FIX] Removed unnecessary can_be_fucked check from whores. With the new sex system, there's always something that a whore can do, such as handjobs or oral. [FIX] Restored RandomRape job. Only used by pawns with Rapist trait. Trigger frequency might need tuning. [FIX] Alien races were using human lifespan when determining sex frequency. Scaled it to their actual lifespan. [FIX] Enabled determine pregnancy for futas and aliens with non-standard life stages. [FIX] Patched in animal recipes. Sterlization and such should now work for most mod-added animals. [FIX] Animal-on-animal should no longer target animals outside of allowed zones. [CORE] Cleaned up some of the old unused configs and old redundant code. Still much left to do. [BALANCE] Adjusted bestiality chances. Pawns with no prior experience in bestiality are less likely to engage in it for the first time. And pawns who lack the Zoophile trait will attempt to find other outlets first. [BALANCE] Same for necrophilia: pawns are far less likely to engage in necrophilia for the first time. [BALANCE] Males are less likely to rim or fist during straight sex. [BALANCE] Adjusted trait effects on CP rape. Bloodlust trait now only affects frequency if rape beating is enabled. Removed the gender factor which made females rape less, now it depends on traits. [BALANCE] Pawns are more likely to fap if they're alone. [FEATURE] Added new settings that allow visitors and animals to rape comfort prisoners if enabled. [FEATURE] Added a sex drive stat (in Social category), which affects how quickly the sex need decays. Among other things, this means that old pawns no longer get as easily frustrated by lack of sex. Some traits affect sex drive: Nymphomaniac raises it, Ascetic and Prude (from Psychology) lower it. [FEATURE] If a pawn is trying to rape a relative, it's now mentioned in the alert. Ed86: fixes for nymph generation added ability to set chance to spawn male nymphs moved fertility and pregnancy filter to xml, like with sexneeds clean up "whore" backstories set Incubator commonality to 0.001 so it wont throw errors add vagina operations for males -> futa fixes for rape CP, breeder helper v1.9.2 Zaltys: Fixed a bug in baby generation which allowed animals to get a hediff meant for human babies. Also clarified the hediff name, since 'child not working' could be mistaken as an error. Improved logging for forced handjobs. Fixed necrophilia error from trying to violate corpses that don't rot (mechanoids, weird mod-added creatures such as summons, etc). Disallowed female zoos from taking wild animals to bed, because letting them inside the base can be problematic (and most can't get past doors anyway). Fixed incorrect colonist-on-animal thoughts. Whores now try to refrain from random fappin' (so they can spend more time servicing visitors/colonists), unless they're sexually frustrated. Added a pregnancy filter for races that cannot get pregnant (undead, etc). ' Colonists with Kind trait are less likely to rape. Added trait inheritance for [SYR] Individuality and Westerado traits. Added fail reasons to targeted Comfort Prisoner rape (on right-click); it has so many checks that it was often unclear why it wouldn't work.Added udders for animals (where appropriate, such as cows and muffalos), and a 'featureless chest' type for non-mammalian humanoids. Removed breasts from various non-mammalian animals, mostly reptiles and avians. Checked most of the common mods, but probably missed some animals. If you spot any species that have mammaries when they shouldn't, report them in the thread so they can be fixed. v1.9.1 Zaltys: Rewrote the processSex functionality, which fixes several old bugs (no more oral-only) and allows for much wider variety of sex. Merged animals into the same function. Some of the messages might have the initiator and receiver mixed up, please leave feedback if you notice any oddness. Centralized the ticks-to-next-lovin' increase and satisfy into afterSex, to ensure that those aren't skipped. Changed Comfort Prisoner Rape from Wardening to BasicWorker. Because it being in Wardening meant that pawns incapable of Social could never do it. Added support for Alien Humanoid Framework 2.0 traits. Xenophobes are less attracted to alien species, and xenophiles less attracted to their own species. Made zoophiles less attracted to humanlikes, and reluctant to pay for humanoid whores. Added basic age scaling for non-human races with long lifespans, when determining attraction. Enabled cum splatter from solo acts. Lowered cleaning time for cum to balance the increased output. Added new thoughts for BestialityForFemale job, for the rare cases where the female lacks the zoophile trait. Non-zoos almost never do that job, but it can happen if they have no other outlets. Previously this counted as 'raped by animal' and massive mood loss, even though initiated by the colonist. Set the min-ticks-to-next-lovin' counter lower for insects on generation. Whores lacked a tick check and could instantly jump from one job to another. Forced them to recover a bit between jobs, but not as long as regular pawns. Also changed the sex type balance for whoring: handjobs and fellatio are more common in whoring than in other job types. Lesbian sex lacked variety. Added fingering and scissoring to the available sex types. Added mutual masturbation and fisting. Added settings for sex type frequency, so you can lower the frequency of ones you don't want to see. Lowering the vanilla sex (vaginal and anal) is not recommended, makes things go weird. Added interspecies animal-on-animal breeding. Setting disabled by default. Added setting for necrophilia, disabled by default. Disabled the 'observed corpse' debuff for necros. Text fixes for logging. Added text variation to make some types clearer. Ed86: removed get_sex_ability from animals check, since they dont have it(always 100%) fixed error when trying to sexualize dead pawn changed demonic and slime parts description, so they tell that they are useless for humans, for now added missing craft hydraulic penis recipe to machining bench crafting hydraulics now requires Prosthetics research, Bionics - Bionics moved bionic crafting to fabrication bench fixed game spawning male nymphs broken nymphs, spawn with broken body reduced nymph spawn age 20->18 reduced festive nymph shooting increased festive nymph melee added chance to spawn festive nymph with rapist trait v1.9.0c Zaltys: Patched in nearly hundred sexual conversation topics. Currently set as rare, so pawns don't talk about sex all the day. Small fix that should stop babies from inheriting conflicting trait combos. Disabled the 'allowed me to get raped' thoughts for animal-on-female if the target is a zoophile. Didn't seem right that they'd hate the bystanders, despite getting a mood bonus from it. Fixed a stupid mistake in the trait inheritance checking. Didn't break anything, but it certainly didn't work either. Fixed the whoring target selection and spam. Ed86: switched Genital_Helper to public class crawls under christmas tree with bottle of vodka and salad, waiting for presents v1.9.0b Zaltys: Reset the ticks at sexualization, so generated pawns (esp. animals) don't always start lovin' as their first action. Couple of fixes to memories/thoughts, those could generate rare errors on female-on-animal. Also required for any animal-on-animal that might get added later. Added a simpler way of checking if an another mod is loaded. Works regardless of load order. Renamed abstract bases to avoid overwriting vanilla ones, to fix some mod conflicts if RJW is not loaded last. (Loading it last is still advisable, but not everyone pays attention to that..) v1.9.0a preg fix v1.9.0 Zaltys: Fixed the motes for bestiality. Which also fixes the 'wild animals don't always consent'-functionality. Added functions for checking prude and lecher traits (from other mods). Added patches for some conflicting traits (no more prude or asexual nymphos, etc). Added couple of low-impact thoughts for whoring attempts. Used the thoughts to make sure that a whore doesn't constantly bother same visitors or colonists. Enabled hook up attempts for prisoners, since they already have thoughttree for that. Most likely to try to target other prisoners or warden, whoever is around. Refactored JobGiver_Bestiality: removed redundant code and improved speed. Also improved target picking further, and made it so that drunk or high colonists may make unwise choices when picking targets. Added hemipenis (for snakes and various reptiles). Might add multi-penetration support for those at some later date. Ed86: fix traps considered females after surgery fix error preventing animal rape pawns fix error when trying to sexualize dead pawns added support for generic rim insects, mechanoids, androids added Masturbation, DoublePenetration, Boobjob, Handjob, Footjob types of sex added thoughts for incubator (empty/full/eggs), should implement them someday moved process_breeding to xxx merged necro aftersex with aftersex merged aftersex with process sex/bestiality, so now outcome of sex is what you see on log/social tab impregnation happens after vaginal/doublepenetration sex renamed JobDriver_Bestiality to JobDriver_BestialityForMale added check for futa animals when breeding breeding by animal increases broken body value breeding and bestiality for female with bounded animal is counted as non rape zoophile trait gain check now includes rapes of/by animals and insects countffsexwith... now includes rapes description changes for records Egg pregnancy: added contractions for eggs birthing(dirty hack using submit hediff) eggs now stay inside for full duration, if not fertilized -> dead eggs born abortion period now functions as fertilization period i think ive changed message when eggs born, should be less annoying some code cleaning not sure if any of below works nymphos and psychopaths(maybe other pawns in future) can now(probably) violate fresh corpses psychopaths should gain positive thought for violating corpse think nodes: enabled frustrated condition, used by nymphs added descriptions for think nodes think trees: exchanged priorities for prisoner whoring/rapecp moved breed from zoophile tree to animal when nymph is frustrated, it may violate corpse or random rape v1.8.9a fix for pregnancy if cnp not installed re-enabled patch for vanila preg, just in case added pregnancy detection based on body type/gestation time -> thin - 25%, female - 35%, others 50% v1.8.9 some WIP stuff added sex/rape records with humanlikes fix for sex records, so all sex should be accounted(fapping not included), and correctly distribute traits fix for error when trying to sexualize hon humans fixed error for birthing when father no longer exist fixed existing insect egg check always returning 0 disabled cnp option and pregnancy support added cleanup for vanilla pregnancy borrowed some code from cnp: should give cnp birth thoughts if cnp installed, drop babies next to mother bed, drown room in birth fluids added reduce pawn Rest need during sex: double speed for passive pawns, triple for active pawn disable increase loving ticks on job fail added need sex check for jobs, so pawns should seek satisfaction when in need some pathing checks for jobs try to normalize human fertility, 100% at 18(was 23), not sure about mod races, but fuck them with their stupid ages, maybe add toggle in next version? asexual check for sex_need so it doesn't decrease for pawns not interested in sex v1.8.8 Zaltys: Removed the tick increase from failed job, since that stops nymphs from seeking other activities. Changed the age scaling, to account for modded races with non-human lifespans. Rewrote fertility to work for modded races/animals of any lifespan. No fapping while in cryosleep. Adjusted distance checks. Added motes. Colonists were unable to open doors, fixed. Animals were unable to pass doors, fixed. Extra check to make sure that everyone is sexualized. Added traits from Consolidated Traits mod Added alert for failed attempt at bestiality. Wild animals may flee or attack when bothered Fix to enable some pawns to have sex again. Wild animals may flee from zoo + bug fix for zone restrictions Merged tame and bonded animals into one check, added distance and size checks to partner selection Added check to ensure that nymph can move to target Added check to make breeding fail if target is unreachable Minor balancing, drunk colonists now less picky when trying to get laid Ed86: rjw pregnancies: children are now sexualized at birth there is 25% per futa parent to birth futa child cross-breeding: there is a 10% chance child will inherit mother genitals there is a 10% chance child will inherit father genitals anuses are now always added, even if pawn is genderless, everyone has to poop right? disabled "mechanoid" genitals, so those roombas shouldnt spawn with hydraulic dicks n stuff added humanoid check for hydraulic and bionic parts fixed aphrodisiac effect from smokeleaf to humpshroom added egg removal recipes for ROMA_Spiders changed whore serving colonist chance 75%->50% and added check for colonist sex need, should reduce them harrasing 1 colonist and tend to those in need breaking pawns removes negative "raped" effects/relations pawn becoming zoophile removes negative zoo effects added LOS check for "allowed me to get raped", so no more seeing through walls disabled stripping during rape, probably needs fixing for weather and some races renamed fappin' to masturbatin' v1.8.7_ed86 Zaltys: added racoon penis added some Psychology support some fixes Ed86: fixed reversed records of insect/animal sex added records for birthing humans/animals/insects added incubator trait - doubles preg speed, awarded after 1000 egg births set limit impantable to eggs - 100/200 for incubator birthing insect spawns insect 1-3 jelly, in incubator *2 v1.8.6_ed86 added OrganicAgeless for race/genital patch added queen/implanter property to eggs, if its player faction +25% chance to birth tamed insects filter for Psychology traits fixed breeding detection for some(all?) animals log/social interaction for core loving fix for syphilis kidney fix for loving fix for humpshroom addiction error fix for menu translation error v1.8.5_ed86 added menu options for rjw pregnancies renamed sexhelper->genderhelper moved pregnancy related stuff to separate folder moved pregnancy related stuff to PregnancyHelper moved fertility options to mod menu separated pregnancy in 2 classes human/bestial added father debug string to rjw pregnancies some other fixes for pregnancies added single name handler, so now all naming handled through single function, which should prevent this mess scripts from crashing with red errors support for Rim of Madness - Arachnophobia made insect pregnancy more configurable, you can edit egg count and hatch time in Hediffs_EnemyImplants def, or add your own stuff for other custom insects increased eggs implants to 10-30 depending on insect, increased eggs moving penalty based on insect size up to -3% per egg added messages for insect birthing changed chance of generating tamable insect: -if father is in insect faction -5% -if not insect faction 10% -if player faction 25% removed outdated korean removed trait limit for birthed pawns renamed bodypart chest -> breasts renamed "normal" parts to average bondage sprites by Bucky(to be impemented later) added Aphrodisiac made from humpshrooms(seems to cause error when ends) fixed for animals with bionic parts fixed for sex need calculation fixes for zoophiliacs initiating sex fixed std error caused by generating broken pawns during world generation v1.8.4_ed86 CombatExtended patch - no longer undress rape victim and crash with red error rprobable fix for scenarios randomly adding bondage hediffs at game start without actual bondage gear fix for CP animal raping fixed badly broken function so now it works broken pawns now gain masochist trait and loose rapist if they had one enamed parts cat->feline, dogs->canine, horses->equine removed debuffs for broken body, other than Consciousness Pregnancy stuff: overhaul of impregnate function to handle all pregnancies bestial pregnancy birth adds Tameness fixes for insect egg pregnancy added ability to set female insects as breeders so they can implant eggs insects sexualized at birth insects has 10% to have null faction instead of fathers "Insect", so now you can grow own hive and not get eaten, probably added 1% penalty to Moving per egg increased eggs implanted 1-2 -> 5-10 Aftersex pawn now gains: - rapist trait if it had 10+ sex and 10% is rape and its not a masochist - zoophile trait if it had 10+ sex and 50+% with animals - necrophile trait if it had 10+ sex and 50+% with dead HumpShroom overhaul: - HumpShroom now behave like shrooms, grow in dark for 40 days, can be grown in Hydroponics (not sure it game spawns them in caves) - fertility sensetivity reduced 100%->25% - Yield reduced 3->2 - addictiveness raised 1%->5% - fixed addiction giving ambrosia effect - addiction adds nympho trait - addiction no longer raises sexneed by 50 - addiction reduces sexneed tick by 50% - Induced libido increases sexneed tick by 300% - addiction w/o Induced libido adds no satisfaction or joy v1.8.3_ed86 fertility fix for custom races with weir life stages(its now not 0) fixed translation warnings for vb project fixed? generic genitals applied to droids changed faction of babies born by prisoners to null, seems previous fix was for normal pregnancy birthing and this one for rjw? Designations retex by SlicedBread v1.8.2_ed86 added operation to determine pregnancy by Ziehn fixed some obsolete translation warnings for 1.0, many more to fix fixed error when trying to remove bondage gear pawns can now equip bondage on downed/prostrating pawns instead of prisoners only pawns can now unequip bondage from other pawns(if there is a key) fixed? getting pregnant when chance is set to 0(maybe it wasnt broken but testing with 1/100 chance is...) added Torso tag for genitals/breasts/anuses, so they should be protected by armor now, probably reduced chance to hit genitals 2%->.5% reduced chance to hit anus 1%->.1% reduced parts frostbite vulrability 1%->.1% rework ChjDroid - Androids parts assigment: -droids have no parts -androids have parts based on backstories --social droids get hydraulics --sex and idol droids get bionics --substitute droids get normal parts like other humanlikes --other get nothing added more modded races support for genitals by Cypress added filters to block fertility and sex need if pawn has no genitals added sex needs filter xml, to filter out races that should have no sex needs (ChjDroidColonist,ChjBattleDroidColonist,TM_Undead), you can add your own races there changed fertility, sex need calculation based on life stages: -humanlikes(5 life stages) - start rising at Teen stage -animals(3 life stages) - start rising at Juvenile stage -modded stuff(1 life stage) - start at 0 -modded stuff(x life stages) - start rising at 13 yo *ideally modded stuff should be implemented through xml filter with set teen and adult ages, but i have no idea how or want to go through dozens modded races adding support v1.8.1_ed86 possible fix for possible error with pawn posture? fixed social interactions broken with "many fixed bugs" of rimworld 1.0 fixed? babies born belong to mother faction or none if mother is a prisoner, no more kids/mother killing, unless you really want to removed all(broken) translations, so far 1.0 only support english and korean added peg arms, now all your subjects can be quad pegged... for science! added options to change fertility drops to _config.xml, should be moved to mod menu once unstable version menu is fixed v1.8.0_ed86_1.0 nothing new or old or whatever v1.8.0_ed86_B19 fixed prisoner surgeries fixed animal/combat rape fixed necro rape fixed missing surgery recipes for stuff added in prev version v1.7.0_ed86_B19_testing9 limited "allowed_me_to_get_raped" social debuff range to 15 instead whole map, its also doesnt apply if "bystander" is downed and cannot help added cat/dog/horse/dragon -> tight/loose/gape/gape vaginas added "generic" body parts for unsupported pawns/animals?/ rather than using normal human ones added micro vaginas,anuses added flat breasts added gaping vaginas,anuses added slime globs for, maybe, in future, changing slime pawns genitals fixed bionic futa creation other fixes to bionic penis changed/fixed vulrability calculation -> downed/lying down/sleeping/resting or pawns with armbinder no longer contribute melee stat to vulrability reduction, this allows pawns with high stats to be raped, so close your doors at night fixed? failed futa operations, instead of adding penis and loosing vagina, pawn keeps vagina rearanged pawn parts/recipes in mod structure fixed bug related to hitting "Chest"/ "chest" operations added support/mechgenitals for Lancer mechanoid[B19] removed def "InsectGenitals" since it is not used added HediffDefs for yokes, hand/leg bondage, open/ring gags, might actually add those items later, if someone finds sprites reduced eating with gag to 0 v1.7.0_ed86_B19_testing8 change to part removing recipies hide surgeries with missing body parts reworked fertility, should slightly increase max female fertility age ↲ fertility now decreases in adult life stage instead of pawn life, this should help with races like Asari(though they are still broken and wont be fertile until they are teens, which is 300 yo) probably fixed few possible errors v1.7.0_Atrer_B19_testing7 reversed oral logic add Korean translation fixes from exoxe updated genital assignment patterns animals no longer hurt zoophiles while breeding them v1.7.0_Atrer_B19_testing6 remove vestigial sex SkillDefs v1.7.0_Atrer_B19_testing5 raped by animal changed to breeding differentiated a masochist getting bred from a zoophile getting bred, one doesn't mind it, the other likes it added oral sex (rimming, cunnilingus, fellatio) reworked breeding system female animals will prefer to approach males for breeding v1.7.0_ed86_B19_testing4 fixed breeding designation stuck when pawn no longer prisoner fixed social tab added social descriptions for vaginal added social descriptions for sex/rape v1.7.0_ed86_B19_testing3 various fixes for B19/ port to B19 fixes for items/genitals descriptions fixes for nymph stories fix for genital distribution fixed sex need stat for pawns with long lives removed Prosthophile traits from nymps, probably removed in b19? updated korean translation? moved/removed/disabled english translation v1.7.0_ed86_B19_testing2 various fixes for B19/ port to B19 fixes for items/genitals descriptions fixes for nymph stories fix for genital distribution fixed sex need stat for pawns with long lives removed Prosthophile traits from nymps, probably removed in b19? updated korean translation? moved/removed/disabled english translation v1.7.0_ed86 fixes for genital parts assignment changed descriptions of few items, ex: breast now use cup size rather than small-huge added debuffs to Moving and Manipulation for breasts added debuffs to Moving for penises monstergirls stuff: added slime parts, provide best experience, not implantable, all slimes are futas, slime tentacles(penis) are infertile added demon parts, slightly worse than bionics, not implantable, demons/impmother has 25% to get tentacle penis for female or 2nd penis for male. baphomet has 50% to have horse penis instead of demon reversed cowgirls breast size generation -> huge(40%)-> big(40%)-> normal(10%)-> small(10%) v1.6.9_ed86 nymphs only service colonists, not prisoner scum! disabled fapping in medical beds(ew! dude!) added few checks to prevent zoophiles doing their stuff if bestiality disabled changed target selection for sex, disabled distance and fuckability checks (this resulted mostly only single pawn/animal get raped, now its random as long as pawn meets minimal fuckability of 10%(have genitals etc)) rape/prisoner rape: zoophiles will look for animals to rape normal pawns will try to rape prisoners 1st, then colonists removed animal prisoner rape, you cant imprison animals, right? bestiality sex target selection: zoophiles will look for animals in this priority: -bond animal, -colony animal, -wild animals v1.6.8_ed86 added cat penises to feline animals, Orassans, Neko(is there such race?) added dog penises to canine animals added dragon penises for "dragon" races, not sure if there any added horse penises to horses, dryads, centaurs added hydraulics(10% for bionics) for droid and android races disabled breasts for insects, should probably disable for all animals until there is belivable replacement v1.6.7_ed86 added hydraulic penis mechanoids(or atleast what rjw considers mechanoids) now use mainly hydraulics no bionics for savages: limited spawn of hydraulics and bionics to factions with techlevel: Spacer, Ultra, Transcendent added Ovipositors for insects(only affects new insects) removed peg dick from pawn generation, still can be crafted reduced peg dick sexability(c'mon its a log... unless you're a vegan and despice meat sticks xD) added peg dick to getsex definition as male(that probably wont change anything but who knows) added new has_penis_infertile function, so characters with peg dick(maybe there will be something more later like dildos strapons or something) can rape achieving extremly broken body now arwards pawn with masochism trait(doesnt work for some reason, fix later, maybe) added skill requirements for crafting genitals n stuff added skill requirements for attaching genitals n stuff removed lots of spaces in xml's and cs's v1.6.6_rwg fixed reported bugs -masochist thoughts are not inversed -animal pregnancy does not throw errors -prevented whorebeds from showing up anywhere. Their defs are still in, hopefully to provide back compatibility -added contraceptive pills they look like CnP ones but are pink (CnP contraceptive doesn't work for RJW ) -numerous fixes and tweaks to CnP-RJW introperation, bumps still remains but things are tolerable v1.6.5_ed86 added toggle for usage of RimWorldChildren pregnancy for human-human(i think that pregnancy doesnt work) reduced rape debuffs time from 40 days to 10 added filter traits for raping GotRaped - removed by Masochist trait GotRapedByAnimal - removed by Masochist,Zoophile trait MasochistGotRaped - needs Masochist trait MasochistGotRapedByAnimal - needs Masochist,Zoophile trait HateMyRapist - removed by Masochist trait KindaLikeMyRapist - needs Masochist trait AllowedMeToGetRaped - removed by Masochist trait v1.6.4_rwg -Babies can inherit traits from parents. The file Defs/NonInheritedTraits.xml can be edited to filter out particular trait from inheritance. -Reworked how RJW designations (Comfort, Whore, Breed) work. (Fixed comfort designation disappearing when multiple maps are active) -Whoring is now determined by designation not by bed. Whorebeds not buildable anymore. -Whoring designation works on prisoners. -Added unhappy thoughts on whoring (diminishes with experience). Some backstories (defined in Defs/SpecialBackstories.xml) count as a lot of experience. Prisoners get different more severe mood hit. -Now there is special gizmo, that encompasses all the designations, clicking on its subelements alters the settings for all selected pawns. -Added animal designation used to select beasts that are allowed to use breeding designated pawns. -Added mod setting toggles for enabling zoophilia and for enabling weird cross-species pregnancies. -Added max search radius for a whore (equals 100 tiles) they won't try clients further away from them. -Numerous balance tweaks to defs. -Broken body counts as masochist when sex is in question. -Added aphrodisiac plant. Based off ambosia, reduces the sex satisfaction, addictive but addiction does not do much. -Low sex meter reduces the timer between loving interactions. v1.6.3a_rwg -fixed bug in designator drawing now it is possible to play with mod -Added adoption (Claim Child operation). If you see any child laying around, you don't need to trouble yourself with warden persuation. You can designate child for this operation and it will be included in your faction right away. This is doen as surgery operation and requires medicine (but doesn't fail). I cannot get it work otherwise, chadcode just shits some unintelligible errors happening a dozen calls away from the mod code. Consider the med requirement an adoption census. v1.6.3_rwg Anonimous release -Fixed broken body hediff to give the mood offsets as it should. (btw, if someone didn't understand that, it probably be broken mind, but the meaning was lost in translation by original author) -Reworked pregnancy. It is now even more compatible with Children and Pregnacy mod. If the latter is acitve, its pregnancy system is used if possible. Otherwise, rjw simpler pregnancy is used. -RJW pregnancy works for any pair of humanlike pawns. There are settings determining the race of the resulting child. -RJW pregnancy defines the child at the moment of conception. Loading saves should not reroll the newborn. -Added menu toggle to deactivate human-animal pregnancy (why would anyone need that? It's boring.) -Added animal equivalent of designate for comfort. Animals beat prisoners less often. -Animals born from human mothers receive random training in varied skills up to half of their max training. -Animal babies use different relation than normal children, if the animal dies its human parent doesn't get as significant debuff as with human child. -Fixed (probably?) fathers disappearing from child relations due to garbage collection . At least inheritance information is now preserved for sure. Does not apply to CnP, but it wasn't probably affected much anyway (due to both parents typically staying in the game for longer than ordinary raider). v1.6.2_rwg Anonimous release -Added "submit" combat ability. Makes colonist lay down and stop resistance. Colonist is incapacitated for 1-2 hours. If you rescue them, the effect disappears right away. (Being little sissies they are, they won't dismount themselves off strong arms of their savior unless you make them to.) Make sure that nearby enemies are only metaphorically after your meat. Check mod settings in options if you don't see the button. -Bionic genitals are recognized by prothofiles -Added transgender surgery, pawns won't be happy about such changes. Added futa. -Allowed prisoners to use comfort designations -Added message about unhealthy whores -Vulnerability calculations now include manipulation -Futa now can impregnate -DNA inheritance options now have meaningful descriptions and are actually used in game -Beatings are not continued beyond the severe threshold. Threshold is higher. Bloodlusty pawns still beat victims. -Pawns caught in a swarm of rapist animals will not starve to death anymore. -Pawns won't rape their friends (as designation) --includes Hoge's branch additions: -whoring is not cheating (There's still chance, thankfully) -broken body system extension (currently broken, duh) -hostages can now get raped during rescue quests -raping enemy now comes after all enemies are neutralized full list: -Add Compatibility to Children, School and Learning Mod(maybe not complete. -Add IUD temporary sterilizer. Install IUD to vagina to prevent pregnant. (experimental. -Add Female zoophilia. (sex with animals like whore. -Add require insect jelly to remove insect eggs need. -Add require holokey to remove mech implants. Change -less chance whoring with hate person. -Remove insect eggs when victim dead. -Don't feel "cheated on me" when partner work on whore. Improve -Whore pay from all caravan member. Allow whoring with Traveler, Visitor. -Search fuck target improve. Now try to search free victim. -Don't stay to rape colony so longer. -ViolateCorpse will check victim beauty(breast size,cuteness,etc... -Feel broke will increase gradually. (around 30 days everyday raping to max level -Fertility now depend on their life-stage and life-expectancy. (now all races can pregnant if not too old. Fixed -Fix null-reference on DoBirth(). -Fix whore count was not increased. -Fix whore bed is not affect end-table and dresser. -Fix anus vagina bug. v1.6.1a - Disabled dummy sex skill (it was experimental and was accidentally included in the 1.6.1-experimental). If you are updating from version 1.6.1-experimental, you'll experience missing reference errors about sex skill. It's safe to ignore them. Make a new save and reload it, and you'll see no more error. v1.6.1-exp - Reintegrated with Architect Sense mod by Fluffy. The whore beds are now regrouped into one category. - Fixed null reference exception on CP rape function. - Fixed whore reservation bug. It's now safe to assign more than one whore. - Fixed rape notification bug. - Minor 'mod settings' layout fix. - Added Russian translation by asdiky. - Added possibility to add more skill slot to the character tab. (there are no new skills yet) v1.6.0 Known bugs (new): - Exception: Whore unable to reserve target. To avoid this, don't assign more than one whore. - Sometimes on a rare occasion, there gonna be exceptions about pawns unable to reserve things. Changes: - Compatibility patch for Rimworld B18. - Removed integration with Children & Pregnancy mod. - Removed integration with Architect Sense mod. - Removed integration with Romance Diversified mod. - Updated Korean translation by NEPH. - Fixed visitors & traders raping CPs bug. - Fixed nymphs backstory layout bug. - Changed random rape mechanics. It's now triggered by mental breakdown only. (Will make an option for it) - Added random rape mental breakdown. (This feature is experimental and may not work as intended) - Added a notification when somebody is attempting a rape. - Added a notification when somebody is getting raped. - Changed some descriptions. v1.5.4j changes: - Insects will now inject their eggs while raping your incapacitated colonists. (by hogehoge1942) - Mechanoids will now inject microcomputers while raping your incapacitated colonists. The microcomputer teleports random cum into victim's vagina and makes her pregnant by random pawn. (by hogehoge1942) - Added surgeries to remove insect eggs and microcomputers by hogehoge1942. - Fixed sex need moods affecting under-aged pawns bug. - Under-aged sex need is now frozen. (Will make it hidden for under-aged pawns in the future) - Fixed reappearing masochist social thoughts bug. - Disabled intrusive whore failed hookup notifications. - Enabled mechanoids private parts. They will now have artificial genitals/breasts/anuses. - Fixed sex need decay rate reverting to default value. - Fixed mod settings bug. - Increased max rapists per comfort prisoner to 6. (Will make an option for it in the future) v1.5.4i changes: - Disabled log messages. - Added comfort colonist and comfort animal buttons. (NOTE: comfort animal button is still experimental and might not work as intended) - Tweaked comfort prisoner rape mechanism. - Overhauled bestiality rape mechanism: - Zoophiliacs will now prefer tamed colony animals. (Preference: Tamed > petness > wildness) - They will now prefer animals of their opposite sex. (Will make it based on Romance Diversified's sexual orientation in the future) - The search distance is now narrowed to 50 squares. Your zoophiles will go deer hunting at the corner of the map no more. - Added random twist. Zoophiliacs will sometimes go deer hunting even though the colony has tamed animals. - Zoophiliacs won't be picky about their victim's size. Make sure you have enough tamed animals to decrease the chance of them banging a rhino and end up dying in the process. - Added an option to sterilize vanilla animals. (modded animals coming soon) - Edited some descriptions in the mod settings. v1.5.4h changes: - Fixed nymph joining bed and no effect bug. - Temporary fix for anal rape thought memory. - Tweaked overpriced whores' service price. Normal whores are now cost around 20-40 silvers. - Updated Korean translation. (by NEPH) - Fixed "Allowed me to get raped" social debuff on masochists. v1.5.4g changes: - Added new texture for comfort prisoner button by NEPH. - Fixed inability to designate a prisoner as comfort prisoner that's caused by low vulnerability. - Fixed comfort prisoner button bug. It will only appear on prisoners only now. - Added Japanese translation by hogehoge1942. - Merged ABF with RJW. - Added new raping system from ABF by hogehoge1942. Raiders will now rape incapacitated/knocked down/unsconcious pawns who are enemies to them. - Fixed pawns prefer fappin' than do lovin'. v1.5.4f changes: - Standing fappin' bug fix. - New whore bed textures by NEPH. - Reworked vulnerability factors. Vulnerability is now affected by melee skill, sight, moving, and consciousness. v1.5.4e changes: - Added sex need decay option. You can change it anytime. - Overhauled mod settings: - Edited titles & descriptions. - Added plus & minus buttons. - Added validators. - Optimized live in-game changes. v1.5.4d changes: - Removed toggle whore bed button that's applied to all beds as it causes errors. - Added ArchitectSense's DLL by fluffy. - Added new 'Whore Beds' category in furniture tab by Sidfu. - Added research tree for whore beds by Sidfu. - Added new mod preview by NEPH. - Added new private parts textures by NEPH. - Added Korean translation by NEPH. - Fixed xpath bug. v1.5.4b changes: - Added Wild Mode. - Mod directory optimization. - Some value optimization. - Minor bugfixes. - Temporary fix for in-game notification bug. - Fixed reappearing double pregnancy bug. v1.5.3 changes: - Fixed a critical bug that pregnancy coefficients didn't work - Tweaked many values - Added a compatibility patch for the mod Misc.MAI so that MAI will spawn with private hediffs without reloading the save. The patch is in the file BodyPatches.xml. - You may add your own private hediffs' patch to your modded race. The MAI patch is an example. - Added some in-game notifications when you try to manually make your pawns rape CP. - Added some in-game messages about anal sex - Fixed bugs regarding whore system and zoophile behaviors. v1.5.2 changes: - Fixed things/pawns being killed vanishes - Fixed some animals spawned not having genitals/anus/breasts hediffs if you don't reload the save - Code optimization - some minor bugfix v1.5.1 changes: - fixed the performance issue, - allow you to install penis to women to make futas(so that you should no longer complain why women can't rape), - allow you to toggle whether non-futa women can rape(but still need traits like rapists or nymphos), - other bugfixes v1.5 changes: - Tons of bugfix(ex. losing apparel when raping, normal loving has the "stole some lovin" buff, etc.) - Tons of balance adjustments to make things reasonable and realistic - Added chinese simplified translations by nizhuan-jjr - Added options to change pregnancy coefficient for human or animals - Added sterilization surgery for preventing pregnancy without removing genitals - Added broken body system(CP being raped a lot will have a broken body hediff, which makes their sex need drop fast, but will give them mood buff while in the state) - Added a lite version of children growing system(if you use Children&Pregnancy, this system will be taken over.) - Fuckers generally need to have a penis to rape. However, CP raping and random raping can allow the fucker to be non-futa woemn with vulnerability not larger than a value you can set in the setting. - For the CP raping, non-futa women need to have traits like rapist or nymphomaniac. - Randomly generated women won't have necrophiliac and zoophile traits. - You can add penis to women to make futas through surgeries. - Pawns who have love partners won't fuck CP - Completed the whore system(Pawns who are assigned whore beds will be the whores, they'll try to hookup with those in need of sex. - If visitors are from other factions, they will pay a price to the whore after sex. The price is determined based on many details of the whore.) - Completed behaviors for necrophiliac - Some code optimization - Added rotting to the private parts by SuperHotSausage - Tweaked body-parts' weights by SuperHotSausage - Optimized the xpath method by SuperHotSausage - Greatly enhance compatibility with the Birds and the Bees, RomanceDiversified, Children&Pregnancy, and many other mods(Please put RJW after those mods for better game experience) v1.4 changes: - Refactored source files - Added chinese translations by Alanetsai - Adjusted selection criteria to prefer fresh corpses - Fixed apparel bug with animal attackers v1.3 changes: - Added breast and anus body parts, along with hydraulic/bionic alternatives - Added necrophilia - Added random rapes - Exposed more constants in configuration file v1.2 changes: - Updated to A17 - Enabled comfort prisoner designation on all colony pawns, prisoners, and faction animals - Enabled pregnancy for raped pawns via RimWorldChildren - Updated mod options v1.1 changes: - Added bondage gear - Implemented special apparel type which applies a HeDiff when it's equipped - Implemented locked apparel system which makes certain apparel unremovable except with a special "holokey" item - Implemented new ThingComp which attaches a unique hex ID & engraved name to items - Implemented more ThingComps which allow items to be used on prisoners (or in the case of apparel the item is equipped on the prisoner) - Finally with all the infrastructure done, added the actual bondage gear - Armbinder which prevents manipulation and any sort of verb casting - Gag which prevents talking and reduces eating - Chastity belt which prevents sex, masturbation, and operations on the genitals - Added surgery recipes to remove gear without the key at the cost of permanent damage to the bound pawn - Added recipes to produce the gear (and an intermediate product, the hololock) - Started using the Harmony library to patch methods - No longer need to override the Lovin' JobDef thanks to patches in JobDriver_Lovin.MakeNewToils and JobDriver.Cleanup. This should - increase compatibility with other mods and hopefully will work smoothly and not blow up in my face. - Patched a bunch of methods to enable bondage gear - Created a custom build of Harmony because the regular one wasn't able to find libmono.so on my Linux system - Pawns (except w/ Bloodlust or Psychopath) are less likely to hit a prisoner they're raping if the prisoner is already in significant pain - Nymphs won't join-in-bed colonists who are in significant pain - STD balance changes - Infections won't pass between pawns unless the severity is at least 21% - Accelerated course of warts by 50% and syphilis by ~20% - Reworked env pitch chances: base chance is lower and room cleanliness now has a much greater impact - Herpes is 33% more likely to appear on newly generated pawns - Pawns cannot be infected if they have any lingering immunity - Syphilis starts at 20% severity (but it isn't more dangerous since the other stats have been adjusted to compensate) - Syphilis can be cured if its severity is pushed below 1% even without immunity - STD defs are loaded from XML instead of hardcoded - Added some config options related to STDs - Sex need won't decline on pawns under age 15 - Renamed "age_of_consent" to "sex_free_for_all_age" and reduced value from 20 to 19 - Prisoners under the FFA age cannot be designated for rape v1.0 changes: - Reduced the chance of food poisoning from rimming from 5% to 0.75% - Added age_of_consent, max_nymph_fraction, and opp_inf_initial_immunity to XML config - Pawns whose genitals have been removed or destroyed can now still be raped - The "Raped" debuff now stacks - Fixed incompatibilities with Prepare Carefully - Mod no longer prevents the PC menu from opening - Reworked bootstrap code so the privates will be re-added after PC removed them (this won't happen in the PC menu, though, only once the pawns appear on the map) - Fixed a crash that occurred when PC tried to generate tooltips for bionic privates - Fixed derp-tier programming that boosted severity instead of immunity on opportunistic infections - Sex satisfaction now depends on the average of the two pawn's abilities instead of their product - Flesh coverage stats for the torso are now correctly set when the genitals part is inserted - Fixed warts and syphilis not being curable and rebalanced them a bit - Sex need now decreases faster when it's high and slower when it's low - Nymphs now won't fuck pawns outside their allowed area - Fixed "allowed me to get raped" thought appearing on masochists - Nymph join event baseChance reduced from 1.0 to 0.67 and minRefireDays increased from 2 to 6
jojo1541/rjw
changelog.txt
Text
mit
164,668
========================================= ||| RimJobWorld Community Project ||| ========================================= Special thanks to Void Main Original Author UnlimitedHugs HugsLib mod library for Rimworld pardeike Harmony library Fluffy Architecture Sense mod DLL Loverslab Housing this mod Skystreet Saved A16 version from nexus oblivion nethrez1m HugsLib / RimWorldChildren fixes prkr_jmsn A17 compatibility, Genital injection, sounds, filth Goddifist Ideas shark510 Textures, testing Soronarr Surgery recipes, monstergirls semigimp General coding AngleWyrm Textures Alanetsai Chinese traditional translations nizhuan-jjr Chinese simplified translations, general coding, bugsfix, whore system, broken body system, balancing, testing, textures, previews, etc. g0ring Coding idea, bugfix StarlightG Coding idea, bugfix SuperHotSausage Coding, stuff Sidfu Coding, XML modding NEPH Graphics & textures, testing, Korean translation hogehoge1942 Coding, Japanese translation Ed86 Coding TheSleeplessSorclock Coding asdiky Russian translation exoxe Korean translation Atrer Coding Zaltys Coding SlicedBread Textures And anyone we might have missed. add your self
jojo1541/rjw
credits.txt
Text
mit
1,280
-The transgender thoughts sometimes disappear if you perform a chain of sex operations on the same pawn. Probably some oversight in algorithm that gives thoughts on transition (some underthought chaining of effects). Fix somewhere in the future. -Whores with untended diseases (flu, herpes, warts) will try hookup and may succeed but the job will get cancelled shortly afterwards resulting in message spam. Currently added different message to notify players of problem. -Genital helper is shit. It does not account for later added animal dicks. has_<x> methods are fucking runtime regex searches
jojo1541/rjw
known_bugs.txt
Text
mit
600
CORE: add nymph lord ai, so nymphs can behave as visitors add sex addiction to demonic parts? add insects dragging pawns to hives gene inheritance for insect ovis workgivers(aka manual control): -workgiver for sex with humpshrooms, increasing their growth by 1 day, causing addiction, temp? humpshroom-penis futa? -workgiver(auto, cleaning) to collect cum add recipe to make food from cum? add female cum? add some sort of right clicking sub menu: -designate breeding pair(through relations?) rework genital system, so it only have vag,penis,breast,anus (with comp?) storing name, severity(size?) of part probably also rework surgeries to support those rework sex satisfaction system(based on parts size/difference? traits/quirks etc) integrate milkable colonists with sizes support and operations? to change milk type(w gitterworld med?) BDSM: -make ropes and other generic gear, that is "locked" but not with hololock unique keys - normal keys made of steel, etc -piercing? -blindfolds? -vibrators? Multiplayer: -figure out predictable seeds instead of syncmethod's maybe: add support for other pregnancy mods more sex related incidents? backstories: cowgirl, etc whoring: -add whoring zone( esp for prisoners) -limit whoring to zone -whore in zone does most checks but instead of going after client- client comes to whore and they do stuff or merge quickies with whoring or idk invent something new and maybe while at it make toggles for whores to service colonists, oh and defying whores will count toward rape and accepted whores - con sex never? -make interactive COC like sex/stories RatherNot (Code) We need Pawn Sexualization Request: like Pawn Generation Request, but for generating RJW things Current approach missing any kind of flexibility In can be useful for race support to: instead placing checks directly in generator you can place limitations on generator in request older stuff TO DO: Add new body part groups for the bondage gear (specifically a genitals group for the CB and a jaw or mouth group for the gag, the mouth group that's already in the game won't work I'm pretty sure) Once that (^^^) is done make it so that the groups are automatically blocked by the gear, like a more robust version of the blocks_genitals flag Add more thoughts after sex about e.g. partner's dick size and sex skill Add chance for sex/fap with a peg dick to produce splinters TO DO EVENTUALLY (AKA NEVER): Improve detection of genital harvest vs amputation - (Maybe) Make it so that downgrading a pawn is considered harvesting OTHER RANDOM/HALF-BAKED IDEAS: Add some random dialogues for rapes, lovins, etc. Strap prisoners to their beds Sex addiction - Reduces satisfaction from sex - Should only affect nymphomaniacs? Traits?: Low Self Esteem (just another pessimist trait) Dom/Sub Mindbroken (raped so much that they are at a permanent max happiness, but are worth nothing more than just hauling and cleaning) Branded, this pawn is branded a cow/animal fucker/prostitute/rapist, whatever his/her extra curricular is comes with a negative opinions so they are pretty much never liked?
jojo1541/rjw
todo or not todo.txt
Text
mit
3,119
InlayHints: Enabled: No
whupdup/frame
.clangd
none
gpl-3.0
25
*.swp *.swo *.o *.a *.exe *.lib *.patch *.spv *.lock .cache .vs build*/ install*/ out*/ rbxassetcache *__pycache__*
whupdup/frame
.gitignore
Git
gpl-3.0
118
cmake_minimum_required(VERSION 3.14) include(FetchContent) project( RenderGraph VERSION 1.0 LANGUAGES C CXX ASM ASM_MASM ) set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD_REQUIRED ON) set(CMAKE_CXX_EXTENSIONS OFF) set(CMAKE_EXPORT_COMPILE_COMMANDS TRUE) find_package(GTest REQUIRED) add_library(Common STATIC "${CMAKE_CURRENT_SOURCE_DIR}/src/vulkan.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/src/graphics/barrier_info_collection.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/src/graphics/buffer.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/src/graphics/buffer_resource_tracker.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/src/graphics/command_buffer.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/src/graphics/commands.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/src/graphics/framebuffer.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/src/graphics/frame_graph.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/src/graphics/frame_graph_pass.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/src/graphics/image.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/src/graphics/image_resource_tracker.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/src/graphics/image_view.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/src/graphics/render_pass.cpp" ) target_include_directories(Common PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/src") target_compile_options(Common PUBLIC -fno-exceptions -fno-rtti) add_executable(${PROJECT_NAME} "") target_sources(${PROJECT_NAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/src/main.cpp" ) target_link_libraries(${PROJECT_NAME} PUBLIC Common) add_executable(RGTester "") target_compile_options(RGTester PRIVATE -fno-exceptions -fno-rtti) target_link_libraries(RGTester PRIVATE GTest::gtest) target_link_libraries(RGTester PUBLIC Common) target_sources(RGTester PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/src/rg_tester.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/src/br_tests.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/src/ir_tests.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/src/rg_tests.cpp" ) add_subdirectory(real)
whupdup/frame
CMakeLists.txt
Text
gpl-3.0
1,880
set(FETCHCONTENT_QUIET OFF CACHE BOOL "Enables QUIET operation for all content population" FORCE) #list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake") FetchContent_Declare( concurrentqueue GIT_REPOSITORY https://github.com/cameron314/concurrentqueue GIT_TAG v1.0.3 ) FetchContent_Declare( glfw GIT_REPOSITORY https://github.com/glfw/glfw.git GIT_TAG 3.3.2 ) FetchContent_Declare( volk GIT_REPOSITORY https://github.com/zeux/volk.git GIT_TAG 1.2.140 ) FetchContent_Declare( vma GIT_REPOSITORY https://github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator.git GIT_TAG ab16036 ) FetchContent_Declare( vkbootstrap GIT_REPOSITORY https://github.com/charles-lunarg/vk-bootstrap.git GIT_TAG 3480e74 ) FetchContent_MakeAvailable(concurrentqueue) FetchContent_MakeAvailable(glfw) FetchContent_MakeAvailable(volk) FetchContent_MakeAvailable(vma) FetchContent_MakeAvailable(vkbootstrap) set(GLFW_BUILD_DOCS OFF CACHE BOOL "Build the GLFW documentation" FORCE) set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "Build the GLFW example programs" FORCE) set(GLFW_BUILD_TESTS OFF CACHE BOOL "Build the GLFW test programs" FORCE) set(GLFW_INSTALL OFF CACHE BOOL "Generate installation target" FORCE) set(VMA_DYNAMIC_VULKAN_FUNCTIONS OFF CACHE BOOL "Fetch pointers to Vulkan functions internally (no static linking)" FORCE) set(VMA_STATIC_VULKAN_FUNCTIONS OFF CACHE BOOL "Link statically with Vulkan API" FORCE) add_subdirectory(third_party) find_package(glm REQUIRED) find_package(Threads REQUIRED) find_program(GLSL_VALIDATOR glslangValidator HINTS /usr/bin /usr/local/bin $ENV{VULKAN_SDK}/Bin/ $ENV{VULKAN_SDK}/Bin32/) add_library(LibCommon STATIC) target_link_libraries(LibCommon PUBLIC boost_context) target_link_libraries(LibCommon PUBLIC concurrentqueue) target_link_libraries(LibCommon PUBLIC glfw) target_link_libraries(LibCommon PUBLIC glm::glm) target_link_libraries(LibCommon PRIVATE spirv_reflect) target_link_libraries(LibCommon PUBLIC stb) target_link_libraries(LibCommon PUBLIC Tracy::TracyClient) target_link_libraries(LibCommon PUBLIC volk) target_link_libraries(LibCommon PRIVATE vk-bootstrap) target_link_libraries(LibCommon PUBLIC VulkanMemoryAllocator) target_compile_definitions(LibCommon PUBLIC GLM_FORCE_RADIANS GLM_FORCE_DEPTH_ZERO_TO_ONE GLFW_INCLUDE_VULKAN TINYGLTF_USE_RAPIDJSON TINYGLTF_NO_STB_IMAGE_WRITE TINYGLTF_USE_RAPIDJSON_CRTALLOCATOR TRACY_ENABLE TRACY_NO_FRAME_IMAGE ) target_include_directories(LibCommon PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}") add_subdirectory(asset) add_subdirectory(core) add_subdirectory(file) add_subdirectory(graphics) add_subdirectory(materials) add_subdirectory(math) add_subdirectory(renderers) add_subdirectory(scheduler) add_subdirectory(services) target_compile_options(LibCommon PUBLIC -fno-exceptions -fno-rtti) add_executable(RealGraph "") target_sources(RealGraph PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/main.cpp" ) target_link_libraries(RealGraph PRIVATE LibCommon) # SHADERS ######################################################################################### file(GLOB_RECURSE GLSL_SOURCE_FILES "${PROJECT_SOURCE_DIR}/shaders/*.frag" "${PROJECT_SOURCE_DIR}/shaders/*.vert" "${PROJECT_SOURCE_DIR}/shaders/*.comp" ) foreach(GLSL ${GLSL_SOURCE_FILES}) get_filename_component(FILE_NAME ${GLSL} NAME) set(SPIRV "${PROJECT_SOURCE_DIR}/shaders/${FILE_NAME}.spv") add_custom_command( OUTPUT ${SPIRV} COMMAND ${GLSL_VALIDATOR} -V -gVS ${GLSL} -o ${SPIRV} DEPENDS ${GLSL} ) list(APPEND SPIRV_BINARY_FILES ${SPIRV}) endforeach(GLSL) add_custom_target(shaders DEPENDS ${SPIRV_BINARY_FILES}) add_dependencies(LibCommon shaders)
whupdup/frame
real/CMakeLists.txt
Text
gpl-3.0
3,646
target_sources(LibCommon PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/indexed_model.cpp" "${CMAKE_CURRENT_SOURCE_DIR}/obj_loader.cpp" )
whupdup/frame
real/asset/CMakeLists.txt
Text
gpl-3.0
131