mirror of
https://github.com/vegapnk/RJW-Genes.git
synced 2024-08-15 00:23:31 +00:00
Minor Cleanups
This commit is contained in:
parent
4cd77eba50
commit
ba7b72b426
2 changed files with 11 additions and 10 deletions
|
@ -1,11 +1,8 @@
|
|||
using System;
|
||||
using rjw;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using rjw;
|
||||
using Verse;
|
||||
using RimWorld;
|
||||
|
||||
namespace RJW_BGS
|
||||
{
|
||||
|
@ -44,6 +41,7 @@ namespace RJW_BGS
|
|||
}).ToList<RaceGeneDef>();
|
||||
if (pawnKindDefs.Count() > 0)
|
||||
return pawnKindDefs;
|
||||
|
||||
List<RaceGeneDef> raceKindDefs = allDefs.Where(delegate (RaceGeneDef group)
|
||||
{
|
||||
List<string> raceNames = group.raceNames;
|
||||
|
@ -51,6 +49,7 @@ namespace RJW_BGS
|
|||
}).ToList<RaceGeneDef>();
|
||||
if (raceKindDefs.Count() > 0)
|
||||
return raceKindDefs;
|
||||
|
||||
List<RaceGeneDef> raceGroupDefs = new List<RaceGeneDef>();
|
||||
if (raceGroupDef != null)
|
||||
{
|
||||
|
@ -60,8 +59,10 @@ namespace RJW_BGS
|
|||
return raceGroupDefName != null && raceGroupDefName == raceGroupDef.defName;
|
||||
}).ToList<RaceGeneDef>();
|
||||
}
|
||||
|
||||
if (raceGroupDefs.Count() > 0)
|
||||
return raceGroupDefs;
|
||||
|
||||
return new List<RaceGeneDef>();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue