Exemple #1
0
 public void ClaimGrave(Building_Grave newGrave)
 {
     if (newGrave.assignedPawn != this.pawn)
     {
         this.UnclaimGrave();
         if (newGrave.assignedPawn != null)
         {
             newGrave.assignedPawn.ownership.UnclaimBed();
         }
         newGrave.assignedPawn = this.pawn;
         newGrave.GetStoreSettings().Priority = StoragePriority.Critical;
         this.AssignedGrave = newGrave;
     }
 }
 public bool ClaimGrave(Building_Grave newGrave)
 {
     if (newGrave.AssignedPawn == pawn)
     {
         return(false);
     }
     UnclaimGrave();
     if (newGrave.AssignedPawn != null)
     {
         newGrave.AssignedPawn.ownership.UnclaimGrave();
     }
     newGrave.CompAssignableToPawn.ForceAddPawn(pawn);
     newGrave.GetStoreSettings().Priority = StoragePriority.Critical;
     AssignedGrave = newGrave;
     return(true);
 }