mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-15 00:23:31 +00:00
Added PheromoneSpit Gene
This commit is contained in:
parent
48e06ff97f
commit
a68c263aa1
7 changed files with 171 additions and 31 deletions
|
@ -0,0 +1,31 @@
|
|||
using RimWorld;
|
||||
using rjw;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
using Verse.AI;
|
||||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class CompAbilityEffect_PheromoneSpit : CompAbilityEffect
|
||||
{
|
||||
bool fired = false;
|
||||
private new CompProperties_AbilityPheromoneSpit Props
|
||||
{
|
||||
get
|
||||
{
|
||||
return (CompProperties_AbilityPheromoneSpit)this.props;
|
||||
}
|
||||
}
|
||||
|
||||
public override void Apply(LocalTargetInfo target, LocalTargetInfo dest)
|
||||
{
|
||||
base.Apply(target, dest);
|
||||
AnimalBreedingHelper.DoAnimalBreedingPulse(target.Pawn, Props.calldistance);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue