Treat trade purchase as submitted intent
This commit is contained in:
parent
f891cbc001
commit
540cadbef1
2 changed files with 20 additions and 10 deletions
|
|
@ -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);
|
||||
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue