Cleanup: Remove `TelephoneComponent.RequiresPower` (#38823)
* Cleanup * Forgot about yml
This commit is contained in:
@@ -490,6 +490,6 @@ public sealed class TelephoneSystem : SharedTelephoneSystem
|
|||||||
|
|
||||||
public bool IsTelephonePowered(Entity<TelephoneComponent> entity)
|
public bool IsTelephonePowered(Entity<TelephoneComponent> entity)
|
||||||
{
|
{
|
||||||
return this.IsPowered(entity, EntityManager) || !entity.Comp.RequiresPower;
|
return this.IsPowered(entity, EntityManager);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -81,12 +81,6 @@ public sealed partial class TelephoneComponent : Component
|
|||||||
[DataField]
|
[DataField]
|
||||||
public float ListeningRange = 2;
|
public float ListeningRange = 2;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Specifies whether this telephone require power to fucntion
|
|
||||||
/// </summary>
|
|
||||||
[DataField]
|
|
||||||
public bool RequiresPower = true;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// This telephone should not appear on public telephone directories
|
/// This telephone should not appear on public telephone directories
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -190,6 +190,7 @@
|
|||||||
acts: [ "Destruction" ]
|
acts: [ "Destruction" ]
|
||||||
- type: ApcPowerReceiver
|
- type: ApcPowerReceiver
|
||||||
powerLoad: 1000
|
powerLoad: 1000
|
||||||
|
needsPower: false
|
||||||
- type: StationAiCore
|
- type: StationAiCore
|
||||||
- type: StationAiVision
|
- type: StationAiVision
|
||||||
- type: InteractionOutline
|
- type: InteractionOutline
|
||||||
@@ -218,7 +219,6 @@
|
|||||||
listeningRange: 0
|
listeningRange: 0
|
||||||
speakerVolume: Speak
|
speakerVolume: Speak
|
||||||
unlistedNumber: true
|
unlistedNumber: true
|
||||||
requiresPower: false
|
|
||||||
- type: Holopad
|
- type: Holopad
|
||||||
- type: StationAiWhitelist
|
- type: StationAiWhitelist
|
||||||
- type: UserInterface
|
- type: UserInterface
|
||||||
|
|||||||
Reference in New Issue
Block a user