2023-01-17 07:56:26 +00:00
|
|
|
|
using Verse;
|
2022-12-29 15:08:22 +00:00
|
|
|
|
using rjw.Modules.Interactions;
|
|
|
|
|
using rjw.Modules.Interactions.Internals.Implementation;
|
|
|
|
|
using rjw.Modules.Interactions.Objects;
|
|
|
|
|
|
2023-01-17 07:56:26 +00:00
|
|
|
|
//Modified code based of RJW-AI code at https://gitgud.io/Ed86/rjw-ia/-/tree/master/
|
2022-12-29 15:08:22 +00:00
|
|
|
|
namespace RJW_Genes
|
|
|
|
|
{
|
|
|
|
|
[StaticConstructorOnStartup]
|
|
|
|
|
public class SubSuccubusTailCustomRequirementHandler : ICustomRequirementHandler
|
|
|
|
|
{
|
|
|
|
|
public string HandlerKey
|
|
|
|
|
{
|
|
|
|
|
get
|
|
|
|
|
{
|
|
|
|
|
return "SubSuccubusTailCustomRequirementHandler";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
static SubSuccubusTailCustomRequirementHandler()
|
|
|
|
|
{
|
|
|
|
|
Register();
|
|
|
|
|
}
|
|
|
|
|
public static void Register()
|
|
|
|
|
{
|
|
|
|
|
InteractionRequirementService.CustomRequirementHandlers.Add(new SubSuccubusTailCustomRequirementHandler());
|
|
|
|
|
if (Prefs.DevMode)
|
|
|
|
|
{
|
|
|
|
|
Log.Message("SubSuccubusTailCustomRequirementHandler registered: ");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public bool FufillRequirements(InteractionWithExtension interaction, InteractionPawn dominant, InteractionPawn submissive)
|
|
|
|
|
{
|
|
|
|
|
if (GeneUtility.HasGeneNullCheck(submissive.Pawn, GeneDefOf.rjw_genes_succubus_tail))
|
|
|
|
|
{
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
//public static readonly StringListDef filter = DefDatabase<StringListDef>.GetNamed("SubSuccubusTailFilter");
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-01-17 07:56:26 +00:00
|
|
|
|
|