Skip to content
This repository was archived by the owner on Dec 23, 2025. It is now read-only.

Commit ae3b3b6

Browse files
authored
Cleanup: Remove TelephoneComponent.RequiresPower (space-wizards#38823)
* Cleanup * Forgot about yml
1 parent b1fb01f commit ae3b3b6

3 files changed

Lines changed: 2 additions & 8 deletions

File tree

Content.Server/Telephone/TelephoneSystem.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,6 @@ public bool IsSourceConnectedToReceiver(Entity<TelephoneComponent> source, Entit
490490

491491
public bool IsTelephonePowered(Entity<TelephoneComponent> entity)
492492
{
493-
return this.IsPowered(entity, EntityManager) || !entity.Comp.RequiresPower;
493+
return this.IsPowered(entity, EntityManager);
494494
}
495495
}

Content.Shared/Telephone/TelephoneComponent.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,6 @@ public sealed partial class TelephoneComponent : Component
8181
[DataField]
8282
public float ListeningRange = 2;
8383

84-
/// <summary>
85-
/// Specifies whether this telephone require power to fucntion
86-
/// </summary>
87-
[DataField]
88-
public bool RequiresPower = true;
89-
9084
/// <summary>
9185
/// This telephone should not appear on public telephone directories
9286
/// </summary>

Resources/Prototypes/Entities/Mobs/Player/silicon.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,7 @@
190190
acts: [ "Destruction" ]
191191
- type: ApcPowerReceiver
192192
powerLoad: 1000
193+
needsPower: false
193194
- type: StationAiCore
194195
- type: StationAiVision
195196
- type: InteractionOutline
@@ -218,7 +219,6 @@
218219
listeningRange: 0
219220
speakerVolume: Speak
220221
unlistedNumber: true
221-
requiresPower: false
222222
- type: Holopad
223223
- type: StationAiWhitelist
224224
- type: UserInterface

0 commit comments

Comments
 (0)