79 lines
4.4 KiB
C#
79 lines
4.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Verse;
|
|
using RimWorld;
|
|
|
|
namespace RJWSexperience
|
|
{
|
|
public static class VariousDefOf
|
|
{
|
|
public static readonly RecordDef NumofEatenCum = DefDatabase<RecordDef>.GetNamed("NumofEatenCum");
|
|
public static readonly RecordDef AmountofEatenCum = DefDatabase<RecordDef>.GetNamed("AmountofEatenCum");
|
|
public static readonly RecordDef Lust = DefDatabase<RecordDef>.GetNamed("Lust");
|
|
public static readonly RecordDef VaginalSexCount = DefDatabase<RecordDef>.GetNamed("VaginalSexCount");
|
|
public static readonly RecordDef AnalSexCount = DefDatabase<RecordDef>.GetNamed("AnalSexCount");
|
|
public static readonly RecordDef OralSexCount = DefDatabase<RecordDef>.GetNamed("OralSexCount");
|
|
public static readonly RecordDef BlowjobCount = DefDatabase<RecordDef>.GetNamed("BlowjobCount");
|
|
public static readonly RecordDef CunnilingusCount = DefDatabase<RecordDef>.GetNamed("CunnilingusCount");
|
|
public static readonly RecordDef GenitalCaressCount = DefDatabase<RecordDef>.GetNamed("GenitalCaressCount");
|
|
public static readonly RecordDef HandjobCount = DefDatabase<RecordDef>.GetNamed("HandjobCount");
|
|
public static readonly RecordDef FingeringCount = DefDatabase<RecordDef>.GetNamed("FingeringCount");
|
|
public static readonly RecordDef FootjobCount = DefDatabase<RecordDef>.GetNamed("FootjobCount");
|
|
public static readonly RecordDef MiscSexualBehaviorCount = DefDatabase<RecordDef>.GetNamed("MiscSexualBehaviorCount");
|
|
public static readonly RecordDef SexPartnerCount = DefDatabase<RecordDef>.GetNamed("SexPartnerCount");
|
|
public static readonly RecordDef OrgasmCount = DefDatabase<RecordDef>.GetNamed("OrgasmCount");
|
|
public static readonly SkillDef SexSkill = DefDatabase<SkillDef>.GetNamed("Sex");
|
|
public static readonly ThoughtDef_Recordbased AteCum = DefDatabase<ThoughtDef_Recordbased>.GetNamed("AteCum");
|
|
public static readonly PawnRelationDef Bastard = DefDatabase<PawnRelationDef>.GetNamed("Bastard");
|
|
public static readonly ThingDef GatheredCum = DefDatabase<ThingDef>.GetNamed("GatheredCum");
|
|
public static readonly ThingDef FilthCum = ThingDef.Named("FilthCum");
|
|
public static readonly ThingDef FilthGirlcum = ThingDef.Named("FilthGirlCum");
|
|
public static readonly HediffDef CumAddiction = DefDatabase<HediffDef>.GetNamed("CumAddiction");
|
|
public static readonly HediffDef CumTolerance = DefDatabase<HediffDef>.GetNamed("CumTolerance");
|
|
public static readonly ChemicalDef Cum = DefDatabase<ChemicalDef>.GetNamed("Cum");
|
|
public static readonly NeedDef Chemical_Cum = DefDatabase<NeedDef>.GetNamed("Chemical_Cum");
|
|
public static readonly TraitDef Virgin = DefDatabase<TraitDef>.GetNamed("Virgin");
|
|
public static readonly JobDef CleanSelfwithBucket = DefDatabase<JobDef>.GetNamed("CleanSelfwithBucket");
|
|
public static readonly PawnRelationDef relation_birthgiver = DefDatabase<PawnRelationDef>.GetNamed("RJW_Sire");
|
|
public static readonly PawnRelationDef relation_spawn = DefDatabase<PawnRelationDef>.GetNamed("RJW_Pup");
|
|
public static readonly KeyBindingDef OpenSexStatistics = DefDatabase<KeyBindingDef>.GetNamed("OpenSexStatistics");
|
|
|
|
public static float CumneedLevelOffset
|
|
{
|
|
get
|
|
{
|
|
if (cumneedLevelOffsetcache == null)
|
|
{
|
|
CreateCumCompCache();
|
|
}
|
|
return cumneedLevelOffsetcache ?? 1.0f;
|
|
}
|
|
}
|
|
public static float CumexistingAddictionSeverityOffset
|
|
{
|
|
get
|
|
{
|
|
if (cumexistingAddictionSeverityOffsetcache == null)
|
|
{
|
|
CreateCumCompCache();
|
|
}
|
|
return cumexistingAddictionSeverityOffsetcache ?? 1.0f;
|
|
}
|
|
}
|
|
|
|
private static void CreateCumCompCache()
|
|
{
|
|
CompProperties_Drug comp = (CompProperties_Drug)GatheredCum.comps.FirstOrDefault(x => x is CompProperties_Drug);
|
|
cumneedLevelOffsetcache = comp.needLevelOffset;
|
|
cumexistingAddictionSeverityOffsetcache = comp.existingAddictionSeverityOffset;
|
|
}
|
|
|
|
|
|
private static float? cumneedLevelOffsetcache = null;
|
|
private static float? cumexistingAddictionSeverityOffsetcache = null;
|
|
}
|
|
}
|