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.
28 lines
1 KiB
C#
28 lines
1 KiB
C#
|
|
using RimWorld;
|
|
using System;
|
|
using Verse;
|
|
|
|
namespace RJW_Genes
|
|
{
|
|
public class HediffComp_ProcessCumbucket : HediffComp
|
|
{
|
|
|
|
public HediffsCompProperties_ProcessCumbucketMTB Props
|
|
{
|
|
get
|
|
{
|
|
return (HediffsCompProperties_ProcessCumbucketMTB)this.props;
|
|
}
|
|
}
|
|
|
|
public override void CompPostTick(ref float severityAdjustment)
|
|
{
|
|
if (this.Props.mtbDaysPerStage[this.parent.CurStageIndex] > 0f && base.Pawn.IsHashIntervalTick(60) && Rand.MTBEventOccurs(this.Props.mtbDaysPerStage[this.parent.CurStageIndex], 60000f, 60f))
|
|
{
|
|
ModLog.Debug($"Triggered HediffComp_ProcessCumbucket CompPostTick - Starting a JobDriver ProcessCumbucket for {this.parent.pawn}");
|
|
this.Pawn.jobs.StartJob(JobMaker.MakeJob(DefDatabase<JobDef>.GetNamed("RJW_Genes_ProcessCumbucket")), lastJobEndCondition: Verse.AI.JobCondition.InterruptForced, resumeCurJobAfterwards: true);
|
|
}
|
|
}
|
|
}
|
|
}
|