Made custom interactiondef for flirt

The descriptions are still the same as chitchat
This commit is contained in:
Shabakur 2023-01-17 12:58:23 +01:00
parent 0b6bfa1ce6
commit 5c0af8a430
6 changed files with 40 additions and 4 deletions

View file

@ -42,7 +42,7 @@ namespace RJW_Genes
{
return Toils_General.Do(delegate
{
if (this.pawn.interactions.TryInteractWith(this.Target, InteractionDefOf.Chitchat))
if (this.pawn.interactions.TryInteractWith(this.Target, ThoughtDefOf.rjw_genes_flirt))
{
Need_Sex need_Sex = this.Target.needs.TryGetNeed<Need_Sex>();
need_Sex.CurLevel += -0.01f;

View file

@ -21,7 +21,7 @@ namespace RJW_Genes
if (pawn.CanReserveAndReach(target, PathEndMode.InteractionCell, Danger.Some) && target.CanReserve(pawn, 1, 0, null, false))
{
//target is not busy
if (!(((jobs != null) ? jobs.curJob : null) != null && (jobs.curJob.playerForced || !CasualSex_Helper.quickieAllowedJobs.Contains(jobs.curJob.def))))
if (!(((jobs != null) ? jobs.curJob : null) != null && jobs.curJob.playerForced))
{
float willingness = TargetWillingness(pawn, target);
if (Rand.Chance(willingness))
@ -80,7 +80,7 @@ namespace RJW_Genes
{
ModLog.Message(" find_partner(" + pawn_name + "): I interested in banging but that's cheating");
}
//Succubus has a small chance to seduce even if target is in relationship, maybe setting
//Succubus has a small chance to seduce even if target is in relationship, maybe setting like succubus can homewreck
willingness *= 0.1f;
}
else