From a3ae67a762f05d9894e7cff60138f40afebbced7 Mon Sep 17 00:00:00 2001 From: Red <96445749+TheShuEd@users.noreply.github.com> Date: Sun, 1 Jun 2025 15:10:36 +0300 Subject: [PATCH] Trade reputation rework + Merchants back + Mining contract (#1347) * refactor unlocking * fix contract debug crashing * Update dev_map.yml * bugfixes and content rebalance * ore buy contract --- .../CP14TradingPlatformBoundUserInterface.cs | 1 - .../Trading/CP14TradingPlatformWindow.xaml | 15 +- .../Trading/CP14TradingPlatformWindow.xaml.cs | 41 +-- .../CP14DemiplaneSystem.Generation.cs | 12 +- .../_CP14/Trading/CP14StationEconomySystem.cs | 13 + .../Trading/CP14TradingPlatformSystem.cs | 14 +- Content.Shared/_CP14/Trading/CP14TradingUI.cs | 3 +- .../CP14TradingContractComponent.cs | 6 - .../CP14TradingReputationComponent.cs | 3 - .../CP14TradingPositionPrototype.cs | 9 +- .../CP14SharedTradingPlatformSystem.UI.cs | 7 - .../CP14SharedTradingPlatformSystem.cs | 66 +---- .../Locale/en-US/_CP14/trading/factions.ftl | 3 +- Resources/Locale/en-US/_CP14/trading/ui.ftl | 3 - .../Locale/ru-RU/_CP14/trading/factions.ftl | 3 +- Resources/Locale/ru-RU/_CP14/trading/ui.ftl | 3 - Resources/Maps/_CP14/dev_map.yml | 2 +- .../Objects/Economy/trade_contracts.yml | 11 + .../_CP14/Entities/Objects/Tools/torch.yml | 4 + .../Prototypes/_CP14/Trading/brad_potions.yml | 277 +++++++++--------- .../Prototypes/_CP14/Trading/contracts.yml | 17 +- .../Prototypes/_CP14/Trading/dwarf_mining.yml | 138 +++++++++ .../Prototypes/_CP14/Trading/factions.yml | 7 + .../_CP14/Trading/victoria_gardens.yml | 61 ++-- .../Pickaxe/metall_pickaxe.rsi/meta.json | 3 + .../Blade/Pickaxe/metall_pickaxe.rsi/tool.png | Bin 0 -> 463 bytes .../trade_contracts.rsi/dwarf_mining.png | Bin 0 -> 613 bytes .../Economy/trade_contracts.rsi/meta.json | 3 + 28 files changed, 426 insertions(+), 299 deletions(-) create mode 100644 Resources/Prototypes/_CP14/Trading/dwarf_mining.yml create mode 100644 Resources/Textures/_CP14/Objects/ModularTools/Blade/Pickaxe/metall_pickaxe.rsi/tool.png create mode 100644 Resources/Textures/_CP14/Objects/Specific/Economy/trade_contracts.rsi/dwarf_mining.png diff --git a/Content.Client/_CP14/Trading/CP14TradingPlatformBoundUserInterface.cs b/Content.Client/_CP14/Trading/CP14TradingPlatformBoundUserInterface.cs index 47a2d19950..b089d39347 100644 --- a/Content.Client/_CP14/Trading/CP14TradingPlatformBoundUserInterface.cs +++ b/Content.Client/_CP14/Trading/CP14TradingPlatformBoundUserInterface.cs @@ -14,7 +14,6 @@ public sealed class CP14TradingPlatformBoundUserInterface(EntityUid owner, Enum _window = this.CreateWindow(); - _window.OnUnlock += pos => SendMessage(new CP14TradingPositionUnlockAttempt(pos)); _window.OnBuy += pos => SendMessage(new CP14TradingPositionBuyAttempt(pos)); } diff --git a/Content.Client/_CP14/Trading/CP14TradingPlatformWindow.xaml b/Content.Client/_CP14/Trading/CP14TradingPlatformWindow.xaml index 37e9a615f7..716a801381 100644 --- a/Content.Client/_CP14/Trading/CP14TradingPlatformWindow.xaml +++ b/Content.Client/_CP14/Trading/CP14TradingPlatformWindow.xaml @@ -35,6 +35,10 @@