Treat trade purchase as submitted intent

This commit is contained in:
Meta Vens 2026-06-21 13:51:26 +01:00
commit 540cadbef1
2 changed files with 20 additions and 10 deletions

View file

@ -419,11 +419,7 @@ public class TradeMenu : MonoBehaviour
return;
}
if (!GameManager.RequestTradePurchase(Inventory, _targetCargo, item, price, isShipHull))
{
ShowUnableToBuy("Purchase request rejected!");
return;
}
GameManager.RequestTradePurchase(Inventory, _targetCargo, item, price, isShipHull);
}
@ -437,11 +433,7 @@ public class TradeMenu : MonoBehaviour
}
var price = typedItem.Price;
if (!GameManager.RequestTradePurchase(Inventory, _targetCargo, simpleCommodity, quantity, price))
{
ShowUnableToBuy("Purchase request rejected!");
return;
}
GameManager.RequestTradePurchase(Inventory, _targetCargo, simpleCommodity, quantity, price);
}