// 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.EmptyWeaponStorages(playerNegotiator.Map)); __result = result; } }
static void Postfix(bool doCloseSound) { TradeUtil.ReclaimWeapons(); }
// On Reset from Trade Dialog static void Prefix() { TradeUtil.ReclaimWeapons(); }