Exemple #1
0
 protected override void ModifyPawn(Pawn p)
 {
     if (Rand.Value < this.chance && p.needs != null)
     {
         Need need = p.needs.TryGetNeed(this.need);
         if (need != null)
         {
             need.ForceSetLevel(this.levelRange.RandomInRange);
         }
     }
 }
Exemple #2
0
 protected override void ModifyPawnPostGenerate(Pawn p, bool redressed)
 {
     if (p.needs != null)
     {
         Need need = p.needs.TryGetNeed(this.need);
         if (need != null)
         {
             need.ForceSetLevel(this.levelRange.RandomInRange);
         }
     }
 }