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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user