Remove warning from CloningPodSystem (#41246)
* Change raw string to protoId * Address comment
This commit is contained in:
@@ -29,6 +29,7 @@ using Robust.Shared.Containers;
|
|||||||
using Robust.Shared.Physics.Components;
|
using Robust.Shared.Physics.Components;
|
||||||
using Robust.Shared.Prototypes;
|
using Robust.Shared.Prototypes;
|
||||||
using Robust.Shared.Random;
|
using Robust.Shared.Random;
|
||||||
|
using Content.Shared.Chemistry.Reagent;
|
||||||
|
|
||||||
namespace Content.Server.Cloning;
|
namespace Content.Server.Cloning;
|
||||||
|
|
||||||
@@ -58,6 +59,7 @@ public sealed class CloningPodSystem : EntitySystem
|
|||||||
public readonly Dictionary<MindComponent, EntityUid> ClonesWaitingForMind = new();
|
public readonly Dictionary<MindComponent, EntityUid> ClonesWaitingForMind = new();
|
||||||
public readonly ProtoId<CloningSettingsPrototype> SettingsId = "CloningPod";
|
public readonly ProtoId<CloningSettingsPrototype> SettingsId = "CloningPod";
|
||||||
public const float EasyModeCloningCost = 0.7f;
|
public const float EasyModeCloningCost = 0.7f;
|
||||||
|
private static readonly ProtoId<ReagentPrototype> BloodId = "Blood";
|
||||||
|
|
||||||
public override void Initialize()
|
public override void Initialize()
|
||||||
{
|
{
|
||||||
@@ -302,7 +304,7 @@ public sealed class CloningPodSystem : EntitySystem
|
|||||||
while (i < 1)
|
while (i < 1)
|
||||||
{
|
{
|
||||||
tileMix?.AdjustMoles(Gas.Ammonia, 6f);
|
tileMix?.AdjustMoles(Gas.Ammonia, 6f);
|
||||||
bloodSolution.AddReagent("Blood", 50);
|
bloodSolution.AddReagent(BloodId, 50);
|
||||||
if (_robustRandom.Prob(0.2f))
|
if (_robustRandom.Prob(0.2f))
|
||||||
i++;
|
i++;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user