(73da2532a) Only repairable items are indestructible in outposts (oxygen tanks, ammo boxes, etc can still deteriorate normally).
This commit is contained in:
@@ -4343,7 +4343,7 @@ namespace Barotrauma
|
||||
GUITextBox xmlPathElement = null;
|
||||
void UpdatePaths()
|
||||
{
|
||||
string pathBase = $"Mods/Characters/{Name}/{Name}";
|
||||
string pathBase = $"Content/Characters/{Name}/{Name}";
|
||||
XMLPath = $"{pathBase}.xml";
|
||||
TexturePath = $"{pathBase}.png";
|
||||
texturePathElement.Text = TexturePath;
|
||||
|
||||
@@ -417,7 +417,10 @@ namespace Barotrauma
|
||||
if (me.Submarine != this) { continue; }
|
||||
if (me is Item item)
|
||||
{
|
||||
item.Indestructible = true;
|
||||
if (item.GetComponent<Repairable>() != null)
|
||||
{
|
||||
item.Indestructible = true;
|
||||
}
|
||||
foreach (ItemComponent ic in item.Components)
|
||||
{
|
||||
if (ic is ConnectionPanel connectionPanel)
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user