Some more fabricable chemicals, made cargo missions more common, items in characters' inventories aren't affected by fire

This commit is contained in:
Regalis
2016-04-24 20:33:33 +03:00
parent c08029dea8
commit 45e3bed07c
9 changed files with 75 additions and 16 deletions

View File

@@ -250,7 +250,7 @@ namespace Barotrauma
foreach (Item item in Item.ItemList)
{
if (item.CurrentHull != hull || item.FireProof || item.Condition <= 0.0f) continue;
//if (item.ParentInventory != null) return;
if (item.ParentInventory != null && item.ParentInventory.Owner is Character) return;
float range = (float)Math.Sqrt(size.X) * 10.0f;
if (item.Position.X < position.X - range || item.Position.X > position.X + size.X + range) continue;