mirror of
https://github.com/amevarashi/RJW-Sexperience.git
synced 2024-08-14 23:54:08 +00:00
Rename source folder
This commit is contained in:
parent
0a412a0060
commit
a4c046a841
55 changed files with 0 additions and 0 deletions
29
Source/RJWSexperience/ExtensionMethods/SexPropsExtensions.cs
Normal file
29
Source/RJWSexperience/ExtensionMethods/SexPropsExtensions.cs
Normal file
|
@ -0,0 +1,29 @@
|
|||
using Verse;
|
||||
using rjw;
|
||||
|
||||
namespace RJWSexperience.ExtensionMethods
|
||||
{
|
||||
public static class SexPropsExtensions
|
||||
{
|
||||
public static Pawn GetInteractionInitiator(this SexProps props)
|
||||
{
|
||||
if (props.isReceiver)
|
||||
{
|
||||
return props.partner;
|
||||
}
|
||||
else
|
||||
{
|
||||
return props.pawn;
|
||||
}
|
||||
}
|
||||
|
||||
public static bool IsBestiality(this SexProps props)
|
||||
{
|
||||
if (props.partner != null)
|
||||
{
|
||||
return props.pawn.IsAnimal() ^ props.partner.IsAnimal();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue