Beispiel #1
0
 // 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;
     }
 }
Beispiel #2
0
 static void Postfix(bool doCloseSound)
 {
     TradeUtil.ReclaimWeapons();
 }
Beispiel #3
0
 // On Reset from Trade Dialog
 static void Prefix()
 {
     TradeUtil.ReclaimWeapons();
 }