// Before an orbital trade static void Postfix(ref IEnumerable <Thing> __result, Pawn playerNegotiator) { if (playerNegotiator != null && playerNegotiator.Map != null) { List <Thing> result = new List <Thing>(__result); result.AddRange(TradeUtil.EmptyStorages(playerNegotiator.Map)); __result = result; } }
static void Postfix(bool doCloseSound) { TradeUtil.ReclaimThings(); }
// On Reset from Trade Dialog static void Prefix() { TradeUtil.ReclaimThings(); }