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:
leboeuf 2023-01-18 03:23:59 +00:00
commit d61770b026
4 changed files with 8 additions and 3 deletions

Binary file not shown.

View file

@ -25,9 +25,9 @@
<li>Bioscaffold</li>
</thingDefs>
</fixedIngredientFilter>
<!-- <appliedOnFixedBodyParts>
<appliedOnFixedBodyParts>
<li>Torso</li>
</appliedOnFixedBodyParts> -->
</appliedOnFixedBodyParts>
<addsHediff>Bioscaffold</addsHediff>
</RecipeDef>
</Defs>

View file

@ -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;

View file

@ -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>