Tweaks for the holopad (#33928)
* Initial commit * AIs get a warning when trying to answer long distance calls * Better handling of ending telephone calls * Fixed issue with duplicated holopad window when an AI answers a summons * Changed how ranges are handled, added the bluespace holopad * Bug fixes * More bug fixes * More bug fixes * Update Resources/Prototypes/Entities/Structures/Machines/holopad.yml Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> * Update Resources/Prototypes/Entities/Structures/Machines/holopad.yml Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com> --------- Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
This commit is contained in:
@@ -52,11 +52,28 @@ public sealed partial class TelephoneComponent : Component
|
||||
public TelephoneVolume SpeakerVolume = TelephoneVolume.Whisper;
|
||||
|
||||
/// <summary>
|
||||
/// The range at which the telephone can connect to another
|
||||
/// The maximum range at which the telephone initiate a call with another
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public TelephoneRange TransmissionRange = TelephoneRange.Grid;
|
||||
|
||||
/// <summary>
|
||||
/// This telephone will ignore devices that share the same grid as it
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// This bool will be ignored if the <see cref="TransmissionRange"/> is
|
||||
/// set to <see cref="TelephoneRange.Grid"/>
|
||||
/// </remarks>
|
||||
[DataField]
|
||||
public bool IgnoreTelephonesOnSameGrid = false;
|
||||
|
||||
/// <summary>
|
||||
/// The telephone can only connect with other telephones which have a
|
||||
/// <see cref="TransmissionRange"/> present in this list
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public List<TelephoneRange> CompatibleRanges = new List<TelephoneRange>() { TelephoneRange.Grid };
|
||||
|
||||
/// <summary>
|
||||
/// The range at which the telephone picks up voices
|
||||
/// </summary>
|
||||
@@ -70,7 +87,7 @@ public sealed partial class TelephoneComponent : Component
|
||||
public bool RequiresPower = true;
|
||||
|
||||
/// <summary>
|
||||
/// This telephone does not appear on public telephone directories
|
||||
/// This telephone should not appear on public telephone directories
|
||||
/// </summary>
|
||||
[DataField]
|
||||
public bool UnlistedNumber = false;
|
||||
@@ -196,8 +213,7 @@ public enum TelephoneVolume : byte
|
||||
[Serializable, NetSerializable]
|
||||
public enum TelephoneRange : byte
|
||||
{
|
||||
Grid, // Can call grid/map range telephones that are on the same grid
|
||||
Map, // Can call grid/map range telephones that are on the same map
|
||||
Long, // Can only long range telephones that are on a different map
|
||||
Unlimited // Can call any telephone
|
||||
Grid, // Can only reach telephones that are on the same grid
|
||||
Map, // Can reach any telephone that is on the same map
|
||||
Unlimited, // Can reach any telephone, across any distance
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user