]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Stack System Cleanup (#38872)
authorāda <ss.adasts@gmail.com>
Sat, 25 Oct 2025 14:40:48 +0000 (09:40 -0500)
committerGitHub <noreply@github.com>
Sat, 25 Oct 2025 14:40:48 +0000 (14:40 +0000)
commit8d8af1bab7fc482b4b859426bc2f80995ff820a3
treef2facaa88ba33ef339c46ccf787f60b784d131aa
parent39aada2018da32df380d66147347a731042667b2
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>
39 files changed:
Content.Client/Stack/StackStatusControl.cs
Content.Client/Stack/StackSystem.cs
Content.IntegrationTests/Tests/CargoTest.cs
Content.IntegrationTests/Tests/Construction/Interaction/CraftingTests.cs
Content.IntegrationTests/Tests/Interaction/InteractionTest.EntitySpecifier.cs
Content.IntegrationTests/Tests/MaterialArbitrageTest.cs
Content.IntegrationTests/Tests/Materials/MaterialTests.cs
Content.Server/Administration/Systems/AdminVerbSystem.Tools.cs
Content.Server/Cargo/Systems/CargoSystem.Funds.cs
Content.Server/Cloning/CloningSystem.Subscriptions.cs
Content.Server/Construction/Completions/GivePrototype.cs
Content.Server/Construction/Completions/SetStackCount.cs
Content.Server/Construction/Completions/SpawnPrototype.cs
Content.Server/Construction/ConstructionSystem.Initial.cs
Content.Server/Construction/ConstructionSystem.Machine.cs
Content.Server/Construction/MachineFrameSystem.cs
Content.Server/Destructible/Thresholds/Behaviors/DumpRestockInventory.cs
Content.Server/Destructible/Thresholds/Behaviors/SpawnEntitiesBehavior.cs
Content.Server/Engineering/EntitySystems/SpawnAfterInteractSystem.cs
Content.Server/Hands/Systems/HandsSystem.cs
Content.Server/Kitchen/EntitySystems/MicrowaveSystem.cs
Content.Server/Kitchen/EntitySystems/ReagentGrinderSystem.cs
Content.Server/Light/EntitySystems/ExpendableLightSystem.cs
Content.Server/Materials/MaterialStorageSystem.cs
Content.Server/Power/EntitySystems/CableSystem.Placer.cs
Content.Server/Stack/StackSystem.cs
Content.Server/Store/Systems/StoreSystem.Ui.cs
Content.Server/Store/Systems/StoreSystem.cs
Content.Server/Xenoarchaeology/Equipment/Systems/ArtifactCrusherSystem.cs
Content.Shared/Medical/Healing/HealingSystem.cs
Content.Shared/Salvage/Fulton/SharedFultonSystem.cs
Content.Shared/Stacks/SharedStackSystem.API.cs [new file with mode: 0644]
Content.Shared/Stacks/SharedStackSystem.cs
Content.Shared/Stacks/StackComponent.cs
Content.Shared/Stacks/StackPrototype.cs
Content.Shared/Stacks/StackVisuals.cs
Content.Shared/Storage/EntitySystems/SharedStorageSystem.cs
Content.Shared/Store/CurrencyPrototype.cs
Content.Shared/Tiles/FloorTileSystem.cs