Skip to content

Commit

Permalink
Merge pull request #569 from zymex22/issue568
Browse files Browse the repository at this point in the history
#568 Prevents SAL Deep drilling despite forbidden setting
  • Loading branch information
Sn1p3rr3c0n authored Mar 6, 2022
2 parents d5a3c25 + fb48638 commit 4df75ca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ public bool TrargetReady()

if ((my_workTable != null && (!my_workTable.CurrentlyUsableForBills() || !my_workTable.billStack.AnyShouldDoNow) ) ||
(researchBench != null && (Find.ResearchManager.currentProj == null || !Find.ResearchManager.currentProj.CanBeResearchedAt(researchBench,false) )) ||
(drilltypeBuilding != null && drilltypeBuilding.TryGetComp<CompDeepDrill>().CanDrillNow() == false )
(drilltypeBuilding != null && drilltypeBuilding.TryGetComp<CompDeepDrill>().CanDrillNow() == false || (drilltypeBuilding.GetComp<CompForbiddable>()?.Forbidden ?? false))
)
{
return false;
Expand Down

0 comments on commit 4df75ca

Please sign in to comment.