Electric anomaly rework (#23173)

* add content

* remove using

* update

* Update ElectricityAnomalyComponent.cs

* 2-5 lightnings

* tweaks

* remove tesla comment (sorry)
This commit is contained in:
Ed
2024-01-01 13:24:38 +03:00
committed by GitHub
parent 984cd643fe
commit 05ee6eb308
3 changed files with 32 additions and 39 deletions

View File

@@ -75,7 +75,6 @@ public sealed class LightningSystem : SharedLightningSystem
var targets = _lookup.GetComponentsInRange<LightningTargetComponent>(Transform(user).MapPosition, range).ToList();
_random.Shuffle(targets);
targets.Sort((x, y) => y.Priority.CompareTo(x.Priority));
//var realCount = Math.Min(targets.Count, boltCount);
int shootedCount = 0;
int count = -1;