Added a near-indestructible ruin wall variant that has a higher chance of being used in rooms further away from the ruin entrance

This commit is contained in:
Regalis
2016-10-11 22:46:24 +03:00
parent f9017d3cf9
commit 9540972db4
6 changed files with 50 additions and 11 deletions
@@ -10,7 +10,7 @@ namespace Barotrauma.RuinGeneration
[Flags]
enum RuinStructureType
{
Wall = 1, CorridorWall = 2, Prop = 4, Back = 8, Door=16, Hatch=32
Wall = 1, CorridorWall = 2, Prop = 4, Back = 8, Door=16, Hatch=32, HeavyWall=64
}
class RuinStructure
@@ -88,7 +88,6 @@ namespace Barotrauma.RuinGeneration
foreach (RuinStructure ruinStructure in matchingStructures)
{
if (randomNumber <= ruinStructure.commonness)
{
return ruinStructure;