bruh
This commit is contained in:
@@ -11,7 +11,7 @@ namespace Content.Server._CP14.Procedural.RoomSpawner;
|
||||
public sealed partial class CP14RoomSpawnerComponent : Component
|
||||
{
|
||||
[DataField(required: true)]
|
||||
public List<ProtoId<TagPrototype>> RoomsTag = new();
|
||||
public HashSet<ProtoId<TagPrototype>> RoomsTag = new();
|
||||
|
||||
[DataField]
|
||||
public float Prob = 1f;
|
||||
|
||||
@@ -54,10 +54,7 @@ public sealed class CP14RoomSpawnerSystem : EntitySystem
|
||||
}
|
||||
|
||||
if (rooms.Count == 0)
|
||||
{
|
||||
Log.Error($"Unable to find matching rooms by tag for {ToPrettyString(spawner)}");
|
||||
return;
|
||||
}
|
||||
|
||||
var selectedRoom = _random.Pick(rooms);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user