Clean up all missing EntitySystem proxy method uses (#38353)
This commit is contained in:
@@ -89,14 +89,14 @@ namespace Content.Server.Spawners.EntitySystems
|
||||
}
|
||||
|
||||
if (!Deleted(uid))
|
||||
EntityManager.SpawnEntity(_robustRandom.Pick(component.Prototypes), Transform(uid).Coordinates);
|
||||
Spawn(_robustRandom.Pick(component.Prototypes), Transform(uid).Coordinates);
|
||||
}
|
||||
|
||||
private void Spawn(EntityUid uid, RandomSpawnerComponent component)
|
||||
{
|
||||
if (component.RarePrototypes.Count > 0 && (component.RareChance == 1.0f || _robustRandom.Prob(component.RareChance)))
|
||||
{
|
||||
EntityManager.SpawnEntity(_robustRandom.Pick(component.RarePrototypes), Transform(uid).Coordinates);
|
||||
Spawn(_robustRandom.Pick(component.RarePrototypes), Transform(uid).Coordinates);
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -118,7 +118,7 @@ namespace Content.Server.Spawners.EntitySystems
|
||||
|
||||
var coordinates = Transform(uid).Coordinates.Offset(new Vector2(xOffset, yOffset));
|
||||
|
||||
EntityManager.SpawnEntity(_robustRandom.Pick(component.Prototypes), coordinates);
|
||||
Spawn(_robustRandom.Pick(component.Prototypes), coordinates);
|
||||
}
|
||||
|
||||
private void Spawn(Entity<EntityTableSpawnerComponent> ent)
|
||||
|
||||
Reference in New Issue
Block a user