Chill bounties + fixes (#23411)
* Chill bounties + fixes * localize * fix arbitage
This commit is contained in:
@@ -288,10 +288,15 @@ public sealed partial class CargoSystem
|
||||
return false;
|
||||
}
|
||||
|
||||
var complete = IsBountyComplete(uid, (EntityUid?) null, out var bountyEntities);
|
||||
|
||||
// Recursively check for mobs at any point.
|
||||
var children = xform.ChildEnumerator;
|
||||
while (children.MoveNext(out var child))
|
||||
{
|
||||
if (complete && bountyEntities.Contains(child))
|
||||
continue;
|
||||
|
||||
if (!CanSell(child, _xformQuery.GetComponent(child)))
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user