Extended rework & ramping event scheduler (#11362)

This commit is contained in:
Kara
2022-10-18 19:51:47 -07:00
committed by GitHub
parent 095a4a7136
commit 3fd226d9f0
19 changed files with 403 additions and 212 deletions

View File

@@ -18,10 +18,11 @@ public sealed class RandomSentience : StationEventSystem
base.Started();
HashSet<EntityUid> stationsToNotify = new();
var mod = GetSeverityModifier();
var targetList = EntityManager.EntityQuery<SentienceTargetComponent>().ToList();
RobustRandom.Shuffle(targetList);
var toMakeSentient = RobustRandom.Next(2, 5);
var toMakeSentient = (int) (RobustRandom.Next(2, 5) * Math.Sqrt(mod));
var groups = new HashSet<string>();
foreach (var target in targetList)