mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-15 00:23:31 +00:00
Added a Gene for Specified Sex using RJW Logic
This commit is contained in:
parent
bf4303177e
commit
95fc9b89a0
42 changed files with 318 additions and 186 deletions
|
@ -4,7 +4,7 @@ using RimWorld;
|
|||
|
||||
namespace RJW_Genes
|
||||
{
|
||||
public class Gene_NoPenis : Gene
|
||||
public class Gene_NoPenis : RJW_Gene
|
||||
{
|
||||
|
||||
internal Hediff removed_penis;
|
||||
|
@ -15,11 +15,9 @@ namespace RJW_Genes
|
|||
public override void PostMake()
|
||||
{
|
||||
base.PostMake();
|
||||
if (GenitaliaUtility.PawnStillNeedsGenitalia(pawn))
|
||||
Sexualizer.sexualize_pawn(pawn);
|
||||
|
||||
// Penis are only added for male pawns!
|
||||
if (pawn.gender == Gender.Male && removed_penis == null)
|
||||
// Penis are only removed for male pawns!
|
||||
if (GenderUtility.IsMale(pawn) && removed_penis == null)
|
||||
{
|
||||
RemoveButStorePenis();
|
||||
}
|
||||
|
@ -29,8 +27,8 @@ namespace RJW_Genes
|
|||
{
|
||||
base.PostAdd();
|
||||
|
||||
// Penis are only added for male pawns!
|
||||
if (pawn.gender == Gender.Male && removed_penis == null)
|
||||
// Penis are only removed for male pawns!
|
||||
if (GenderUtility.IsMale(pawn) && removed_penis == null)
|
||||
{
|
||||
RemoveButStorePenis();
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue