mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-10 12:46:54 +00:00
1f865320b0
Adds lifeforce gene and functions for gaining lifeforce from oral sex and mental break if lifeforce reaches zero. Also add succubus wings drawn by me
23 lines
479 B
C#
23 lines
479 B
C#
using System;
|
|
using Verse;
|
|
using Verse.AI;
|
|
using rjw;
|
|
namespace RJW_Genes
|
|
{
|
|
public class LifeForceMentalState : MentalState
|
|
{
|
|
public override void MentalStateTick()
|
|
{
|
|
if (this.pawn.IsHashIntervalTick(150) && !GeneUtility.HasCriticalLifeForce(this.pawn))
|
|
{
|
|
Pawn_JobTracker jobs = this.pawn.jobs;
|
|
if (!(((jobs != null) ? jobs.curDriver : null) is JobDriver_Sex))
|
|
{
|
|
base.RecoverFromState();
|
|
return;
|
|
}
|
|
}
|
|
base.MentalStateTick();
|
|
}
|
|
}
|
|
} |