Fix vent critters spawn (#17833)

* VentCrittersRule scaling chance + spawn on station

* merge mouse migration and vent critters

* fix prototypes

* check if there is no valid locations
This commit is contained in:
Slava0135
2023-07-09 22:25:05 +03:00
committed by GitHub
parent 68b56878bc
commit 839720b538
5 changed files with 69 additions and 88 deletions

View File

@@ -1,16 +0,0 @@
using Content.Server.StationEvents.Events;
namespace Content.Server.StationEvents.Components;
[RegisterComponent, Access(typeof(MouseMigrationRule))]
public sealed class MouseMigrationRuleComponent : Component
{
[DataField("spawnedPrototypeChoices")]
public List<string> SpawnedPrototypeChoices = new() //we double up for that ez fake probability
{
"MobMouse",
"MobMouse1",
"MobMouse2",
"MobRatServant"
};
}

View File

@@ -8,4 +8,10 @@ public sealed class VentCrittersRuleComponent : Component
{
[DataField("entries")]
public List<EntitySpawnEntry> Entries = new();
/// <summary>
/// At least one special entry is guaranteed to spawn
/// </summary>
[DataField("specialEntries")]
public List<EntitySpawnEntry> SpecialEntries = new();
}