Skip to content

Commit

Permalink
Merge pull request #3510 from CombatExtended-Continued/burning-ammo
Browse files Browse the repository at this point in the history
Disregard burning ammunition when reloading turrets
  • Loading branch information
N7Huntsman authored Oct 31, 2024
2 parents 3a60846 + e64e9bc commit 5afa40a
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,11 @@ private static Thing FindBestAmmo(Pawn pawn, AmmoDef requestedAmmo)
return false;
}

if (potentialAmmo.IsBurning())
{
return false;
}

if (potentialAmmo.IsForbidden(pawn) || !pawn.CanReserve(potentialAmmo))
{
return false;
Expand Down

0 comments on commit 5afa40a

Please sign in to comment.