]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
minor Derelict Cyborg code changes.
authorThe Canned One <greentopcan@gmail.com>
Fri, 4 Oct 2024 06:31:55 +0000 (08:31 +0200)
committerThe Canned One <greentopcan@gmail.com>
Fri, 4 Oct 2024 06:31:55 +0000 (08:31 +0200)
Content.Server/Silicons/Laws/IonStormSystem.cs
Content.Server/Silicons/Laws/StartIonStormedSystem.cs
Content.Server/StationEvents/Events/IonStormRule.cs
Resources/Prototypes/Entities/Mobs/Player/silicon.yml

index b3c36a2273329ee7ddecdce8c2a64dd0ef9591bc..f8bc8ca8c31a8fc23e7ceed2898b8e9e9e2e05da 100644 (file)
@@ -59,8 +59,10 @@ public sealed class IonStormSystem : EntitySystem
     [ValidatePrototypeId<DatasetPrototype>]
     private const string Foods = "IonStormFoods";
 
+    /// <summary>
     //Randomly alters the laws of an individual silicon.
-    public void IonStormTarget(Entity<SiliconLawBoundComponent, IonStormTargetComponent> ent, TransformComponent xform, EntityUid? chosenStation, bool adminlog = true)
+    /// </summary>
+    public void IonStormTarget(Entity<SiliconLawBoundComponent, IonStormTargetComponent> ent, bool adminlog = true)
     {
         var lawBound = ent.Comp1;
         var target = ent.Comp2;
index d679b558b321539caf0887e2dca01769f7341e5d..ee2ce7b9edd84758f9db82827e5c09971ef62e61 100644 (file)
@@ -24,14 +24,12 @@ public sealed class StartIonStormedSystem : EntitySystem
     {
         if (!TryComp<SiliconLawBoundComponent>(ent.Owner, out var lawBound))
             return;
-        if (!TryComp<TransformComponent>(ent.Owner, out var xform))
-            return;
         if (!TryComp<IonStormTargetComponent>(ent.Owner, out var target))
             return;
 
         for (int currentIonStorm = 0; currentIonStorm < ent.Comp.IonStormAmount; currentIonStorm++)
         {
-            _ionStorm.IonStormTarget((ent.Owner, lawBound, target), xform, null, false);
+            _ionStorm.IonStormTarget((ent.Owner, lawBound, target), false);
         }
 
         var laws = _siliconLaw.GetLaws(ent.Owner, lawBound);
index 9b67f25608d3dd02d79fcf093634b4bc3e1ce0b7..e7c2d563ba993b37eba0d37ba362a259d2b535f8 100644 (file)
@@ -24,7 +24,7 @@ public sealed class IonStormRule : StationEventSystem<IonStormRuleComponent>
             if (CompOrNull<StationMemberComponent>(xform.GridUid)?.Station != chosenStation)
                 continue;
 
-            _ionStorm.IonStormTarget((ent, lawBound, target), xform, chosenStation);
+            _ionStorm.IonStormTarget((ent, lawBound, target));
         }
     }
 }
index 97cd7c2a9d84ce6a23219af0002db67d6c9c9925..22f49c93eaae58a1d73cca937007bab826ad060a 100644 (file)
 - type: entity
   id: PlayerBorgDerelictGhostRole
   parent: PlayerBorgDerelict
-  suffix: Battery, Ghost role
+  suffix: Ghost role
   components:
     - type: GhostRole
       name: ghost-role-information-derelict-cyborg-name