mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-15 00:23:31 +00:00
Restructuring, some sorting into folders
This commit is contained in:
parent
ac1fdc99be
commit
31e96bd5e3
36 changed files with 80 additions and 65 deletions
23
Source/Genes/Life_Force/MentalStates/LifeForceMentalState.cs
Normal file
23
Source/Genes/Life_Force/MentalStates/LifeForceMentalState.cs
Normal file
|
@ -0,0 +1,23 @@
|
|||
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();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue