mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-15 00:23:31 +00:00
LordJob and LordToil Fininished
Succubus will not when spawned rape target, and afterward will follow target. Succubus will target someone else at random or when target is unreachable or sleeping
This commit is contained in:
parent
84c4587a18
commit
7958f021b9
11 changed files with 270 additions and 4 deletions
34
Source/Genes/Life_Force/LordToil_Flirt.cs
Normal file
34
Source/Genes/Life_Force/LordToil_Flirt.cs
Normal file
|
@ -0,0 +1,34 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
using Verse.AI;
|
||||
using Verse.AI.Group;
|
||||
using RimWorld;
|
||||
namespace RJW_Genes
|
||||
{
|
||||
//Based on LordToil_EscortPawn
|
||||
public class LordToil_Flirt : LordToil
|
||||
{
|
||||
public LordToil_Flirt(Pawn victim, float followRadius)
|
||||
{
|
||||
this.victim = victim;
|
||||
this.followRadius = followRadius;
|
||||
}
|
||||
|
||||
|
||||
public override void UpdateAllDuties()
|
||||
{
|
||||
for (int i = 0; i < this.lord.ownedPawns.Count; i++)
|
||||
{
|
||||
PawnDuty duty = new PawnDuty(GeneDefOf.rjw_genes_flirt, this.victim, this.followRadius);
|
||||
this.lord.ownedPawns[i].mindState.duty = duty;
|
||||
}
|
||||
}
|
||||
|
||||
public Pawn victim;
|
||||
public float followRadius;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue