Skip to content

Commit

Permalink
Merge pull request #3189 from CombatExtended-Continued/armor_repair_h…
Browse files Browse the repository at this point in the history
…ostility_check

Only allow repair armor repair of non-hostile pawns.
  • Loading branch information
N7Huntsman authored Jun 15, 2024
2 parents 5eaf0d3 + f26290f commit 433a981
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Defs/JobDefs/Jobs_CE.xml
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
<JobDef>
<defName>RepairNaturalArmor</defName>
<driverClass>CombatExtended.JobDriver_RepairNaturalArmor</driverClass>
<reportString>Fixing TargetA 's natural armor.</reportString>
<reportString>Fixing TargetA's natural armor.</reportString>
</JobDef>

<JobDef>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ public override void PostPreApplyDamage(ref DamageInfo dinfo, out bool absorbed)

public override IEnumerable<FloatMenuOption> CompFloatMenuOptions(Pawn selPawn)
{
if (durabilityProps.Repairable)
if (durabilityProps.Repairable && !this.parent.HostileTo(selPawn))
{
var firstIngredientProvidedOrNotNeeded = true;
var secondIngredientProvidedOrNotNeeded = true;
Expand Down

0 comments on commit 433a981

Please sign in to comment.