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.
30 lines
707 B
C#
30 lines
707 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Verse;
|
|
|
|
namespace RJW_Genes
|
|
{
|
|
public class Gene_NoSexNeed : Gene
|
|
{
|
|
|
|
public override void Tick()
|
|
{
|
|
base.Tick();
|
|
|
|
if (!pawn.IsHashIntervalTick(3000))
|
|
return;
|
|
if (!pawn.ageTracker.Adult)
|
|
return;
|
|
|
|
if ((bool)(pawn?.genes?.HasActiveGene(GeneDefOf.rjw_genes_no_sex_need)))
|
|
{
|
|
var sex_need = pawn?.needs?.TryGetNeed<rjw.Need_Sex>();
|
|
if (sex_need != null)
|
|
sex_need.CurLevelPercentage = 0.6f;
|
|
}
|
|
}
|
|
}
|
|
}
|