Compare commits

...

12 Commits

Author SHA1 Message Date
amevarashi 190c6fc3d6 Fixed some labels in SexStatusWindow not respecting custom fonts 2023-10-28 12:58:02 +05:00
amevarashi 4265e3c3e1 1.4.1.3 2023-10-03 22:14:07 +05:00
amevarashi 9e21992d9b Prisoners use buckets to clean themselves 2023-10-03 21:52:39 +05:00
amevarashi cfee907258 Migrate SDK projects 2023-09-26 19:48:30 +05:00
amevarashi 814f35772e 1.4.1.2 2023-07-24 20:52:53 +05:00
amevarashi 57fe883be0 Fix IsVirgin check 2023-07-24 20:47:56 +05:00
amevarashi ffe6a9b7f7 More of reusing objects in SexStatusViewModel 2023-07-24 20:47:00 +05:00
amevarashi bed83e1eca 1.4.1.1 2023-07-09 14:29:02 +05:00
amevarashi 5138e11cb2 Started reusing objects in SexStatusViewModel 2023-07-09 12:02:20 +05:00
amevarashi 4e44d42c4f Marked Sex History button shrinkable and lowered its UI order 2023-07-09 09:55:13 +05:00
amevarashi 2c225a2d41 Fixed exception when pawn uses a bucket 2023-07-09 09:49:51 +05:00
amevarashi 811162875d Updated Rimworld refs version 2023-07-08 20:12:08 +05:00
19 changed files with 460 additions and 470 deletions

Binary file not shown.

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Manifest> <Manifest>
<identifier>RJWSexperience</identifier> <identifier>RJWSexperience</identifier>
<version>1.4.1.0</version> <version>1.4.1.3</version>
<dependencies> <dependencies>
<li>RimJobWorld >= 5.3.0</li> <li>RimJobWorld >= 5.3.0</li>
</dependencies> </dependencies>

View File

@ -1,11 +1,16 @@
### 1.4.1.3
* Prisoners use buckets to clean themselves
### 1.4.1.2
* Fixed IsVirgin check for pawns with children
### 1.4.1.1
* Fixed exception when pawn uses a bucket
* Marked Sex History button shrinkable and lowered its UI order
### 1.4.1.0 ### 1.4.1.0
* Changed to a new versioning system. Now the first two digits are a Rimworld version, followed by the major and minor version of the mod. * Changed to a new versioning system. Now the first two digits are a Rimworld version, followed by the major and minor version of the mod.
##### by Luciferus666 ##### by Luciferus666
* Added sex skill icons for VRE - Android and VRE - Genie * Added sex skill icons for VRE - Android and VRE - Genie
##### by yiyuandian ##### by yiyuandian
* Added ChineseSimplified Translation * Added ChineseSimplified Translation

View File

@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8" ?>
<Defs>
<ThinkTreeDef>
<defName>CleanSelfWithBucket</defName>
<insertTag>Humanlike_PostDuty</insertTag>
<insertPriority>100</insertPriority>
<thinkRoot Class="ThinkNode_Priority">
<subNodes>
<li Class="ThinkNode_ConditionalPrisoner">
<leaveJoinableLordIfIssuesJob>true</leaveJoinableLordIfIssuesJob>
<subNodes>
<li Class="RJWSexperienceCum.JobGiver_CleanSelfWithBucket"/>
</subNodes>
</li>
</subNodes>
</thinkRoot>
</ThinkTreeDef>
</Defs>

View File

@ -145,14 +145,15 @@ namespace RJWSexperience.Cum
if (!sexFillsCumbuckets) if (!sexFillsCumbuckets)
return; return;
IEnumerable<Building_CumBucket> buckets = props.pawn.GetAdjacentBuildings<Building_CumBucket>(); // Enumerable throws System.InvalidOperationException: Collection was modified; enumeration operation may not execute.
List<Building_CumBucket> buckets = props.pawn.GetAdjacentBuildings<Building_CumBucket>().ToList();
if (buckets?.EnumerableCount() > 0) if (buckets?.Count > 0)
{ {
var initialCum = CumUtility.GetCumVolume(props.pawn); var initialCum = GetCumVolume(props.pawn);
foreach (Building_CumBucket bucket in buckets) foreach (Building_CumBucket bucket in buckets)
{ {
bucket.AddCum(initialCum / buckets.EnumerableCount()); bucket.AddCum(initialCum / buckets.Count);
} }
} }
} }

View File

@ -54,8 +54,8 @@ namespace RJWSexperience
/// </summary> /// </summary>
public static bool IsVirgin(this Pawn pawn) public static bool IsVirgin(this Pawn pawn)
{ {
return pawn.records.GetValue(RsDefOf.Record.VaginalSexCount) == 0 || return pawn.records.GetValue(RsDefOf.Record.VaginalSexCount) == 0 &&
pawn.relations?.ChildrenCount > 0; // Male is a virgins unless he stick into vagina? Not sure it should work this way (pawn.relations?.ChildrenCount ?? 0) < 1; // Male is a virgins unless he stick into vagina? Not sure it should work this way
} }
/// <summary> /// <summary>

View File

@ -1,116 +1,31 @@
<?xml version="1.0" encoding="utf-8"?> <Project Sdk="Microsoft.NET.Sdk">
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{9C728E06-573B-4B04-A07F-ACBF60CB424D}</ProjectGuid> <ProjectGuid>{9C728E06-573B-4B04-A07F-ACBF60CB424D}</ProjectGuid>
<OutputType>Library</OutputType> <TargetFramework>net472</TargetFramework>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>RJWSexperience</RootNamespace> <RootNamespace>RJWSexperience</RootNamespace>
<AssemblyName>RJWSexperience</AssemblyName> <AssemblyName>RJWSexperience</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\Assemblies\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\..\1.4\Assemblies\</OutputPath> <OutputPath>..\..\1.4\Assemblies\</OutputPath>
<DefineConstants>TRACE</DefineConstants> <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<ErrorReport>prompt</ErrorReport> <Company>amevarashi</Company>
<WarningLevel>4</WarningLevel> <Optimize>True</Optimize>
</PropertyGroup> <GenerateAssemblyInfo>False</GenerateAssemblyInfo>
<PropertyGroup>
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup> </PropertyGroup>
<ItemGroup>
<PackageReference Include="Krafs.Rimworld.Ref">
<Version>1.4.*</Version>
</PackageReference>
<PackageReference Include="Lib.Harmony">
<Version>2.*</Version>
<ExcludeAssets>runtime</ExcludeAssets>
<IncludeAssets>compile; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<ItemGroup> <ItemGroup>
<Reference Include="RJW"> <Reference Include="RJW">
<HintPath>..\..\..\rjw\1.4\Assemblies\RJW.dll</HintPath> <HintPath>..\..\..\rjw\1.4\Assemblies\RJW.dll</HintPath>
<Private>False</Private> <Private>False</Private>
</Reference> </Reference>
<Reference Include="System.Core" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Compile Include="Cum\Building_Cumbucket.cs" />
<Compile Include="Configurations.cs" />
<Compile Include="Cum\CumUtility.cs" />
<Compile Include="DebugAction.cs" />
<Compile Include="ExtensionMethods\PawnExtensions.cs" />
<Compile Include="ExtensionMethods\SexPropsExtensions.cs" />
<Compile Include="Cum\FilterWorkers\SpecialThingFilterWorker_CumBase.cs" />
<Compile Include="Cum\FilterWorkers\SpecialThingFilterWorker_NoCum.cs" />
<Compile Include="GlobalSuppressions.cs" />
<Compile Include="Harmony.cs" />
<Compile Include="Cum\IngestionOutcomeDoer_RecordEatenCum.cs" />
<Compile Include="Cum\Interactions\CumAddictPartKindUsageRule.cs" />
<Compile Include="Logs\DebugLogProvider.cs" />
<Compile Include="Logs\LogManager.cs" />
<Compile Include="LustUtility.cs" />
<Compile Include="Patches\ConditionalDefLoad.cs" />
<Compile Include="Patches\DefInjection.cs" />
<Compile Include="Settings\ISettingHandle.cs" />
<Compile Include="Settings\SettingHandle.cs" />
<Compile Include="Settings\SettingsContainer.cs" />
<Compile Include="Settings\SettingsTab.cs" />
<Compile Include="Settings\SettingsTabMain.cs" />
<Compile Include="SexHistory\UI\BarInfo.cs" />
<Compile Include="SexHistory\UI\PartnerPortraitInfo.cs" />
<Compile Include="SexHistory\UI\PreferedRaceCard.cs" />
<Compile Include="SexHistory\UI\InfoCard.cs" />
<Compile Include="SexHistory\UI\PartnerOrderMode.cs" />
<Compile Include="SexHistory\UI\SexStatusViewModel.cs" />
<Compile Include="Virginity\Recipe_HymenSurgery.cs" />
<Compile Include="Settings\SettingsTabHistory.cs" />
<Compile Include="Settings\SettingsTabDebug.cs" />
<Compile Include="Settings\IResettable.cs" />
<Compile Include="Settings\ITab.cs" />
<Compile Include="Settings\SettingsWidgets.cs" />
<Compile Include="SexHistory\RecordRandomizer.cs" />
<Compile Include="RJWUtility.cs" />
<Compile Include="SexHistory\HistoryUtility.cs" />
<Compile Include="SexHistory\SexHistoryComp.cs" />
<Compile Include="SexHistory\SexPartnerHistoryRecord.cs" />
<Compile Include="PawnRelationWorker_Bastard.cs" />
<Compile Include="Keyed.cs" />
<Compile Include="Patches\Rimworld_Patch.cs" />
<Compile Include="Patches\RJW_Patch.cs" />
<Compile Include="SexperienceMod.cs" />
<Compile Include="Cum\FilterWorkers\SpecialThingFilterWorker_Cum.cs" />
<Compile Include="StatParts.cs" />
<Compile Include="Thoughts\ThoughtDefExtension_StageFromRecord.cs" />
<Compile Include="Cum\Thought_AteCum.cs" />
<Compile Include="Thoughts\Thought_Recordbased.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="SexHistory\UI\UIUtility.cs" />
<Compile Include="SexHistory\UI\SexStatusWindow.cs" />
<Compile Include="Utility.cs" />
<Compile Include="RsDefOf.cs" />
<Compile Include="Virginity\TraitDegree.cs" />
<Compile Include="Virginity\TraitHandler.cs" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Krafs.Rimworld.Ref">
<Version>1.4.3641</Version>
</PackageReference>
<PackageReference Include="Lib.Harmony">
<Version>2.2.2</Version>
<ExcludeAssets>runtime</ExcludeAssets>
<IncludeAssets>compile; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project> </Project>

