Move some Station methods into shared (#38976)
This commit is contained in:
@@ -9,7 +9,7 @@ public sealed class EntitySpawnVariationPassSystem : VariationPassSystem<EntityS
|
||||
{
|
||||
protected override void ApplyVariation(Entity<EntitySpawnVariationPassComponent> ent, ref StationVariationPassEvent args)
|
||||
{
|
||||
var totalTiles = Stations.GetTileCount(args.Station);
|
||||
var totalTiles = Stations.GetTileCount(args.Station.AsNullable());
|
||||
|
||||
var dirtyMod = Random.NextGaussian(ent.Comp.TilesPerEntityAverage, ent.Comp.TilesPerEntityStdDev);
|
||||
var trashTiles = Math.Max((int) (totalTiles * (1 / dirtyMod)), 0);
|
||||
|
||||
Reference in New Issue
Block a user