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)
{
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]
public float ListeningRange = 2;
/// <summary>
/// Specifies whether this telephone require power to fucntion
/// </summary>
[DataField]
public bool RequiresPower = true;
/// <summary>
/// This telephone should not appear on public telephone directories
/// </summary>

View File

@@ -190,6 +190,7 @@
acts: [ "Destruction" ]
- type: ApcPowerReceiver
powerLoad: 1000
needsPower: false
- type: StationAiCore
- type: StationAiVision
- type: InteractionOutline
@@ -218,7 +219,6 @@
listeningRange: 0
speakerVolume: Speak
unlistedNumber: true
requiresPower: false
- type: Holopad
- type: StationAiWhitelist
- type: UserInterface