]> git.smokeofanarchy.ru Git - space-station-14.git/commit
Fix static pricing for stacks (#14865)
authormetalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
Sun, 26 Mar 2023 17:01:42 +0000 (04:01 +1100)
committerGitHub <noreply@github.com>
Sun, 26 Mar 2023 17:01:42 +0000 (12:01 -0500)
commita8130f177f069483664ddd5da2c3b3e1137c6f9e
tree9b818ebdbb568af4e7cafcdf45e7e3561f554744
parent930d0976165842abc202ecef483f316589365f14
Fix static pricing for stacks (#14865)

Removed BaseItem price as it was always a placeholder and easier to just change without it.
Ensure staticprice is never used if stackprice is present.
Added StackComponent to the test so the behavior matches expectation.
Content.IntegrationTests/Tests/CargoTest.cs
Content.Server/Cargo/Systems/PricingSystem.cs
Resources/Prototypes/Entities/Objects/base_item.yml