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>
|
<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>
|
|
@ -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;
|
||||||
|
|
|
@ -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>
|
Loading…
Reference in a new issue