Replace EntityPrototype.NoSpawn with EntityPrototype.HideSpawnMenu (#30082)
NoSpawn Co-authored-by: plykiya <plykiya@protonmail.com>
This commit is contained in:
@@ -95,7 +95,7 @@ public sealed class RandomGiftSystem : EntitySystem
|
|||||||
|
|
||||||
foreach (var proto in _prototype.EnumeratePrototypes<EntityPrototype>())
|
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;
|
continue;
|
||||||
|
|
||||||
_possibleGiftsUnsafe.Add(proto.ID);
|
_possibleGiftsUnsafe.Add(proto.ID);
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ public abstract class SharedChameleonClothingSystem : EntitySystem
|
|||||||
public bool IsValidTarget(EntityPrototype proto, SlotFlags chameleonSlot = SlotFlags.NONE)
|
public bool IsValidTarget(EntityPrototype proto, SlotFlags chameleonSlot = SlotFlags.NONE)
|
||||||
{
|
{
|
||||||
// check if entity is valid
|
// check if entity is valid
|
||||||
if (proto.Abstract || proto.NoSpawn)
|
if (proto.Abstract || proto.HideSpawnMenu)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
// check if it is marked as valid chameleon target
|
// check if it is marked as valid chameleon target
|
||||||
|
|||||||
Reference in New Issue
Block a user