Wait for daemon state after trade requests
This commit is contained in:
parent
41295e4470
commit
d9d2a1d3c4
2 changed files with 8 additions and 2 deletions
|
|
@ -9197,6 +9197,14 @@ static void RequireTradePurchaseRequestAuthority(string root)
|
|||
{
|
||||
throw new InvalidOperationException("TradeMenu no longer routes purchases through ActionGameManager.");
|
||||
}
|
||||
|
||||
var firstTradeRequest = tradeMenu.IndexOf("GameManager.RequestTradePurchase", StringComparison.Ordinal);
|
||||
var firstCreditRefreshAfterRequest = tradeMenu.IndexOf("UpdateCreditsLabel();", firstTradeRequest, StringComparison.Ordinal);
|
||||
if (firstTradeRequest >= 0 && firstCreditRefreshAfterRequest >= 0)
|
||||
{
|
||||
throw new InvalidOperationException(
|
||||
"TradeMenu still refreshes projected credits immediately after submitting a daemon purchase request instead of waiting for daemon-observed state.");
|
||||
}
|
||||
}
|
||||
|
||||
static void RequireLootPickupRequestAuthority(string root)
|
||||
|
|
|
|||
Loading…
Reference in a new issue