Skip to content

Commit

Permalink
Potential fix for scenario-added event that can't be stand-alone.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mehni committed Oct 9, 2018
1 parent 5026017 commit 0c8de14
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ protected override List<Pawn> GeneratePawns(IncidentParms parms)
this.pawnKindDef = PawnKindDefOf.Thrumbo; //something went really wrong. Let's uh.. brush it under the rug.

else if (Find.WorldObjects.SiteAt(map.Tile) is Site site)
this.pawnKindDef = site.parts.First(predicate: x => x.def == MFI_DefOf.MFI_HuntersLodgePart).parms.animalKind;
this.pawnKindDef = site.parts.First(predicate: x => x.def == MFI_DefOf.MFI_HuntersLodgePart)?.parms?.animalKind ?? PawnKindDefOf.Thrumbo;

int num = new IntRange(min: 30, max: 50).RandomInRange;

Expand Down

0 comments on commit 0c8de14

Please sign in to comment.