View File

@ -3,6 +3,7 @@ using rjw;
using rjw.Modules.Interactions.Enums; using rjw.Modules.Interactions.Enums;
using rjw.Modules.Interactions.Helpers; using rjw.Modules.Interactions.Helpers;
using rjw.Modules.Interactions.Objects; using rjw.Modules.Interactions.Objects;
using RJWSexperience.Logs;
using System.Collections.Generic; using System.Collections.Generic;
using Verse; using Verse;
using Verse.AI; using Verse.AI;
@ -11,6 +12,7 @@ namespace RJWSexperience
{ {
public static class RJWUtility public static class RJWUtility
{ {
private static readonly rjw.Modules.Shared.Logs.ILog s_log = LogManager.GetLogger<DebugLogProvider>("RJWUtility");
/// <summary> /// <summary>
/// For ideo patch /// For ideo patch
/// </summary> /// </summary>
@ -155,21 +157,28 @@ namespace RJWSexperience
public static Building_CumBucket FindClosestBucket(this Pawn pawn) public static Building_CumBucket FindClosestBucket(this Pawn pawn)
{ {
List<Building> buckets = pawn.Map.listerBuildings.allBuildingsColonist.FindAll(x => x is Building_CumBucket bucket && bucket.StoredStackCount < RsDefOf.Thing.GatheredCum.stackLimit); List<Building> buckets = pawn.Map.listerBuildings.allBuildingsColonist.FindAll(x => x is Building_CumBucket bucket && bucket.StoredStackCount < RsDefOf.Thing.GatheredCum.stackLimit);
if (buckets.NullOrEmpty()) if (buckets.Count == 0)
{
s_log.Message("FindClosestBucket: No buckets on the map or buckets are full");
return null; return null;
}
Dictionary<Building, float> targets = new Dictionary<Building, float>(); Dictionary<Building, float> targets = new Dictionary<Building, float>();
for (int i = 0; i < buckets.Count; i++) for (int i = 0; i < buckets.Count; i++)
{ {
if (pawn.CanReach(buckets[i], PathEndMode.ClosestTouch, Danger.None)) if (pawn.CanReach(buckets[i], PathEndMode.ClosestTouch, Danger.Some))
{ {
targets.Add(buckets[i], pawn.Position.DistanceTo(buckets[i].Position)); targets.Add(buckets[i], pawn.Position.DistanceTo(buckets[i].Position));
} }
} }
if (!targets.NullOrEmpty()) if (targets.Count > 0)
{ {
return (Building_CumBucket)targets.MinBy(x => x.Value).Key; return (Building_CumBucket)targets.MinBy(x => x.Value).Key;
} }
else
{
s_log.Message("FindClosestBucket: No reachable buckets");
}
return null; return null;
} }
} }

View File

@ -429,6 +429,8 @@ namespace RJWSexperience.SexHistory
icon = HistoryUtility.HistoryIcon, icon = HistoryUtility.HistoryIcon,
defaultIconColor = HistoryUtility.HistoryColor, defaultIconColor = HistoryUtility.HistoryColor,
hotKey = RsDefOf.KeyBinding.OpenSexStatistics, hotKey = RsDefOf.KeyBinding.OpenSexStatistics,
shrinkable = true,
Order = 5,
action = () => UI.SexStatusWindow.ToggleWindow(this) action = () => UI.SexStatusWindow.ToggleWindow(this)
}; };
} }

View File

@ -3,33 +3,49 @@ using Verse;
namespace RJWSexperience.SexHistory.UI namespace RJWSexperience.SexHistory.UI
{ {
public readonly struct BarInfo public class BarInfo
{ {
public readonly string label; private string _label;
public readonly float fillPercent; private float _fillPercent;
public readonly Texture2D fillTexture; private string _labelRight;
public readonly TipSignal tooltip;
public readonly string labelRight;
public readonly Texture2D border;
public BarInfo(string label, float fillPercent, Texture2D fillTexture, TipSignal tooltip, string labelRight = "", Texture2D border = null) public string Label
{ {
this.label = label.CapitalizeFirst(); get => _label;
this.fillPercent = Mathf.Clamp01(fillPercent); set => _label = value.CapitalizeFirst();
this.fillTexture = fillTexture; }
this.tooltip = tooltip; public float FillPercent
this.labelRight = labelRight.CapitalizeFirst(); {
this.border = border; get => _fillPercent;
set => _fillPercent = Mathf.Clamp01(value);
}
public Texture2D FillTexture { get; set; }
public TipSignal Tooltip { get; set; }
public string LabelRight
{
get => _labelRight;
set => _labelRight = value.CapitalizeFirst();
}
public Texture2D Border { get; set; }
public BarInfo()
{
_label = "";
_fillPercent = 0f;
FillTexture = Texture2D.grayTexture;
Tooltip = default;
_labelRight = "";
Border = null;
} }
public BarInfo(string label, float fillPercent, Texture2D fillTexture, string labelRight = "") public BarInfo(Texture2D fillTexture)
{ {
this.label = label.CapitalizeFirst(); _label = "";
this.fillPercent = Mathf.Clamp01(fillPercent); _fillPercent = 0f;
this.fillTexture = fillTexture; FillTexture = fillTexture;
this.tooltip = default; Tooltip = default;
this.labelRight = labelRight.CapitalizeFirst(); _labelRight = "";
this.border = null; Border = null;
} }
} }
} }

View File

@ -1,86 +1,93 @@
using RimWorld; using RimWorld;
using rjw; using rjw;
using System;
using UnityEngine; using UnityEngine;
using Verse; using Verse;
namespace RJWSexperience.SexHistory.UI namespace RJWSexperience.SexHistory.UI
{ {
public readonly struct InfoCard public class InfoCard
{ {
public readonly SexPartnerHistoryRecord partnerRecord; private readonly Pawn _pawn;
public readonly string label; private readonly string _tooltipLabel;
public readonly string lastSexTime;
public readonly string name;
public readonly string sexCount;
public readonly string orgasms;
public readonly string relations;
public readonly BarInfo bestSextype;
public readonly PartnerPortraitInfo portraitInfo;
public readonly TipSignal tooltip;
public InfoCard(Pawn pawn, SexPartnerHistoryRecord partnerRecord, string label, string tooltipLabel, int lastSexTimeTicks) public string Label { get; }
public string LastSexTime { get; set; }
public string Name { get; private set; }
public string SexCount { get; private set; }
public string Orgasms { get; private set; }
public string Relations { get; private set; }
public BarInfo BestSextype { get; }
public SexPartnerHistoryRecord PartnerRecord { get; private set; }
public PartnerPortraitInfo PortraitInfo { get; }
public TipSignal Tooltip { get; private set; }
public InfoCard(Pawn pawn, string label, string tooltipLabel)
{ {
this.partnerRecord = partnerRecord; Label = label;
this.label = label; _pawn = pawn;
_tooltipLabel = tooltipLabel;
BestSextype = new BarInfo();
PortraitInfo = new PartnerPortraitInfo(_pawn);
}
lastSexTime = UIUtility.GetSexDays(lastSexTimeTicks); public void UpdatePartnerRecord(SexPartnerHistoryRecord partnerRecord)
portraitInfo = new PartnerPortraitInfo(pawn, partnerRecord); {
PartnerRecord = partnerRecord;
PortraitInfo.UpdatePartnerRecord(partnerRecord);
if (partnerRecord != null) if (partnerRecord == null)
{ {
name = partnerRecord.Partner?.Name?.ToStringFull ?? partnerRecord.Label.CapitalizeFirst(); Name = Keyed.Unknown;
sexCount = Keyed.RS_Sex_Count + partnerRecord.TotalSexCount; SexCount = Keyed.RS_Sex_Count + "?";
Orgasms = Keyed.RS_Orgasms + "?";
Relations = string.Empty;
Tooltip = default;
if (partnerRecord.Raped > 0) BestSextype.Label = Keyed.RS_Best_Sextype + ": " + Keyed.Sextype[(int)xxx.rjwSextype.None];
{ BestSextype.FillPercent = 0f;
sexCount += " " + Keyed.RS_Raped + partnerRecord.Raped; BestSextype.FillTexture = Texture2D.linearGrayTexture;
} BestSextype.LabelRight = "";
if (partnerRecord.RapedMe > 0) return;
{
sexCount += " " + Keyed.RS_RapedMe + partnerRecord.RapedMe;
}
orgasms = Keyed.RS_Orgasms + partnerRecord.OrgasmCount;
relations = pawn.GetRelationsString(partnerRecord.Partner);
tooltip = new TipSignal(() =>
{
string completeTip = tooltipLabel;
if (partnerRecord.Incest)
{
completeTip += " - " + Keyed.Incest;
}
if (partnerRecord.IamFirst)
{
completeTip += "\n" + Keyed.RS_LostVirgin(partnerRecord.Label, pawn.LabelShort);
}
if (partnerRecord.BestSexTickAbs != 0)
{
completeTip += "\n" + Keyed.RS_HadBestSexDaysAgo(partnerRecord.BestSexElapsedTicks.ToStringTicksToDays() + " " + Keyed.RS_Ago);
}
return completeTip;
}, tooltipLabel.GetHashCode());
float relativeBestSatisfaction = partnerRecord.BestSatisfaction / UIUtility.BASESAT;
bestSextype = new BarInfo(
label: Keyed.RS_Best_Sextype + ": " + Keyed.Sextype[(int)partnerRecord.BestSextype],
fillPercent: relativeBestSatisfaction / 2,
fillTexture: HistoryUtility.SextypeColor[(int)partnerRecord.BestSextype],
labelRight: relativeBestSatisfaction.ToStringPercent());
} }
else
Name = partnerRecord.Partner?.Name?.ToStringFull ?? partnerRecord.Label.CapitalizeFirst();
SexCount = Keyed.RS_Sex_Count + partnerRecord.TotalSexCount;
if (partnerRecord.Raped > 0)
{ {
name = Keyed.Unknown; SexCount += " " + Keyed.RS_Raped + partnerRecord.Raped;
sexCount = Keyed.RS_Sex_Count + "?";
orgasms = Keyed.RS_Orgasms + "?";
relations = string.Empty;
tooltip = default;
bestSextype = new BarInfo(
label: String.Format(Keyed.RS_Best_Sextype + ": {0}", Keyed.Sextype[(int)xxx.rjwSextype.None]),
fillPercent: 0f,
fillTexture: Texture2D.linearGrayTexture);
} }
if (partnerRecord.RapedMe > 0)
{
SexCount += " " + Keyed.RS_RapedMe + partnerRecord.RapedMe;
}
Orgasms = Keyed.RS_Orgasms + partnerRecord.OrgasmCount;
Relations = _pawn.GetRelationsString(partnerRecord.Partner);
Tooltip = new TipSignal(() =>
{
string completeTip = _tooltipLabel;
if (partnerRecord.Incest)
{
completeTip += " - " + Keyed.Incest;
}
if (partnerRecord.IamFirst)
{
completeTip += "\n" + Keyed.RS_LostVirgin(partnerRecord.Label, _pawn.LabelShort);
}
if (partnerRecord.BestSexTickAbs != 0)
{
completeTip += "\n" + Keyed.RS_HadBestSexDaysAgo(partnerRecord.BestSexElapsedTicks.ToStringTicksToDays() + " " + Keyed.RS_Ago);
}
return completeTip;
}, _tooltipLabel.GetHashCode());
float relativeBestSatisfaction = partnerRecord.BestSatisfaction / UIUtility.BASESAT;
BestSextype.Label = Keyed.RS_Best_Sextype + ": " + Keyed.Sextype[(int)partnerRecord.BestSextype];
BestSextype.FillPercent = relativeBestSatisfaction / 2;
BestSextype.FillTexture = HistoryUtility.SextypeColor[(int)partnerRecord.BestSextype];
BestSextype.LabelRight = relativeBestSatisfaction.ToStringPercent();
} }
} }
} }

View File

