Skip to content

Commit

Permalink
Only allow repair armor repair of non-hostile pawns.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thorbane committed Jun 13, 2024
1 parent f91f5e3 commit 3aa94fe
Showing 1 changed file with 1 addition and 1 deletion.
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 3aa94fe

Please sign in to comment.