Seperated Reagent item list and Solid item list to allow for vaporizing particular reagents at will. (also fixes a really nasty null reference exception because they shared the same list before D: )

This commit is contained in:
FLOZ
2020-05-04 15:16:16 -05:00
parent 108bd36b8c
commit 69b34e74ce
4 changed files with 70 additions and 15 deletions

View File

@@ -145,7 +145,16 @@ namespace Content.Server.GameObjects.Components.Kitchen
UpdateUserInterface();
}
break;
case MicrowaveVaporizeReagentIndexedMessage msg:
if (HasContents)
{
_solution.TryRemoveReagent(msg.ReagentQuantity.ReagentId, msg.ReagentQuantity.Quantity);
ClickSound();
UpdateUserInterface();
}
break;
case MicrowaveSelectCookTimeMessage msg:
_currentCookTimerTime = msg.newCookTime;
ClickSound();
@@ -305,7 +314,11 @@ namespace Content.Server.GameObjects.Components.Kitchen
private void VaporizeReagents()
{
_solution.RemoveAllSolution();
}
private void VaporizeReagentWithIndex()
{
}
private void VaporizeSolids()