mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-15 00:23:31 +00:00
Rescued Succubus Artifacts
This commit is contained in:
parent
51b988f18c
commit
eab2485787
12 changed files with 650 additions and 1 deletions
|
@ -0,0 +1,51 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
using RimWorld;
|
||||
using rjw.Modules.Interactions;
|
||||
using rjw.Modules.Interactions.Internals.Implementation;
|
||||
using rjw.Modules.Interactions.Objects;
|
||||
using rjw;
|
||||
using rjw.Modules.Interactions.Enums;
|
||||
|
||||
//Modefied code based of RJW-AI code at https://gitgud.io/Ed86/rjw-ia/-/tree/master/
|
||||
namespace RJW_Genes
|
||||
{
|
||||
[StaticConstructorOnStartup]
|
||||
public class DomSuccubusTailCustomRequirementHandler : ICustomRequirementHandler
|
||||
{
|
||||
public string HandlerKey
|
||||
{
|
||||
get
|
||||
{
|
||||
return "DomSuccubusTailCustomRequirementHandler";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
static DomSuccubusTailCustomRequirementHandler()
|
||||
{
|
||||
Register();
|
||||
}
|
||||
public static void Register()
|
||||
{
|
||||
InteractionRequirementService.CustomRequirementHandlers.Add(new DomSuccubusTailCustomRequirementHandler());
|
||||
if (Prefs.DevMode)
|
||||
{
|
||||
Log.Message("DomSuccubusTailCustomRequirementHandler registered: ");
|
||||
}
|
||||
}
|
||||
|
||||
public bool FufillRequirements(InteractionWithExtension interaction, InteractionPawn dominant, InteractionPawn submissive)
|
||||
{
|
||||
if (GeneUtility.HasGeneNullCheck(dominant.Pawn, GeneDefOf.rjw_genes_succubus_tail))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue