Changes - name: in StorageFillComponent.cs to - id: (#4051)

* Changes all - name: fields to - id: fields to make more sense in StorageFillComponent.cs

* Fixes test
This commit is contained in:
Swept
2021-05-21 21:30:03 +00:00
committed by GitHub
parent 9954764c58
commit 4ca854b142
40 changed files with 556 additions and 553 deletions

View File

@@ -26,14 +26,14 @@ namespace Content.IntegrationTests.Tests
foreach (var entry in storage.Contents)
{
var name = entry.PrototypeName;
var id = entry.PrototypeId;
if (name == null)
if (id == null)
{
continue;
}
Assert.That(protoManager.HasIndex<EntityPrototype>(name), $"Unable to find StorageFill prototype of {name} in prototype {proto.ID}");
Assert.That(protoManager.HasIndex<EntityPrototype>(id), $"Unable to find StorageFill prototype of {id} in prototype {proto.ID}");
Assert.That(entry.Amount > 0, $"Specified invalid amount of {entry.Amount} for prototype {proto.ID}");
Assert.That(entry.SpawnProbability > 0, $"Specified invalid probability of {entry.SpawnProbability} for prototype {proto.ID}");
}