Skip to content

Commit 16cfbd3

Browse files
authored
Remove warning from CloningPodSystem (space-wizards#41246)
* Change raw string to protoId * Address comment
1 parent 4b6c5b6 commit 16cfbd3

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Content.Server/Cloning/CloningPodSystem.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
using Robust.Shared.Physics.Components;
3030
using Robust.Shared.Prototypes;
3131
using Robust.Shared.Random;
32+
using Content.Shared.Chemistry.Reagent;
3233

3334
namespace Content.Server.Cloning;
3435

@@ -58,6 +59,7 @@ public sealed class CloningPodSystem : EntitySystem
5859
public readonly Dictionary<MindComponent, EntityUid> ClonesWaitingForMind = new();
5960
public readonly ProtoId<CloningSettingsPrototype> SettingsId = "CloningPod";
6061
public const float EasyModeCloningCost = 0.7f;
62+
private static readonly ProtoId<ReagentPrototype> BloodId = "Blood";
6163

6264
public override void Initialize()
6365
{
@@ -302,7 +304,7 @@ private void EndFailedCloning(EntityUid uid, CloningPodComponent clonePod)
302304
while (i < 1)
303305
{
304306
tileMix?.AdjustMoles(Gas.Ammonia, 6f);
305-
bloodSolution.AddReagent("Blood", 50);
307+
bloodSolution.AddReagent(BloodId, 50);
306308
if (_robustRandom.Prob(0.2f))
307309
i++;
308310
}

0 commit comments

Comments
 (0)