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> <li>Bioscaffold</li>
</thingDefs> </thingDefs>
</fixedIngredientFilter> </fixedIngredientFilter>
<!-- <appliedOnFixedBodyParts> <appliedOnFixedBodyParts>
<li>Torso</li> <li>Torso</li>
</appliedOnFixedBodyParts> --> </appliedOnFixedBodyParts>
<addsHediff>Bioscaffold</addsHediff> <addsHediff>Bioscaffold</addsHediff>
</RecipeDef> </RecipeDef>
</Defs> </Defs>

View file

@ -224,6 +224,10 @@ namespace LewdBiotech
if (laborStateIsNull) if (laborStateIsNull)
{ {
if (__instance.pawn.health.hediffSet.HasHediff(HediffDef.Named("Bioscaffold")))
{
__instance.pawn.health.RemoveHediff(__instance.pawn.health.hediffSet.GetFirstHediffOfDef(LewdBiotech.HediffDefOf.Bioscaffold));
}
return; return;
} }
@ -231,6 +235,7 @@ namespace LewdBiotech
{ {
laborStateMap.Remove(__instance.pawn.ThingID); laborStateMap.Remove(__instance.pawn.ThingID);
if (__instance.pawn.health.hediffSet.HasHediff(HediffDef.Named("Bioscaffold"))) { if (__instance.pawn.health.hediffSet.HasHediff(HediffDef.Named("Bioscaffold"))) {
__instance.pawn.health.RemoveHediff(__instance.pawn.health.hediffSet.GetFirstHediffOfDef(LewdBiotech.HediffDefOf.Bioscaffold)); __instance.pawn.health.RemoveHediff(__instance.pawn.health.hediffSet.GetFirstHediffOfDef(LewdBiotech.HediffDefOf.Bioscaffold));
} }
return; return;

View file

@ -71,7 +71,7 @@
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<PropertyGroup> <PropertyGroup>
<PostBuildEvent>copy "$(SolutionDir)Source\obj\Release\$(SolutionName).dll" "$(SolutionDir)1.4\Assemblies" <PostBuildEvent>copy "$(SolutionDir)Source\obj\Release\$(SolutionName).dll" "$(SolutionDir)1.4\Assemblies"
$(SolutionDir)..\..\RimWorldWin64.exe "$(SolutionDir)..\..\RimWorldWin64.exe"
</PostBuildEvent> </PostBuildEvent>
</PropertyGroup> </PropertyGroup>
</Project> </Project>