]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Replace EntityPrototype.NoSpawn with EntityPrototype.HideSpawnMenu (#30082)
authorPlykiya <58439124+Plykiya@users.noreply.github.com>
Tue, 16 Jul 2024 14:29:31 +0000 (07:29 -0700)
committerGitHub <noreply@github.com>
Tue, 16 Jul 2024 14:29:31 +0000 (00:29 +1000)
NoSpawn

Co-authored-by: plykiya <plykiya@protonmail.com>
Content.Server/Holiday/Christmas/RandomGiftSystem.cs
Content.Shared/Clothing/EntitySystems/SharedChameleonClothingSystem.cs

index ee542572d7e0d29574bdfc34983bdc06d201abee..4603f45ed81cd11e5e396764aea7b087c11ea983 100644 (file)
@@ -95,7 +95,7 @@ public sealed class RandomGiftSystem : EntitySystem
 
         foreach (var proto in _prototype.EnumeratePrototypes<EntityPrototype>())
         {
-            if (proto.Abstract || proto.NoSpawn || proto.Components.ContainsKey(mapGridCompName) || !proto.Components.ContainsKey(physicsCompName))
+            if (proto.Abstract || proto.HideSpawnMenu || proto.Components.ContainsKey(mapGridCompName) || !proto.Components.ContainsKey(physicsCompName))
                 continue;
 
             _possibleGiftsUnsafe.Add(proto.ID);
index fced03bfabfc98e059b322771cc8a93227e5ed25..f5df04037ee6505b90ed3ad175335ba50bc18a56 100644 (file)
@@ -78,7 +78,7 @@ public abstract class SharedChameleonClothingSystem : EntitySystem
     public bool IsValidTarget(EntityPrototype proto, SlotFlags chameleonSlot = SlotFlags.NONE)
     {
         // check if entity is valid
-        if (proto.Abstract || proto.NoSpawn)
+        if (proto.Abstract || proto.HideSpawnMenu)
             return false;
 
         // check if it is marked as valid chameleon target