@ -5,29 +5,43 @@ using Verse;
namespace RJWSexperience.SexHistory.UI namespace RJWSexperience.SexHistory.UI
{ {
public readonly struct PartnerPortraitInfo public class PartnerPortraitInfo
{ {
public readonly SexPartnerHistoryRecord partnerRecord; private readonly Pawn _pawn;
public readonly bool lover;
public readonly Func<Vector2, Texture> portraitGetter; public SexPartnerHistoryRecord PartnerRecord { get; private set; }
public bool Lover { get; private set; }
public Func<Vector2, Texture> PortraitGetter { get; private set; }
public PartnerPortraitInfo(Pawn pawn)
{
_pawn = pawn;
}
public PartnerPortraitInfo(Pawn pawn, SexPartnerHistoryRecord partnerRecord) public PartnerPortraitInfo(Pawn pawn, SexPartnerHistoryRecord partnerRecord)
{ {
this.partnerRecord = partnerRecord; _pawn = pawn;
lover = false; UpdatePartnerRecord(partnerRecord);
}
public void UpdatePartnerRecord(SexPartnerHistoryRecord partnerRecord)
{
PartnerRecord = partnerRecord;
if (partnerRecord?.Partner != null) if (partnerRecord?.Partner != null)
{ {
portraitGetter = (size) => PortraitsCache.Get(partnerRecord.Partner, size, Rot4.South, default, 1, true, true, false, false); PortraitGetter = (size) => PortraitsCache.Get(partnerRecord.Partner, size, Rot4.South, default, 1, true, true, false, false);
lover = LovePartnerRelationUtility.LovePartnerRelationExists(pawn, partnerRecord.Partner); Lover = LovePartnerRelationUtility.LovePartnerRelationExists(_pawn, partnerRecord.Partner);
} }
else if (partnerRecord?.Race?.uiIcon != null) else if (partnerRecord?.Race?.uiIcon != null)
{ {
portraitGetter = (_) => partnerRecord.Race.uiIcon; PortraitGetter = (_) => partnerRecord.Race.uiIcon;
Lover = false;
} }
else else
{ {
portraitGetter = (_) => HistoryUtility.UnknownPawn; PortraitGetter = (_) => HistoryUtility.UnknownPawn;
Lover = false;
} }
} }
} }

View File

@ -3,53 +3,58 @@ using UnityEngine;
namespace RJWSexperience.SexHistory.UI namespace RJWSexperience.SexHistory.UI
{ {
public readonly struct PreferedRaceCard public class PreferedRaceCard
{ {
public readonly string preferRaceLabel; private readonly SexHistoryComp _sexHistory;
public readonly string preferRaceTypeLabel;
public readonly string sexCount; public string PreferRaceLabel { get; private set; }
public readonly BarInfo? barInfo; public string PreferRaceTypeLabel { get; private set; }
public readonly Func<Vector2, Texture> portraitGetter; public string SexCount { get; private set; }
public BarInfo BarInfo { get; } = new BarInfo(Texture2D.linearGrayTexture);
public Func<Vector2, Texture> PortraitGetter { get; private set; }
public PreferedRaceCard(SexHistoryComp sexHistory) public PreferedRaceCard(SexHistoryComp sexHistory)
{ {
if (sexHistory.PreferRace == null) _sexHistory = sexHistory;
}
public void Update()
{
if (_sexHistory.PreferRace == null)
{ {
preferRaceLabel = Keyed.None; PreferRaceLabel = Keyed.None;
preferRaceTypeLabel = null; PreferRaceTypeLabel = null;
sexCount = null; SexCount = null;
barInfo = null; BarInfo.Label = null;
portraitGetter = (_) => HistoryUtility.UnknownPawn; BarInfo.FillPercent = 0f;
PortraitGetter = (_) => HistoryUtility.UnknownPawn;
return; return;
} }
preferRaceLabel = sexHistory.PreferRace.LabelCap; PreferRaceLabel = _sexHistory.PreferRace.LabelCap;
sexCount = Keyed.RS_Sex_Count + sexHistory.PreferRaceSexCount; SexCount = Keyed.RS_Sex_Count + _sexHistory.PreferRaceSexCount;
portraitGetter = (size) => UIUtility.GetRaceIcon(sexHistory.PreferRacePawn, size); PortraitGetter = (size) => UIUtility.GetRaceIcon(_sexHistory.PreferRacePawn, size);
if (sexHistory.PreferRace != sexHistory.ParentPawn.def) if (_sexHistory.PreferRace != _sexHistory.ParentPawn.def)
{ {
if (sexHistory.PreferRace.race.Animal != sexHistory.ParentPawn.def.race.Animal) if (_sexHistory.PreferRace.race.Animal != _sexHistory.ParentPawn.def.race.Animal)
{ {
preferRaceTypeLabel = Keyed.RS_Bestiality; PreferRaceTypeLabel = Keyed.RS_Bestiality;
barInfo = new BarInfo( BarInfo.Label = Keyed.RS_SexInfo(Keyed.RS_Bestiality, _sexHistory.BestialityCount);
label: Keyed.RS_SexInfo(Keyed.RS_Bestiality, sexHistory.BestialityCount), BarInfo.FillPercent = _sexHistory.BestialityCount / 100f;
fillPercent: sexHistory.BestialityCount / 100f,
fillTexture: Texture2D.linearGrayTexture);
} }
else else
{ {
preferRaceTypeLabel = Keyed.RS_Interspecies; PreferRaceTypeLabel = Keyed.RS_Interspecies;
barInfo = new BarInfo( BarInfo.Label = Keyed.RS_SexInfo(Keyed.RS_Interspecies, _sexHistory.InterspeciesCount);
label: Keyed.RS_SexInfo(Keyed.RS_Interspecies, sexHistory.InterspeciesCount), BarInfo.FillPercent = _sexHistory.InterspeciesCount / 100f;
fillPercent: sexHistory.InterspeciesCount / 100f,
fillTexture: Texture2D.linearGrayTexture);
} }
} }
else else
{ {
preferRaceTypeLabel = null; PreferRaceTypeLabel = null;
barInfo = null; BarInfo.Label = null;
BarInfo.FillPercent = 0f;
} }
} }
} }

View File

@ -1,6 +1,5 @@
using RimWorld; using RimWorld;
using rjw; using rjw;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Text; using System.Text;
@ -49,27 +48,43 @@ namespace RJWSexperience.SexHistory.UI
{ {
AgeAndTitle = Pawn.ageTracker.AgeBiologicalYears + ", " + Pawn.def.label; AgeAndTitle = Pawn.ageTracker.AgeBiologicalYears + ", " + Pawn.def.label;
} }
for (int i = 0; i < Sextype.Length; i++)
{
int sexIndex = Sextype[i];
SexTypes.Add(new BarInfo(HistoryUtility.SextypeColor[sexIndex]));
}
InfoCards.Add(new InfoCard(Pawn, Keyed.RS_Recent_Sex_Partner, Keyed.RS_Recent_Sex_Partner_ToolTip));
InfoCards.Add(new InfoCard(Pawn, Keyed.RS_First_Sex_Partner, Keyed.RS_First_Sex_Partner_ToolTip));
InfoCards.Add(new InfoCard(Pawn, Keyed.RS_Most_Sex_Partner, Keyed.RS_Most_Sex_Partner_ToolTip));
InfoCards.Add(new InfoCard(Pawn, Keyed.RS_Best_Sex_Partner, Keyed.RS_Best_Sex_Partner_ToolTip));
SelectedPartnerCard = new InfoCard(Pawn, Keyed.RS_Selected_Partner, Keyed.RS_Selected_Partner);
PreferedRaceCard = new PreferedRaceCard(_history);
} }
public Pawn Pawn => _history.ParentPawn; public Pawn Pawn => _history.ParentPawn;
public string Name { get; } public string Name { get; }
public string AgeAndTitle { get; } public string AgeAndTitle { get; }
public List<InfoCard> InfoCards { get; } = new List<InfoCard>(); public List<InfoCard> InfoCards { get; } = new List<InfoCard>();
public InfoCard SelectedPartnerCard { get; private set; } public InfoCard SelectedPartnerCard { get; }
public PreferedRaceCard PreferedRaceCard { get; private set; } public PreferedRaceCard PreferedRaceCard { get; }
public List<BarInfo> SexTypes { get; } = new List<BarInfo>(); public List<BarInfo> SexTypes { get; } = new List<BarInfo>();
public BarInfo TotalSex { get; private set; } public BarInfo PartnerCount { get; } = new BarInfo(HistoryUtility.Partners);
public BarInfo Lust { get; private set; } public BarInfo VirginsTaken { get; } = new BarInfo(HistoryUtility.Partners);
public BarInfo BestSextype { get; private set; } public BarInfo TotalSex { get; } = new BarInfo(HistoryUtility.TotalSex);
public BarInfo RecentSextype { get; private set; } public BarInfo Lust { get; } = new BarInfo(HistoryUtility.Slaanesh);
public BarInfo Necro { get; private set; } public BarInfo BestSextype { get; } = new BarInfo();
public BarInfo Incest { get; private set; } public BarInfo RecentSextype { get; } = new BarInfo();
public BarInfo ConsumedCum { get; private set; } public BarInfo Necro { get; } = new BarInfo(HistoryUtility.Nurgle);
public BarInfo? CumHediff { get; private set; } public BarInfo Incest { get; } = new BarInfo(HistoryUtility.Nurgle);
public BarInfo BeenRaped { get; private set; } public BarInfo ConsumedCum { get; } = new BarInfo(Texture2D.linearGrayTexture);
public BarInfo Raped { get; private set; } public BarInfo CumHediff { get; } = new BarInfo(Texture2D.linearGrayTexture);
public BarInfo SexSatisfaction { get; private set; } public BarInfo BeenRaped { get; } = new BarInfo(Texture2D.grayTexture);
public BarInfo SexSkill { get; private set; } public BarInfo Raped { get; } = new BarInfo(HistoryUtility.Khorne);
public BarInfo SexSatisfaction { get; } = new BarInfo(HistoryUtility.Satisfaction);
public BarInfo SexSkill { get; } = new BarInfo(HistoryUtility.Tzeentch);
public string VirginLabel { get; private set; } public string VirginLabel { get; private set; }
public string SexualityLabel { get; private set; } public string SexualityLabel { get; private set; }
public string QuirksLabel { get; private set; } public string QuirksLabel { get; private set; }
@ -88,7 +103,7 @@ namespace RJWSexperience.SexHistory.UI
UpdateBars(); UpdateBars();
UpdateQuirks(); UpdateQuirks();
UpdateVirginAndSexuality(); UpdateVirginAndSexuality();
PreferedRaceCard = new PreferedRaceCard(_history); PreferedRaceCard.Update();
int tickRateMultiplier = (int)Find.TickManager.TickRateMultiplier; int tickRateMultiplier = (int)Find.TickManager.TickRateMultiplier;
if (tickRateMultiplier == 0) // Paused if (tickRateMultiplier == 0) // Paused
@ -102,35 +117,21 @@ namespace RJWSexperience.SexHistory.UI
private void UpdateInfoCards() private void UpdateInfoCards()
{ {
InfoCards.Clear(); InfoCard recentSexPartner = InfoCards[0];
recentSexPartner.LastSexTime = UIUtility.GetSexDays(_history.RecentSexTickAbs);
recentSexPartner.UpdatePartnerRecord(_history.RecentPartnerRecord);
InfoCards.Add(new InfoCard( InfoCard firstSexPartner = InfoCards[1];
pawn: Pawn, firstSexPartner.LastSexTime = UIUtility.GetSexDays(_history.FirstSexTickAbs);
partnerRecord: _history.RecentPartnerRecord, firstSexPartner.UpdatePartnerRecord(_history.FirstPartnerRecord);
label: Keyed.RS_Recent_Sex_Partner,
tooltipLabel: Keyed.RS_Recent_Sex_Partner_ToolTip,
lastSexTimeTicks: _history.RecentSexTickAbs));
InfoCards.Add(new InfoCard( InfoCard mostSexPartner = InfoCards[2];
pawn: Pawn, mostSexPartner.LastSexTime = UIUtility.GetSexDays(_history.MostSexTickAbs);
partnerRecord: _history.FirstPartnerRecord, mostSexPartner.UpdatePartnerRecord(_history.MostPartnerRecord);
label: Keyed.RS_First_Sex_Partner,
tooltipLabel: Keyed.RS_First_Sex_Partner_ToolTip,
lastSexTimeTicks: _history.FirstSexTickAbs));
InfoCards.Add(new InfoCard( InfoCard bestSexPartner = InfoCards[3];
pawn: Pawn, bestSexPartner.LastSexTime = UIUtility.GetSexDays(_history.BestSexTickAbs);
partnerRecord: _history.MostPartnerRecord, bestSexPartner.UpdatePartnerRecord(_history.BestSexPartnerRecord);
label: Keyed.RS_Most_Sex_Partner,
tooltipLabel: Keyed.RS_Most_Sex_Partner_ToolTip,
lastSexTimeTicks: _history.MostSexTickAbs));
InfoCards.Add(new InfoCard(
pawn: Pawn,
partnerRecord: _history.BestSexPartnerRecord,
label: Keyed.RS_Best_Sex_Partner,
tooltipLabel: Keyed.RS_Best_Sex_Partner_ToolTip,
lastSexTimeTicks: _history.BestSexTickAbs));
if (SelectedPartner != null) if (SelectedPartner != null)
{ {
@ -146,124 +147,102 @@ namespace RJWSexperience.SexHistory.UI
maxSatisfaction = UIUtility.BASESAT; maxSatisfaction = UIUtility.BASESAT;
} }
SexTypes.Clear();
for (int i = 0; i < Sextype.Length; i++) for (int i = 0; i < Sextype.Length; i++)
{ {
int sexIndex = Sextype[i]; int sexIndex = Sextype[i];
float AverageSatisfaction = _history.GetAVGSat(sexIndex); float AverageSatisfaction = _history.GetAVGSat(sexIndex);
float relativeSat = AverageSatisfaction / maxSatisfaction; float relativeSat = AverageSatisfaction / maxSatisfaction;
float satisfactionRelativeToBase = AverageSatisfaction / UIUtility.BASESAT; float satisfactionRelativeToBase = AverageSatisfaction / UIUtility.BASESAT;
SexTypes.Add(new BarInfo(
label: Keyed.RS_SexInfo(Keyed.Sextype[sexIndex], _history.GetSexCount(sexIndex)), BarInfo sexTypeBar = SexTypes[i];
fillPercent: relativeSat, sexTypeBar.Label = Keyed.RS_SexInfo(Keyed.Sextype[sexIndex], _history.GetSexCount(sexIndex));
fillTexture: HistoryUtility.SextypeColor[sexIndex], sexTypeBar.FillPercent = relativeSat;
tooltip: Keyed.RS_LastSex + ": " + UIUtility.GetSexDays(_history.GetSextypeRecentTickAbs(sexIndex), true), sexTypeBar.Tooltip = Keyed.RS_LastSex + ": " + UIUtility.GetSexDays(_history.GetSextypeRecentTickAbs(sexIndex), true);
labelRight: Keyed.RS_SatAVG(satisfactionRelativeToBase))); sexTypeBar.LabelRight = Keyed.RS_SatAVG(satisfactionRelativeToBase);
} }
SexTypes.Add(new BarInfo( PartnerCount.Label = string.Format(Keyed.RS_Sex_Partners + ": {0} ({1})", _history.PartnerCount, Pawn.records.GetValue(RsDefOf.Record.SexPartnerCount));
label: String.Format(Keyed.RS_Sex_Partners + ": {0} ({1})", _history.PartnerCount, Pawn.records.GetValue(RsDefOf.Record.SexPartnerCount)), PartnerCount.FillPercent = _history.PartnerCount / 50f;
fillPercent: _history.PartnerCount / 50,
fillTexture: HistoryUtility.Partners));
SexTypes.Add(new BarInfo( VirginsTaken.Label = string.Format(Keyed.RS_VirginsTaken + ": {0:0}", _history.VirginsTaken);
label: String.Format(Keyed.RS_VirginsTaken + ": {0:0}", _history.VirginsTaken), VirginsTaken.FillPercent = _history.VirginsTaken / 100f;
fillPercent: _history.VirginsTaken / 100,
fillTexture: HistoryUtility.Partners));
TotalSex = new BarInfo( TotalSex.Label = string.Format(Keyed.RS_TotalSexHad + ": {0:0} ({1:0})", _history.TotalSexHad, Pawn.records.GetValue(xxx.CountOfSex));
label: String.Format(Keyed.RS_TotalSexHad + ": {0:0} ({1:0})", _history.TotalSexHad, Pawn.records.GetValue(xxx.CountOfSex)), TotalSex.FillPercent = _history.TotalSexHad / 100f;
fillPercent: _history.TotalSexHad / 100, TotalSex.LabelRight = Keyed.RS_SatAVG(_history.AVGSat);
fillTexture: HistoryUtility.TotalSex,
labelRight: Keyed.RS_SatAVG(_history.AVGSat));
float lust = Pawn.records.GetValue(RsDefOf.Record.Lust); float lust = Pawn.records.GetValue(RsDefOf.Record.Lust);
float sexDrive = GetStatValue(xxx.sex_drive_stat); float sexDrive = GetStatValue(xxx.sex_drive_stat);
float lustLimit = SexperienceMod.Settings.LustLimit * 3f; float lustLimit = SexperienceMod.Settings.LustLimit * 3f;
Lust = new BarInfo( Lust.Label = string.Format(Keyed.Lust + ": {0:0.00}", lust);
label: String.Format(Keyed.Lust + ": {0:0.00}", lust), Lust.FillPercent = lust.Normalization(-lustLimit, lustLimit);
fillPercent: Mathf.Clamp01(lust.Normalization(-lustLimit, lustLimit)), Lust.Tooltip = GetStatTooltip(xxx.sex_drive_stat, sexDrive);
fillTexture: HistoryUtility.Slaanesh, Lust.LabelRight = xxx.sex_drive_stat.LabelCap + ": " + sexDrive.ToStringPercent();
tooltip: GetStatTooltip(xxx.sex_drive_stat, sexDrive),
labelRight: xxx.sex_drive_stat.LabelCap + ": " + sexDrive.ToStringPercent());
float bestSextypeRelativeSatisfaction = _history.GetBestSextype(out xxx.rjwSextype bestSextype) / UIUtility.BASESAT; float bestSextypeRelativeSatisfaction = _history.GetBestSextype(out xxx.rjwSextype bestSextype) / UIUtility.BASESAT;
BestSextype = new BarInfo( BestSextype.Label = string.Format(Keyed.RS_Best_Sextype + ": {0}", Keyed.Sextype[(int)bestSextype]);
label: String.Format(Keyed.RS_Best_Sextype + ": {0}", Keyed.Sextype[(int)bestSextype]), BestSextype.FillPercent = bestSextypeRelativeSatisfaction / 2;
fillPercent: bestSextypeRelativeSatisfaction / 2, BestSextype.FillTexture = HistoryUtility.SextypeColor[(int)bestSextype];
fillTexture: HistoryUtility.SextypeColor[(int)bestSextype], BestSextype.LabelRight = Keyed.RS_SatAVG(bestSextypeRelativeSatisfaction);
labelRight: Keyed.RS_SatAVG(bestSextypeRelativeSatisfaction));
float recentSextypeRelativeSatisfaction = _history.GetRecentSextype(out xxx.rjwSextype recentSextype) / UIUtility.BASESAT; float recentSextypeRelativeSatisfaction = _history.GetRecentSextype(out xxx.rjwSextype recentSextype) / UIUtility.BASESAT;
RecentSextype = new BarInfo( RecentSextype.Label = string.Format(Keyed.RS_Recent_Sextype + ": {0}", Keyed.Sextype[(int)recentSextype]);
label: String.Format(Keyed.RS_Recent_Sextype + ": {0}", Keyed.Sextype[(int)recentSextype]), RecentSextype.FillPercent = recentSextypeRelativeSatisfaction / 2;
fillPercent: recentSextypeRelativeSatisfaction / 2, RecentSextype.FillTexture = HistoryUtility.SextypeColor[(int)recentSextype];
fillTexture: HistoryUtility.SextypeColor[(int)recentSextype], RecentSextype.LabelRight = recentSextypeRelativeSatisfaction.ToStringPercent();
labelRight: recentSextypeRelativeSatisfaction.ToStringPercent());
Necro = new BarInfo( Necro.Label = string.Format(Keyed.RS_Necrophile + ": {0}", _history.CorpseFuckCount);
label: String.Format(Keyed.RS_Necrophile + ": {0}", _history.CorpseFuckCount), Necro.FillPercent = _history.CorpseFuckCount / 50f;
fillPercent: _history.CorpseFuckCount / 50,
fillTexture: HistoryUtility.Nurgle);
Incest = new BarInfo( Incest.Label = string.Format(Keyed.Incest + ": {0}", _history.IncestuousCount);
label: String.Format(Keyed.Incest + ": {0}", _history.IncestuousCount), Incest.FillPercent = _history.IncestuousCount / 50f;
fillPercent: _history.IncestuousCount / 50,
fillTexture: HistoryUtility.Nurgle);
float amountofEatenCum = Pawn.records.GetValue(RsDefOf.Record.AmountofEatenCum); float amountofEatenCum = Pawn.records.GetValue(RsDefOf.Record.AmountofEatenCum);
ConsumedCum = new BarInfo( ConsumedCum.Label = string.Format(Keyed.RS_Cum_Swallowed + ": {0} mL, {1} " + Keyed.RS_NumofTimes, amountofEatenCum, Pawn.records.GetValue(RsDefOf.Record.NumofEatenCum));
label: String.Format(Keyed.RS_Cum_Swallowed + ": {0} mL, {1} " + Keyed.RS_NumofTimes, amountofEatenCum, Pawn.records.GetValue(RsDefOf.Record.NumofEatenCum)), ConsumedCum.FillPercent = amountofEatenCum / 1000;
fillPercent: amountofEatenCum / 1000,
fillTexture: Texture2D.linearGrayTexture);
Hediff cumHediff = Pawn.health.hediffSet.GetFirstHediffOfDef(RsDefOf.Hediff.CumAddiction) Hediff cumHediff = Pawn.health.hediffSet.GetFirstHediffOfDef(RsDefOf.Hediff.CumAddiction)
?? Pawn.health.hediffSet.GetFirstHediffOfDef(RsDefOf.Hediff.CumTolerance); ?? Pawn.health.hediffSet.GetFirstHediffOfDef(RsDefOf.Hediff.CumTolerance);
if (cumHediff != null) if (cumHediff != null)
{ {
CumHediff = new BarInfo( CumHediff.Label = $"{cumHediff.Label}: {cumHediff.Severity.ToStringPercent()}";
label: $"{cumHediff.Label}: {cumHediff.Severity.ToStringPercent()}", CumHediff.FillPercent = cumHediff.Severity;
fillPercent: cumHediff.Severity, CumHediff.Tooltip = new TipSignal(() => cumHediff.GetTooltip(Pawn, false), cumHediff.Label.GetHashCode());
fillTexture: Texture2D.linearGrayTexture, }
tooltip: new TipSignal(() => cumHediff.GetTooltip(Pawn, false), cumHediff.Label.GetHashCode())); else
{
CumHediff.Label = "";
CumHediff.FillPercent = 0f;
CumHediff.Tooltip = default;
} }
float vulnerability = GetStatValue(xxx.vulnerability_stat); float vulnerability = GetStatValue(xxx.vulnerability_stat);
string vulnerabilityLabel = xxx.vulnerability_stat.LabelCap + ": " + vulnerability.ToStringPercent(); string vulnerabilityLabel = xxx.vulnerability_stat.LabelCap + ": " + vulnerability.ToStringPercent();
TipSignal vulnerabilityTip = GetStatTooltip(xxx.vulnerability_stat, vulnerability); TipSignal vulnerabilityTip = GetStatTooltip(xxx.vulnerability_stat, vulnerability);
Raped = new BarInfo( Raped.Label = string.Format(Keyed.RS_RapedSomeone + ": {0}", _history.RapedCount);
label: String.Format(Keyed.RS_RapedSomeone + ": {0}", _history.RapedCount), Raped.FillPercent = _history.RapedCount / 50f;
fillPercent: _history.RapedCount / 50, Raped.Tooltip = vulnerabilityTip;
fillTexture: HistoryUtility.Khorne, Raped.LabelRight = vulnerabilityLabel;
tooltip: vulnerabilityTip,
labelRight: vulnerabilityLabel);
BeenRaped = new BarInfo( BeenRaped.Label = string.Format(Keyed.RS_BeenRaped + ": {0}", _history.BeenRapedCount);
label: String.Format(Keyed.RS_BeenRaped + ": {0}", _history.BeenRapedCount), BeenRaped.FillPercent = _history.BeenRapedCount / 50f;
fillPercent: _history.BeenRapedCount / 50, BeenRaped.Tooltip = vulnerabilityTip;
fillTexture: Texture2D.grayTexture, BeenRaped.LabelRight = vulnerabilityLabel;
tooltip: vulnerabilityTip,
labelRight: vulnerabilityLabel);
float sexSatisfaction = GetStatValue(xxx.sex_satisfaction); float sexSatisfaction = GetStatValue(xxx.sex_satisfaction);
SexSatisfaction = new BarInfo( SexSatisfaction.Label = xxx.sex_satisfaction.LabelCap + ": " + sexSatisfaction.ToStringPercent();
label: xxx.sex_satisfaction.LabelCap + ": " + sexSatisfaction.ToStringPercent(), SexSatisfaction.FillPercent = sexSatisfaction / 2;
fillPercent: sexSatisfaction / 2, SexSatisfaction.Tooltip = GetStatTooltip(xxx.sex_satisfaction, sexSatisfaction);
fillTexture: HistoryUtility.Satisfaction,
tooltip: GetStatTooltip(xxx.sex_satisfaction, sexSatisfaction));
SkillRecord skill = Pawn.skills?.GetSkill(RsDefOf.Skill.Sex); SkillRecord skill = Pawn.skills?.GetSkill(RsDefOf.Skill.Sex);
float sexSkillLevel = skill?.Level ?? 0f; float sexSkillLevel = skill?.Level ?? 0f;
float sexStat = Pawn.GetSexStat(); float sexStat = Pawn.GetSexStat();
SexSkill = new BarInfo( SexSkill.Label = $"{Keyed.RS_SexSkill}: {sexSkillLevel}, {skill?.xpSinceLastLevel / skill?.XpRequiredForLevelUp:P2}";
label: $"{Keyed.RS_SexSkill}: {sexSkillLevel}, {skill?.xpSinceLastLevel / skill?.XpRequiredForLevelUp:P2}", SexSkill.FillPercent = sexSkillLevel / 20;
fillPercent: sexSkillLevel / 20, SexSkill.Tooltip = GetStatTooltip(RsDefOf.Stat.SexAbility, sexStat);
fillTexture: HistoryUtility.Tzeentch, SexSkill.LabelRight = RsDefOf.Stat.SexAbility.LabelCap + ": " + sexStat.ToStringPercent();
tooltip: GetStatTooltip(RsDefOf.Stat.SexAbility, sexStat), SexSkill.Border = HistoryUtility.GetPassionBG(skill?.passion);
labelRight: RsDefOf.Stat.SexAbility.LabelCap + ": " + sexStat.ToStringPercent(),
border: HistoryUtility.GetPassionBG(skill?.passion));
} }
private void UpdateQuirks() private void UpdateQuirks()
@ -325,13 +304,13 @@ namespace RJWSexperience.SexHistory.UI
Partners = partners; Partners = partners;
break; break;
case PartnerOrderMode.Recent: case PartnerOrderMode.Recent:
Partners = partners.OrderBy(x => x.partnerRecord.RecentSexTickAbs); Partners = partners.OrderBy(x => x.PartnerRecord.RecentSexTickAbs);
break; break;
case PartnerOrderMode.Most: case PartnerOrderMode.Most:
Partners = partners.OrderBy(x => x.partnerRecord.TotalSexCount); Partners = partners.OrderBy(x => x.PartnerRecord.TotalSexCount);
break; break;
case PartnerOrderMode.Name: case PartnerOrderMode.Name:
Partners = partners.OrderBy(x => x.partnerRecord.Label); Partners = partners.OrderBy(x => x.PartnerRecord.Label);
break; break;
} }
} }
@ -344,18 +323,16 @@ namespace RJWSexperience.SexHistory.UI
private void UpdateSelectedPartnerCard() private void UpdateSelectedPartnerCard()
{ {
SelectedPartnerCard.UpdatePartnerRecord(SelectedPartner);
if (SelectedPartner == null) if (SelectedPartner == null)
{ {
SelectedPartnerCard = default; SelectedPartnerCard.LastSexTime = null;
return; }
else
{
SelectedPartnerCard.LastSexTime = UIUtility.GetSexDays(SelectedPartner.RecentSexTickAbs);
} }
SelectedPartnerCard = new InfoCard(
pawn: Pawn,
partnerRecord: SelectedPartner,
label: Keyed.RS_Selected_Partner,
tooltipLabel: Keyed.RS_Selected_Partner,
lastSexTimeTicks: SelectedPartner.RecentSexTickAbs);
} }
private float GetStatValue(StatDef statDef) => Pawn.Dead ? 0f : Pawn.GetStatValue(statDef); private float GetStatValue(StatDef statDef) => Pawn.Dead ? 0f : Pawn.GetStatValue(statDef);

