Remove ChemMasterSystem debug assertions (#11288)

This commit is contained in:
Illiux
2022-09-14 20:57:03 -07:00
committed by GitHub
parent dc8cc81137
commit 09df0dfb60

View File

@@ -196,13 +196,13 @@ namespace Content.Server.Chemistry.EntitySystems
for (var i = 0; i < message.Number; i++) for (var i = 0; i < message.Number; i++)
{ {
var item = Spawn(PillPrototypeId, Transform(container).Coordinates); var item = Spawn(PillPrototypeId, Transform(container).Coordinates);
DebugTools.Assert(_storageSystem.Insert(container, item, storage)); _storageSystem.Insert(container, item, storage);
Label(item, message.Label); Label(item, message.Label);
var itemSolution = _solutionContainerSystem.EnsureSolution(item, SharedChemMaster.PillSolutionName); var itemSolution = _solutionContainerSystem.EnsureSolution(item, SharedChemMaster.PillSolutionName);
DebugTools.Assert(_solutionContainerSystem.TryAddSolution( _solutionContainerSystem.TryAddSolution(
item, itemSolution, withdrawal.SplitSolution(message.Dosage))); item, itemSolution, withdrawal.SplitSolution(message.Dosage));
if (TryComp<SpriteComponent>(item, out var spriteComp)) if (TryComp<SpriteComponent>(item, out var spriteComp))
spriteComp.LayerSetState(0, "pill" + (chemMaster.PillType + 1)); spriteComp.LayerSetState(0, "pill" + (chemMaster.PillType + 1));
@@ -232,8 +232,8 @@ namespace Content.Server.Chemistry.EntitySystems
return; return;
Label(container, message.Label); Label(container, message.Label);
DebugTools.Assert(_solutionContainerSystem.TryAddSolution( _solutionContainerSystem.TryAddSolution(
container, solution, withdrawal)); container, solution, withdrawal);
UpdateUiState(chemMaster); UpdateUiState(chemMaster);
ClickSound(chemMaster); ClickSound(chemMaster);