示例#1
0
 public override void ApplyOnPawn(Pawn pawn, BodyPartRecord part, Pawn billDoer, List <Thing> ingredients, Bill bill)
 {
     if (billDoer != null)
     {
         if (CheckSurgeryFail(billDoer, pawn, ingredients, part, bill))
         {
             return;
         }
     }
     //Cleanup any witcher 'Hediff's
     WitcherUtilities.HediffCleanup(pawn);
     //Apply required 'Hediff'
     pawn.health.AddHediff(HediffDefOf.WitcherTrials_Hediff_Dreams, part, null, null);
     //Adjust the visible surgery list (maintain the sequential nature)
     HarmonyPatches.CreateRecipes(pawn);
 }
示例#2
0
 public override void ApplyOnPawn(Pawn pawn, BodyPartRecord part, Pawn billDoer, List <Thing> ingredients, Bill bill)
 {
     if (billDoer != null)
     {
         if (CheckSurgeryFail(billDoer, pawn, ingredients, part, bill))
         {
             return;
         }
     }
     //Cleanup any witcher 'Hediff's
     WitcherUtilities.HediffCleanup(pawn);
     //Apply required 'Hediff'
     pawn.health.AddHediff(HediffDefOf.WitcherTrials_Hediff_Elders, part, null, null);
     //Adjust the visible surgery list (maintain the sequential nature)
     HarmonyPatches.CreateRecipes(pawn);
     //Change pawn haircolor to white
     pawn.story.hairColor = Color.white;
     //force redraw pawn hair
     pawn.Drawer.renderer.graphics.ResolveAllGraphics();
 }