mirror of
				https://gitgud.io/leboeuf/lewd-biotech.git
				synced 2024-08-14 23:57:27 +00:00 
			
		
		
		
	Merge branch '1-no-operation-available-to-install-bioscaffold' into 'master'
v1.0.1 See merge request leboeuf/lewd-biotech!1
This commit is contained in:
		
						commit
						d61770b026
					
				
					 4 changed files with 8 additions and 3 deletions
				
			
		
										
											Binary file not shown.
										
									
								
							| 
						 | 
				
			
			@ -25,9 +25,9 @@
 | 
			
		|||
        <li>Bioscaffold</li>
 | 
			
		||||
      </thingDefs>
 | 
			
		||||
    </fixedIngredientFilter>
 | 
			
		||||
    <!-- <appliedOnFixedBodyParts>
 | 
			
		||||
    <appliedOnFixedBodyParts>
 | 
			
		||||
      <li>Torso</li>
 | 
			
		||||
    </appliedOnFixedBodyParts> -->
 | 
			
		||||
    </appliedOnFixedBodyParts>
 | 
			
		||||
    <addsHediff>Bioscaffold</addsHediff>
 | 
			
		||||
  </RecipeDef>
 | 
			
		||||
</Defs>
 | 
			
		||||
| 
						 | 
				
			
			@ -224,6 +224,10 @@ namespace LewdBiotech
 | 
			
		|||
 | 
			
		||||
			if (laborStateIsNull)
 | 
			
		||||
            {
 | 
			
		||||
				if (__instance.pawn.health.hediffSet.HasHediff(HediffDef.Named("Bioscaffold")))
 | 
			
		||||
				{
 | 
			
		||||
					__instance.pawn.health.RemoveHediff(__instance.pawn.health.hediffSet.GetFirstHediffOfDef(LewdBiotech.HediffDefOf.Bioscaffold));
 | 
			
		||||
				}
 | 
			
		||||
				return;
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -231,6 +235,7 @@ namespace LewdBiotech
 | 
			
		|||
			{
 | 
			
		||||
				laborStateMap.Remove(__instance.pawn.ThingID);
 | 
			
		||||
				if (__instance.pawn.health.hediffSet.HasHediff(HediffDef.Named("Bioscaffold"))) {
 | 
			
		||||
 | 
			
		||||
					__instance.pawn.health.RemoveHediff(__instance.pawn.health.hediffSet.GetFirstHediffOfDef(LewdBiotech.HediffDefOf.Bioscaffold));
 | 
			
		||||
                }
 | 
			
		||||
				return;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -71,7 +71,7 @@
 | 
			
		|||
  <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
 | 
			
		||||
  <PropertyGroup>
 | 
			
		||||
    <PostBuildEvent>copy "$(SolutionDir)Source\obj\Release\$(SolutionName).dll" "$(SolutionDir)1.4\Assemblies"
 | 
			
		||||
$(SolutionDir)..\..\RimWorldWin64.exe
 | 
			
		||||
"$(SolutionDir)..\..\RimWorldWin64.exe"
 | 
			
		||||
</PostBuildEvent>
 | 
			
		||||
  </PropertyGroup>
 | 
			
		||||
</Project>
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue