mirror of
https://github.com/DeltaV-Station/Delta-v.git
synced 2026-10-01 08:37:26 +00:00
Stack System Cleanup (#38872)
* eye on the prize * OnStackInteractUsing, TryMergeStacks, TryMergeToHands, TryMergeToContacts * namespace * Use, get count, getMaxCount * component access * add regions, mark TODO * obsolete TryAdd, public TryMergeStacks * GetMaxCount * event handlers * event handlers * SetCount * client server event handlers * move to shared * Revert "move to shared" This reverts commit 45540a2d6b8e1e6d2a8f83a584267776c7edcd73. * misc changes to shared * split * spawn and SpawnNextToOrDrop * SpawnMultipleAtPosition, SpawnMultipleNextToOrDrop, CalculateSpawns, general server cleanup * Rename Use to TryUse. * Small misc changes * Remove obsolete functions * Remove some SetCount calls * Partialize * small misc change * don't nuke the git dif with the namespace block * Comments and reordering * touchup to UpdateLingering * Summary comment for StackStatusControl * Last pass * Actual last pass (for now) * I know myself too well * fixup * goodbye lingering * fixes * review * fix test * second look * fix test * forgot * remove early comp getting --------- Co-authored-by: iaada <iaada@users.noreply.github.com> Co-authored-by: slarticodefast <161409025+slarticodefast@users.noreply.github.com>
This commit is contained in:
committed by
Vanessa
co-authored by
iaada
slarticodefast
parent
88b2dcebc6
commit
ad4f64fcd6
@@ -120,7 +120,7 @@ namespace Content.Server.Kitchen.EntitySystems
|
||||
scaledSolution.ScaleSolution(fitsCount);
|
||||
solution = scaledSolution;
|
||||
|
||||
// _stackSystem.SetCount(item, stack.Count - fitsCount); // Setting to 0 will QueueDel // Imp
|
||||
// _stackSystem.ReduceCount((item, stack), fitsCount); // Setting to 0 will QueueDel // Imp
|
||||
toSet.Add((item, stack.Count - fitsCount)); // Imp
|
||||
|
||||
}
|
||||
@@ -138,7 +138,7 @@ namespace Content.Server.Kitchen.EntitySystems
|
||||
|
||||
// Begin Imp
|
||||
foreach (var (item, amount) in toSet)
|
||||
_stackSystem.SetCount(item, amount); // Setting to 0 will QueueDel
|
||||
_stackSystem.ReduceCount(item, amount); // Setting to 0 will QueueDel
|
||||
// End Imp
|
||||
|
||||
_userInterfaceSystem.ServerSendUiMessage(uid, ReagentGrinderUiKey.Key,
|
||||
|
||||
Reference in New Issue
Block a user