mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2026-06-18 19:25:57 +00:00
- Removed DDS Files - Added Initial Support for Rimworld 1.6 - Added Additional mod requirement to PatchBSShared.xml to prevent premature loading. - Refactored Cumpilation integration to make it optional rather then a Required Mod. - Disabled succubus tail interactions pending rewrite for RJW's new interactions system. - Disabled Quirks pending rewrite RJW separating them into their own mod.
27 lines
No EOL
774 B
C#
27 lines
No EOL
774 B
C#
using System;
|
|
using Verse;
|
|
using Verse.AI;
|
|
using rjw;
|
|
namespace RJW_Genes
|
|
{
|
|
public class LifeForceMentalState : MentalState
|
|
{
|
|
//1.6 Change, delta is now passed to MentalStateTick
|
|
public override void MentalStateTick(int delta)
|
|
{
|
|
//1.6 Update change
|
|
//if (this.pawn.IsHashIntervalTick(150) && !GeneUtility.HasCriticalLifeForce(this.pawn))
|
|
if (this.pawn.IsHashIntervalTick(150, delta) && !GeneUtility.HasCriticalLifeForce(this.pawn))
|
|
{
|
|
Pawn_JobTracker jobs = this.pawn.jobs;
|
|
if (!(((jobs != null) ? jobs.curDriver : null) is JobDriver_Sex))
|
|
{
|
|
base.RecoverFromState();
|
|
return;
|
|
}
|
|
}
|
|
//1.6 Change, delta is now passed to MentalStateTick
|
|
base.MentalStateTick(delta);
|
|
}
|
|
}
|
|
} |