Trading Outpost now has half buy-only and half sell-only pallets (#25955)
* Added new Buy & Sell specific cargo pallets * Remapped trading outpost with new pallets, tweaked texture * Removed debug message * Fixed/Compacted conditional checking to let old pallets still work for backwards compatability * Update Content.Server/Cargo/Components/CargoPalletComponent.cs Alright, updating all the references to it. Co-authored-by: Tayrtahn <tayrtahn@gmail.com> * Changed textures, changed to enum instead of string for pallet type check * Few minor code tweaks/formatting fixes * Missed the prototype change * Update Content.Server/Cargo/Components/CargoPalletComponent.cs * Update Content.Server/Cargo/Systems/CargoSystem.Shuttle.cs --------- Co-authored-by: Tayrtahn <tayrtahn@gmail.com> Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
This commit is contained in:
@@ -205,7 +205,7 @@ namespace Content.Server.Cargo.Systems
|
||||
// Try to fulfill from any station where possible, if the pad is not occupied.
|
||||
foreach (var trade in _listEnts)
|
||||
{
|
||||
var tradePads = GetCargoPallets(trade);
|
||||
var tradePads = GetCargoPallets(trade, BuySellType.Buy);
|
||||
_random.Shuffle(tradePads);
|
||||
|
||||
var freePads = GetFreeCargoPallets(trade, tradePads);
|
||||
|
||||
Reference in New Issue
Block a user