View File

@ -17,9 +17,6 @@ namespace RJWSexperience.SexHistory.UI
public const float BASESAT = UIUtility.BASESAT; public const float BASESAT = UIUtility.BASESAT;
public const float ICONSIZE = UIUtility.ICONSIZE; public const float ICONSIZE = UIUtility.ICONSIZE;
private static GUIStyle fontStyleCenter;
private static GUIStyle fontStyleRight;
private static GUIStyle fontStyleLeft;
private static GUIStyle boxStyle; private static GUIStyle boxStyle;
private static GUIStyle buttonStyle; private static GUIStyle buttonStyle;
@ -32,17 +29,13 @@ namespace RJWSexperience.SexHistory.UI
private static void InitStyles() private static void InitStyles()
{ {
if (fontStyleCenter != null) if (boxStyle != null)
{ {
return; return;
} }
GUIStyleState fontStyleState = new GUIStyleState() { textColor = Color.white };
GUIStyleState boxStyleState = GUI.skin.textArea.normal; GUIStyleState boxStyleState = GUI.skin.textArea.normal;
GUIStyleState buttonStyleState = GUI.skin.button.normal; GUIStyleState buttonStyleState = GUI.skin.button.normal;
fontStyleCenter = new GUIStyle() { alignment = TextAnchor.MiddleCenter, normal = fontStyleState };
fontStyleRight = new GUIStyle() { alignment = TextAnchor.MiddleRight, normal = fontStyleState };
fontStyleLeft = new GUIStyle() { alignment = TextAnchor.MiddleLeft, normal = fontStyleState };
boxStyle = new GUIStyle(GUI.skin.textArea) { hover = boxStyleState, onHover = boxStyleState, onNormal = boxStyleState }; boxStyle = new GUIStyle(GUI.skin.textArea) { hover = boxStyleState, onHover = boxStyleState, onNormal = boxStyleState };
buttonStyle = new GUIStyle(GUI.skin.button) { hover = buttonStyleState, onHover = buttonStyleState, onNormal = buttonStyleState }; buttonStyle = new GUIStyle(GUI.skin.button) { hover = buttonStyleState, onHover = buttonStyleState, onNormal = buttonStyleState };
} }
@ -161,13 +154,13 @@ namespace RJWSexperience.SexHistory.UI
Rect sexinfoRect2 = new Rect(rect.x + portraitRect.width, rect.y + (FONTHEIGHT * 2), rect.width - portraitRect.width, FONTHEIGHT); Rect sexinfoRect2 = new Rect(rect.x + portraitRect.width, rect.y + (FONTHEIGHT * 2), rect.width - portraitRect.width, FONTHEIGHT);
Rect bestsexRect = new Rect(rect.x + 2f, rect.y + (FONTHEIGHT * 3), rect.width - 4f, FONTHEIGHT - 2f); Rect bestsexRect = new Rect(rect.x + 2f, rect.y + (FONTHEIGHT * 3), rect.width - 4f, FONTHEIGHT - 2f);
if (context.partnerRecord != null) if (context.PartnerRecord != null)
{ {
DrawPartnerPortrait(portraitRect, context.portraitInfo); DrawPartnerPortrait(portraitRect, context.PortraitInfo);
Widgets.DrawHighlightIfMouseover(portraitRect); Widgets.DrawHighlightIfMouseover(portraitRect);
if (Widgets.ButtonInvisible(portraitRect)) if (Widgets.ButtonInvisible(portraitRect))
{ {
SexHistoryComp partnerHistory = context.partnerRecord.Partner?.TryGetComp<SexHistoryComp>(); SexHistoryComp partnerHistory = context.PartnerRecord.Partner?.TryGetComp<SexHistoryComp>();
if (partnerHistory != null) if (partnerHistory != null)
{ {
ChangePawn(partnerHistory); ChangePawn(partnerHistory);
@ -179,24 +172,29 @@ namespace RJWSexperience.SexHistory.UI
} }
} }
GUI.Label(sexinfoRect2, context.relations + " ", fontStyleRight); Text.Anchor = TextAnchor.MiddleRight;
TooltipHandler.TipRegion(rect, context.tooltip); Widgets.Label(sexinfoRect2, context.Relations + " ");
GenUI.ResetLabelAlign();
TooltipHandler.TipRegion(rect, context.Tooltip);
} }
else else
{ {
Widgets.DrawTextureFitted(portraitRect, HistoryUtility.UnknownPawn, 1.0f); Widgets.DrawTextureFitted(portraitRect, HistoryUtility.UnknownPawn, 1.0f);
} }
Widgets.Label(nameRect, context.name); Widgets.Label(nameRect, context.Name);
Widgets.Label(sexinfoRect, context.sexCount); Widgets.Label(sexinfoRect, context.SexCount);
Widgets.Label(sexinfoRect2, context.orgasms); Widgets.Label(sexinfoRect2, context.Orgasms);
UIUtility.FillableBarLabeled(bestsexRect, context.bestSextype); UIUtility.FillableBarLabeled(bestsexRect, context.BestSextype);
} }
protected void DrawSexInfoCard(Rect rect, InfoCard context) protected void DrawSexInfoCard(Rect rect, InfoCard context)
{ {
rect.SplitHorizontally(FONTHEIGHT, out Rect labelRect, out Rect infoRect); rect.SplitHorizontally(FONTHEIGHT, out Rect labelRect, out Rect infoRect);
GUI.Label(labelRect, context.label, fontStyleLeft); Text.Anchor = TextAnchor.MiddleLeft;
GUI.Label(labelRect, context.lastSexTime, fontStyleRight); Widgets.Label(labelRect, context.Label);
Text.Anchor = TextAnchor.MiddleRight;
Widgets.Label(labelRect, context.LastSexTime);
GenUI.ResetLabelAlign();
DrawInfoWithPortrait(infoRect, context); DrawInfoWithPortrait(infoRect, context);
} }
@ -211,7 +209,9 @@ namespace RJWSexperience.SexHistory.UI
{ {
DrawSexInfoCard(listmain.GetRect(CARDHEIGHT), infoCard); DrawSexInfoCard(listmain.GetRect(CARDHEIGHT), infoCard);
} }
GUI.Label(listmain.GetRect(FONTHEIGHT), Keyed.RS_PreferRace, fontStyleLeft); Text.Anchor = TextAnchor.MiddleLeft;
listmain.Label(Keyed.RS_PreferRace);
GenUI.ResetLabelAlign();
DrawPreferRace(listmain.GetRect(66f + 15f), _context.PreferedRaceCard); DrawPreferRace(listmain.GetRect(66f + 15f), _context.PreferedRaceCard);
listmain.End(); listmain.End();
} }
@ -225,22 +225,27 @@ namespace RJWSexperience.SexHistory.UI
Rect infoRect2 = new Rect(infoRect.x, infoRect.y + FONTHEIGHT, infoRect.width, FONTHEIGHT); Rect infoRect2 = new Rect(infoRect.x, infoRect.y + FONTHEIGHT, infoRect.width, FONTHEIGHT);
Rect infoRect3 = new Rect(infoRect.x, infoRect.y + (FONTHEIGHT * 2), infoRect.width - 2f, FONTHEIGHT); Rect infoRect3 = new Rect(infoRect.x, infoRect.y + (FONTHEIGHT * 2), infoRect.width - 2f, FONTHEIGHT);
Widgets.DrawTextureFitted(portraitRect, preferedRaceCard.portraitGetter(portraitRect.size), 1.0f); Widgets.DrawTextureFitted(portraitRect, preferedRaceCard.PortraitGetter(portraitRect.size), 1.0f);
GUI.Label(infoRect1, preferedRaceCard.preferRaceLabel, fontStyleLeft);
if (preferedRaceCard.preferRaceTypeLabel != null) Text.Anchor = TextAnchor.MiddleLeft;
Widgets.Label(infoRect1, preferedRaceCard.PreferRaceLabel);
if (preferedRaceCard.SexCount != null)
{ {
GUI.Label(infoRect1, preferedRaceCard.preferRaceTypeLabel + " ", fontStyleRight); Widgets.Label(infoRect2, preferedRaceCard.SexCount);
} }
if (preferedRaceCard.sexCount != null) GenUI.ResetLabelAlign();
if (preferedRaceCard.PreferRaceTypeLabel != null)
{ {
GUI.Label(infoRect2, preferedRaceCard.sexCount, fontStyleLeft); Text.Anchor = TextAnchor.MiddleRight;
Widgets.Label(infoRect1, preferedRaceCard.PreferRaceTypeLabel + " ");
} }
if (preferedRaceCard.barInfo != null) if (preferedRaceCard.BarInfo.Label != null)
{ {
UIUtility.FillableBarLabeled(infoRect3, (BarInfo)preferedRaceCard.barInfo); UIUtility.FillableBarLabeled(infoRect3, preferedRaceCard.BarInfo);
} }
} }
@ -280,8 +285,10 @@ namespace RJWSexperience.SexHistory.UI
} }
GUI.Box(nameRect, "", boxStyle); GUI.Box(nameRect, "", boxStyle);
GUI.Label(nameRect.TopHalf(), _context.Name, fontStyleCenter); Text.Anchor = TextAnchor.MiddleCenter;
GUI.Label(nameRect.BottomHalf(), _context.AgeAndTitle, fontStyleCenter); Widgets.Label(nameRect.TopHalf(), _context.Name);
Widgets.Label(nameRect.BottomHalf(), _context.AgeAndTitle);
GenUI.ResetLabelAlign();
Listing_Standard listmain = new Listing_Standard(); Listing_Standard listmain = new Listing_Standard();
listmain.Begin(infoRect); listmain.Begin(infoRect);
@ -292,7 +299,9 @@ namespace RJWSexperience.SexHistory.UI
GUI.color = Color.red; GUI.color = Color.red;
GUI.Box(tmp, "", boxStyle); GUI.Box(tmp, "", boxStyle);
GUI.color = Color.white; GUI.color = Color.white;
GUI.Label(tmp, _context.VirginLabel, fontStyleCenter); Text.Anchor = TextAnchor.MiddleCenter;
Widgets.Label(tmp, _context.VirginLabel);
GenUI.ResetLabelAlign();
listmain.Gap(1f); listmain.Gap(1f);
} }
else else
@ -304,7 +313,7 @@ namespace RJWSexperience.SexHistory.UI
listmain.FillableBarLabeled(_context.BestSextype); listmain.FillableBarLabeled(_context.BestSextype);
listmain.FillableBarLabeled(_context.RecentSextype); listmain.FillableBarLabeled(_context.RecentSextype);
if (_context.Incest.fillPercent < _context.Necro.fillPercent) if (_context.Incest.FillPercent < _context.Necro.FillPercent)
{ {
listmain.FillableBarLabeled(_context.Necro); listmain.FillableBarLabeled(_context.Necro);
} }
@ -315,16 +324,16 @@ namespace RJWSexperience.SexHistory.UI
listmain.FillableBarLabeled(_context.ConsumedCum); listmain.FillableBarLabeled(_context.ConsumedCum);
if (_context.CumHediff != null) if (_context.CumHediff.Label != "")
{ {
listmain.FillableBarLabeled((BarInfo)_context.CumHediff); listmain.FillableBarLabeled(_context.CumHediff);
} }
else else
{ {
listmain.Gap(FONTHEIGHT + 1f); listmain.Gap(FONTHEIGHT + 1f);
} }
if (_context.Raped.fillPercent < _context.BeenRaped.fillPercent) if (_context.Raped.FillPercent < _context.BeenRaped.FillPercent)
{ {
listmain.FillableBarLabeled(_context.BeenRaped); listmain.FillableBarLabeled(_context.BeenRaped);
} }
@ -382,7 +391,9 @@ namespace RJWSexperience.SexHistory.UI
listmain.Begin(rect); listmain.Begin(rect);
//Sex statistics //Sex statistics
GUI.Label(listmain.GetRect(FONTHEIGHT), " " + Keyed.RS_Statistics, fontStyleLeft); Text.Anchor = TextAnchor.MiddleLeft;
listmain.Label(" " + Keyed.RS_Statistics);
GenUI.ResetLabelAlign();
listmain.Gap(1f); listmain.Gap(1f);
for (int i = 0; i < _context.SexTypes.Count; i++) for (int i = 0; i < _context.SexTypes.Count; i++)
@ -390,10 +401,15 @@ namespace RJWSexperience.SexHistory.UI
listmain.FillableBarLabeled(_context.SexTypes[i]); listmain.FillableBarLabeled(_context.SexTypes[i]);
} }
listmain.FillableBarLabeled(_context.PartnerCount);
listmain.FillableBarLabeled(_context.VirginsTaken);
//Partner list //Partner list
Rect listLabelRect = listmain.GetRect(FONTHEIGHT); Rect listLabelRect = listmain.GetRect(FONTHEIGHT);
Rect sortbtnRect = new Rect(listLabelRect.xMax - 80f, listLabelRect.y, 80f, listLabelRect.height); Rect sortbtnRect = new Rect(listLabelRect.xMax - 80f, listLabelRect.y, 80f, listLabelRect.height);
GUI.Label(listLabelRect, " " + Keyed.RS_PartnerList, fontStyleLeft); Text.Anchor = TextAnchor.MiddleLeft;
Widgets.Label(listLabelRect, " " + Keyed.RS_PartnerList);
GenUI.ResetLabelAlign();
if (Widgets.ButtonText(sortbtnRect, orderMode.Translate())) if (Widgets.ButtonText(sortbtnRect, orderMode.Translate()))
{ {
SoundDefOf.Click.PlayOneShotOnCamera(); SoundDefOf.Click.PlayOneShotOnCamera();
@ -429,13 +445,17 @@ namespace RJWSexperience.SexHistory.UI
DrawPartnerPortrait(pawnRect, partner); DrawPartnerPortrait(pawnRect, partner);
Widgets.DrawHighlightIfMouseover(pawnRect); Widgets.DrawHighlightIfMouseover(pawnRect);
GUI.Label(labelRect, partner.partnerRecord.Label, fontStyleCenter);
Text.Anchor = TextAnchor.MiddleCenter;
Widgets.Label(labelRect, partner.PartnerRecord.Label);
GenUI.ResetLabelAlign();
if (Widgets.ButtonInvisible(pawnRect)) if (Widgets.ButtonInvisible(pawnRect))
{ {
_context.SetSelectedPartner(partner.partnerRecord); _context.SetSelectedPartner(partner.PartnerRecord);
SoundDefOf.Click.PlayOneShotOnCamera(); SoundDefOf.Click.PlayOneShotOnCamera();
} }
if (partner.partnerRecord == _context.SelectedPartner) if (partner.PartnerRecord == _context.SelectedPartner)
{ {
Widgets.DrawHighlightSelected(pawnRect); Widgets.DrawHighlightSelected(pawnRect);
} }
@ -447,22 +467,22 @@ namespace RJWSexperience.SexHistory.UI
protected void DrawPartnerPortrait(Rect rect, PartnerPortraitInfo context) protected void DrawPartnerPortrait(Rect rect, PartnerPortraitInfo context)
{ {
Rect iconRect = new Rect(rect.x + (rect.width * 3 / 4), rect.y, rect.width / 4, rect.height / 4); Rect iconRect = new Rect(rect.x + (rect.width * 3 / 4), rect.y, rect.width / 4, rect.height / 4);
Texture img = context.portraitGetter(rect.size); Texture img = context.PortraitGetter(rect.size);
if (context.partnerRecord.IamFirst) if (context.PartnerRecord.IamFirst)
{ {
GUI.color = HistoryUtility.HistoryColor; GUI.color = HistoryUtility.HistoryColor;
Widgets.DrawTextureFitted(rect, HistoryUtility.FirstOverlay, 1.0f); Widgets.DrawTextureFitted(rect, HistoryUtility.FirstOverlay, 1.0f);
GUI.color = Color.white; GUI.color = Color.white;
} }
if (context.partnerRecord.Incest) if (context.PartnerRecord.Incest)
{ {
Widgets.DrawTextureFitted(iconRect, HistoryUtility.Incest, 1.0f); Widgets.DrawTextureFitted(iconRect, HistoryUtility.Incest, 1.0f);
iconRect.x -= iconRect.width; iconRect.x -= iconRect.width;
} }
Widgets.DrawTextureFitted(rect, img, 1.0f); Widgets.DrawTextureFitted(rect, img, 1.0f);
if (context.lover) if (context.Lover)
{ {
Widgets.DrawTextureFitted(iconRect, HistoryUtility.Heart, 1.0f); Widgets.DrawTextureFitted(iconRect, HistoryUtility.Heart, 1.0f);
} }

View File

@ -52,22 +52,22 @@ namespace RJWSexperience.SexHistory.UI
public static void FillableBarLabeled(Rect rect, BarInfo context) public static void FillableBarLabeled(Rect rect, BarInfo context)
{ {
Widgets.FillableBar(rect, context.fillPercent, context.fillTexture, null, true); Widgets.FillableBar(rect, context.FillPercent, context.FillTexture, null, true);
Rect labelRect = rect.ContractedBy(4f, 0f); Rect labelRect = rect.ContractedBy(4f, 0f);
Text.Anchor = TextAnchor.MiddleLeft; Text.Anchor = TextAnchor.MiddleLeft;
Widgets.Label(labelRect, context.label); Widgets.Label(labelRect, context.Label);
if (context.labelRight != "") if (context.LabelRight != "")
{ {
Text.Anchor = TextAnchor.MiddleRight; Text.Anchor = TextAnchor.MiddleRight;
Widgets.Label(labelRect, context.labelRight); Widgets.Label(labelRect, context.LabelRight);
} }
GenUI.ResetLabelAlign(); GenUI.ResetLabelAlign();
Widgets.DrawHighlightIfMouseover(rect); Widgets.DrawHighlightIfMouseover(rect);
TooltipHandler.TipRegion(rect, context.tooltip); TooltipHandler.TipRegion(rect, context.Tooltip);
if (context.border != null) if (context.Border != null)
{ {
rect.DrawBorder(context.border, 2f); rect.DrawBorder(context.Border, 2f);
} }
} }

View File

@ -0,0 +1,27 @@
using RJWSexperience;
using Verse;
using Verse.AI;
namespace RJWSexperienceCum
{
public class JobGiver_CleanSelfWithBucket : ThinkNode_JobGiver
{
protected override Job TryGiveJob(Pawn pawn)
{
if (HediffDefOf.Hediff_CumController == null || !pawn.health.hediffSet.HasHediff(HediffDefOf.Hediff_CumController))
{
// Nothing to clean
return null;
}
Building_CumBucket bucket = pawn.FindClosestBucket();
if (bucket == null)
{
return null;
}
return JobMaker.MakeJob(JobDefOf.CleanSelfwithBucket, pawn, bucket);
}
}
}

View File

@ -1,55 +1,29 @@
<?xml version="1.0" encoding="utf-8"?> <Project Sdk="Microsoft.NET.Sdk">
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup> <PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{73CB4597-22BD-4A3E-A3CE-6D65DD080F65}</ProjectGuid> <ProjectGuid>{73CB4597-22BD-4A3E-A3CE-6D65DD080F65}</ProjectGuid>
<OutputType>Library</OutputType> <TargetFramework>net472</TargetFramework>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>RJWSexperienceCum</RootNamespace> <RootNamespace>RJWSexperienceCum</RootNamespace>
<AssemblyName>RJWSexperienceCum</AssemblyName> <AssemblyName>RJWSexperienceCum</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>..\..\Mod Compatibility\RJW Cum\Assemblies\</OutputPath> <OutputPath>..\..\Mod Compatibility\RJW Cum\Assemblies\</OutputPath>
<DefineConstants>TRACE</DefineConstants> <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<ErrorReport>prompt</ErrorReport> <Company>amevarashi</Company>
<WarningLevel>4</WarningLevel> <Optimize>True</Optimize>
<GenerateAssemblyInfo>False</GenerateAssemblyInfo>
</PropertyGroup> </PropertyGroup>
<ItemGroup>
<Reference Include="System.Core" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
</ItemGroup>
<ItemGroup>
<Compile Include="JobDefOf.cs" />
<Compile Include="ThingDefOf.cs" />
<Compile Include="JobDriver_CleanSelfWithBucket.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="HediffDefOf.cs" />
<Compile Include="WorkGiver_CleanSelfWithBucket.cs" />
</ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Krafs.Rimworld.Ref"> <PackageReference Include="Krafs.Rimworld.Ref">
<Version>1.4.3641</Version> <Version>1.4.*</Version>
</PackageReference> </PackageReference>
</ItemGroup> </ItemGroup>
<ItemGroup>
<Reference Include="RJW">
<HintPath>..\..\..\rjw\1.4\Assemblies\RJW.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\RJWSexperience\RJWSexperience.csproj"> <ProjectReference Include="..\RJWSexperience\RJWSexperience.csproj">
<Project>{9c728e06-573b-4b04-a07f-acbf60cb424d}</Project> <Project>{9c728e06-573b-4b04-a07f-acbf60cb424d}</Project>
@ -57,5 +31,4 @@
<Private>False</Private> <Private>False</Private>
</ProjectReference> </ProjectReference>
</ItemGroup> </ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project> </Project>