@@ -98,7 +98,7 @@ public static bool Reroll(Pawn pawn)
9898 pawn . skills = new Pawn_SkillTracker ( pawn ) ;
9999 PawnBioAndNameGenerator . GiveAppropriateBioAndNameTo ( pawn , pawn . story . birthLastName , request . Faction . def , request . ForceNoBackstory ) ;
100100 randomTraitMethodInfo . Invoke ( null , new object [ ] { pawn , request } ) ;
101- randomSkillMethodInfo . Invoke ( null , new object [ ] { pawn } ) ;
101+ randomSkillMethodInfo . Invoke ( null , new object [ ] { pawn , request } ) ;
102102 if ( ! CheckSkillsIsSatisfied ( pawn ) || ! CheckTraitsIsSatisfied ( pawn ) )
103103 continue ;
104104
@@ -109,7 +109,6 @@ public static bool Reroll(Pawn pawn)
109109 {
110110 // internally, this method only adds custom Scenario health (as of rimworld v1.3)
111111 Find . Scenario . Notify_NewPawnGenerating ( pawn , request . Context ) ;
112-
113112 randomHealthMethodInfo . Invoke ( null , new object [ ] { pawn , request } ) ;
114113 if ( ! ( pawn . Dead || pawn . Destroyed || pawn . Downed ) )
115114 {
@@ -134,7 +133,6 @@ public static bool Reroll(Pawn pawn)
134133 Find . Scenario . Notify_PawnGenerated ( pawn , request . Context , true ) ;
135134 if ( ! CheckPawnIsSatisfied ( pawn ) )
136135 continue ;
137-
138136 // Generate Misc
139137 randomBodyTypeMethodInfo . Invoke ( null , new object [ ] { pawn , request } ) ;
140138 GeneratePawnStyle ( pawn ) ;
@@ -344,6 +342,21 @@ public static bool CheckHealthIsSatisfied(Pawn pawn)
344342 if ( pawn . health . hediffSet . hediffs . Count > 0 )
345343 return false ;
346344 break ;
345+ // case PawnFilter.HealthOptions.OnlyPositiveImplants:
346+ // var hediffs = pawn.health.hediffSet.hediffs;
347+ // Hediff onlyPositiveImplants = null;
348+ // for (int i = 0; i < hediffs.Count; i++)
349+ // {
350+ // var hediff = hediffs[i];
351+ // if (hediff is Hediff_Implant)
352+ // {
353+ // onlyPositiveImplants = hediff;
354+ // break;
355+ // }
356+ //; }
357+ // if (onlyPositiveImplants == null)
358+ // return false;
359+ // break;
347360 }
348361 return true ;
349362 }
@@ -441,11 +454,11 @@ public static void GeneratePawnStyle(Pawn pawn)
441454 pawn . story . hairDef = PawnStyleItemChooser . RandomHairFor ( pawn ) ;
442455 if ( pawn . style != null )
443456 {
444- pawn . style . beardDef = pawn . gender == Gender . Male ? PawnStyleItemChooser . ChooseStyleItem < BeardDef > ( pawn ) : BeardDefOf . NoBeard ;
457+ pawn . style . beardDef = pawn . gender == Gender . Male ? PawnStyleItemChooser . RandomBeardFor ( pawn ) : BeardDefOf . NoBeard ;
445458 if ( ModsConfig . IdeologyActive )
446459 {
447- pawn . style . FaceTattoo = PawnStyleItemChooser . ChooseStyleItem < TattooDef > ( pawn , new TattooType ? ( TattooType . Face ) ) ;
448- pawn . style . BodyTattoo = PawnStyleItemChooser . ChooseStyleItem < TattooDef > ( pawn , new TattooType ? ( TattooType . Body ) ) ;
460+ pawn . style . FaceTattoo = PawnStyleItemChooser . RandomTattooFor ( pawn , TattooType . Face ) ;
461+ pawn . style . BodyTattoo = PawnStyleItemChooser . RandomTattooFor ( pawn , TattooType . Body ) ;
449462 }
450463 else
451464 pawn . style . SetupTattoos_NoIdeology ( ) ;
0 commit comments