Cleanup: Remove `TelephoneComponent.RequiresPower` (#38823)

* Cleanup

* Forgot about yml
This commit is contained in:
Winkarst-cpu
2025-07-07 18:55:09 +03:00
committed by GitHub
parent b1fb01fed5
commit ae3b3b6173
3 changed files with 2 additions and 8 deletions

View File

@@ -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);
} }
} }

View File

@@ -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>

View File

@@ -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