Barotrauma Client Doc
Barotrauma.LocationTypeChange Class Reference

Classes

class  Requirement
 

Public Member Functions

IReadOnlyList< string > GetMessages (Faction faction)
 
 LocationTypeChange (Identifier currentType, ContentXElement element, bool requireChangeMessages, float defaultProbability=0.0f)
 
float DetermineProbability (Location location)
 

Public Attributes

readonly Identifier CurrentType
 
readonly Identifier ChangeToType
 
readonly float Probability
 Base probability per turn for the location to change if near one of the RequiredLocations More...
 
readonly bool RequireDiscovered
 
List< RequirementRequirements = new List<Requirement>()
 
readonly ImmutableArray< IdentifierDisallowedAdjacentLocations
 The change can't happen if there's one or more of the given types of locations near this one More...
 
readonly int DisallowedProximity
 How close the location needs to be to one of the DisallowedAdjacentLocations for the change to be disabled More...
 
readonly int CooldownAfterChange
 The location can't change it's type for this many turns after this location type changes occurs More...
 
readonly Point RequiredDurationRange
 

Detailed Description

Definition at line 11 of file LocationTypeChange.cs.

Constructor & Destructor Documentation

◆ LocationTypeChange()

Barotrauma.LocationTypeChange.LocationTypeChange ( Identifier  currentType,
ContentXElement  element,
bool  requireChangeMessages,
float  defaultProbability = 0.0f 
)

Definition at line 178 of file LocationTypeChange.cs.

Member Function Documentation

◆ DetermineProbability()

float Barotrauma.LocationTypeChange.DetermineProbability ( Location  location)

Definition at line 218 of file LocationTypeChange.cs.

◆ GetMessages()

IReadOnlyList<string> Barotrauma.LocationTypeChange.GetMessages ( Faction  faction)

Definition at line 140 of file LocationTypeChange.cs.

Member Data Documentation

◆ ChangeToType

readonly Identifier Barotrauma.LocationTypeChange.ChangeToType

Definition at line 126 of file LocationTypeChange.cs.

◆ CooldownAfterChange

readonly int Barotrauma.LocationTypeChange.CooldownAfterChange

The location can't change it's type for this many turns after this location type changes occurs

Definition at line 174 of file LocationTypeChange.cs.

◆ CurrentType

readonly Identifier Barotrauma.LocationTypeChange.CurrentType

Definition at line 124 of file LocationTypeChange.cs.

◆ DisallowedAdjacentLocations

readonly ImmutableArray<Identifier> Barotrauma.LocationTypeChange.DisallowedAdjacentLocations

The change can't happen if there's one or more of the given types of locations near this one

Definition at line 164 of file LocationTypeChange.cs.

◆ DisallowedProximity

readonly int Barotrauma.LocationTypeChange.DisallowedProximity

How close the location needs to be to one of the DisallowedAdjacentLocations for the change to be disabled

Definition at line 169 of file LocationTypeChange.cs.

◆ Probability

readonly float Barotrauma.LocationTypeChange.Probability

Base probability per turn for the location to change if near one of the RequiredLocations

Definition at line 131 of file LocationTypeChange.cs.

◆ RequiredDurationRange

readonly Point Barotrauma.LocationTypeChange.RequiredDurationRange

Definition at line 176 of file LocationTypeChange.cs.

◆ RequireDiscovered

readonly bool Barotrauma.LocationTypeChange.RequireDiscovered

Definition at line 133 of file LocationTypeChange.cs.

◆ Requirements

List<Requirement> Barotrauma.LocationTypeChange.Requirements = new List<Requirement>()

Definition at line 135 of file LocationTypeChange.cs.