mirror of
https://github.com/amevarashi/RJW-Sexperience.git
synced 2024-08-14 23:54:08 +00:00
Simplified virginity checks
Updated names in the SexHistoryComp
This commit is contained in:
parent
67c2328ad6
commit
ab485c677f
7 changed files with 83 additions and 86 deletions
|
@ -19,11 +19,22 @@ namespace RJWSexperience.ExtensionMethods
|
|||
|
||||
public static bool IsBestiality(this SexProps props)
|
||||
{
|
||||
if (props.partner != null)
|
||||
if (props.hasPartner())
|
||||
{
|
||||
return props.pawn.IsAnimal() ^ props.partner.IsAnimal();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get a not-so-unique ID. Same interaction between the same partners will return same ID
|
||||
/// </summary>
|
||||
public static int GetTempId(this SexProps props)
|
||||
{
|
||||
return props.pawn.GetHashCode() ^
|
||||
(props.partner?.GetHashCode() ?? 0) ^
|
||||
props.dictionaryKey.GetHashCode() ^
|
||||
(props.isReceiver ? 0 : 1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue