]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Cleanup: Remove ``TelephoneComponent.RequiresPower`` (#38823)
authorWinkarst-cpu <74284083+Winkarst-cpu@users.noreply.github.com>
Mon, 7 Jul 2025 15:55:09 +0000 (18:55 +0300)
committerGitHub <noreply@github.com>
Mon, 7 Jul 2025 15:55:09 +0000 (17:55 +0200)
* Cleanup

* Forgot about yml

Content.Server/Telephone/TelephoneSystem.cs
Content.Shared/Telephone/TelephoneComponent.cs
Resources/Prototypes/Entities/Mobs/Player/silicon.yml

index ab3026fc9773756ee94fca59bdbdecba71095317..4c87707cc6b7512c6fbd99d6f59be30616749793 100644 (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);
     }
 }
index c24840ce01a4c3e69a90b5b79c583761d95cf0dd..89748d78a452ceb3d5123898894eda95271c77d4 100644 (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>
index d70c13187f3f30c1ebfbf4a68182b46457443361..303f7dc676592730586babcbbd31e84dc84ed0d2 100644 (file)
         acts: [ "Destruction" ]
   - type: ApcPowerReceiver
     powerLoad: 1000
+    needsPower: false
   - type: StationAiCore
   - type: StationAiVision
   - type: InteractionOutline
     listeningRange: 0
     speakerVolume: Speak
     unlistedNumber: true
-    requiresPower: false
   - type: Holopad
   - type: StationAiWhitelist
   - type: UserInterface