]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Fix cringe 2 (#16145)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Sat, 6 May 2023 05:16:36 +0000 (15:16 +1000)
committerGitHub <noreply@github.com>
Sat, 6 May 2023 05:16:36 +0000 (15:16 +1000)
Content.Server/Spreader/KudzuSystem.cs
Resources/Prototypes/Entities/Structures/Windows/uranium.yml

index fa197836530c74d0a81a1f063d3936fac27080a3..27b44ad1b9934b25973e14c4e291cdbc86bc61c5 100644 (file)
@@ -32,7 +32,7 @@ public sealed class KudzuSystem : EntitySystem
         if (growthDamage > 0)
         {
             GrowingKudzuComponent? growing;
-            if (!TryComp<GrowingKudzuComponent>(uid, out growing))
+            if (!TryComp(uid, out growing))
             {
                 growing = AddComp<GrowingKudzuComponent>(uid);
                 growing.GrowthLevel = 3;
@@ -107,6 +107,7 @@ public sealed class KudzuSystem : EntitySystem
     /// <inheritdoc/>
     public override void Update(float frameTime)
     {
+        var appearanceQuery = GetEntityQuery<AppearanceComponent>();
         var query = EntityQueryEnumerator<GrowingKudzuComponent, KudzuComponent>();
         var curTime = _timing.CurTime;
 
@@ -152,7 +153,7 @@ public sealed class KudzuSystem : EntitySystem
                 RemCompDeferred<GrowingKudzuComponent>(uid);
             }
 
-            if (EntityManager.TryGetComponent<AppearanceComponent>(uid, out var appearance))
+            if (appearanceQuery.TryGetComponent(uid, out var appearance))
             {
                 _appearance.SetData(uid, KudzuVisuals.GrowthLevel, grow.GrowthLevel, appearance);
             }
index 9836149c296c0d6daae12bfcb08da0ad619ba299..4820043fb27002ff449b0b5b29e9a23b34190d5f 100644 (file)
@@ -41,4 +41,4 @@
     damageOverlay:
       sprite: Structures/Windows/cracks.rsi
   - type: StaticPrice
-    price: 60
+    price: 80