mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-15 00:23:31 +00:00
New cleaner method to obtain racegroupdefs and bugfix in Patch_OrgasmRush
This commit is contained in:
parent
c500d4d3c5
commit
b497b9cfc2
8 changed files with 80 additions and 168 deletions
|
@ -42,8 +42,7 @@ namespace RJW_BGS
|
|||
public static List<GeneDef> SelectGenes(Pawn pawn)
|
||||
{
|
||||
List<GeneDef> genelist = new List<GeneDef>();
|
||||
PawnKindDef pawnKindDef = pawn.kindDef;
|
||||
RaceGeneDef raceGeneDef = RJWcopy.GetRaceGenDefInternal(pawnKindDef);
|
||||
RaceGeneDef raceGeneDef = RJWcopy.GetRaceGeneDefInternal(pawn);
|
||||
if (raceGeneDef != null)
|
||||
{
|
||||
foreach (BestialityGeneInheritanceDef gene in raceGeneDef.genes)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue