Add CVar for disabling/enabling excited groups.
This commit is contained in:
@@ -38,7 +38,7 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
|
||||
var shouldShareAir = false;
|
||||
|
||||
if (tile.ExcitedGroup != null && enemyTile.ExcitedGroup != null)
|
||||
if (ExcitedGroups && tile.ExcitedGroup != null && enemyTile.ExcitedGroup != null)
|
||||
{
|
||||
if (tile.ExcitedGroup != enemyTile.ExcitedGroup)
|
||||
{
|
||||
@@ -53,21 +53,24 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
AddActiveTile(gridAtmosphere, enemyTile);
|
||||
}
|
||||
|
||||
var excitedGroup = tile.ExcitedGroup;
|
||||
excitedGroup ??= enemyTile.ExcitedGroup;
|
||||
|
||||
if (excitedGroup == null)
|
||||
if (ExcitedGroups)
|
||||
{
|
||||
excitedGroup = new ExcitedGroup();
|
||||
gridAtmosphere.ExcitedGroups.Add(excitedGroup);
|
||||
var excitedGroup = tile.ExcitedGroup;
|
||||
excitedGroup ??= enemyTile.ExcitedGroup;
|
||||
|
||||
if (excitedGroup == null)
|
||||
{
|
||||
excitedGroup = new ExcitedGroup();
|
||||
gridAtmosphere.ExcitedGroups.Add(excitedGroup);
|
||||
}
|
||||
|
||||
if (tile.ExcitedGroup == null)
|
||||
ExcitedGroupAddTile(excitedGroup, tile);
|
||||
|
||||
if(enemyTile.ExcitedGroup == null)
|
||||
ExcitedGroupAddTile(excitedGroup, enemyTile);
|
||||
}
|
||||
|
||||
if (tile.ExcitedGroup == null)
|
||||
ExcitedGroupAddTile(excitedGroup, tile);
|
||||
|
||||
if(enemyTile.ExcitedGroup == null)
|
||||
ExcitedGroupAddTile(excitedGroup, enemyTile);
|
||||
|
||||
shouldShareAir = true;
|
||||
}
|
||||
|
||||
@@ -102,7 +105,7 @@ namespace Content.Server.Atmos.EntitySystems
|
||||
if (ConsiderSuperconductivity(gridAtmosphere, tile, true))
|
||||
remove = false;
|
||||
|
||||
if(tile.ExcitedGroup == null && remove)
|
||||
if(ExcitedGroups && tile.ExcitedGroup == null && remove)
|
||||
RemoveActiveTile(gridAtmosphere, tile);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user