File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -249,16 +249,16 @@ internal ulong OtherSteamID64 {
249
249
}
250
250
}
251
251
252
- internal bool IsSteamOnlyTrade {
252
+ internal bool IsSteamCardsOnlyTrade {
253
253
get {
254
254
foreach ( Item item in ItemsToGive ) {
255
- if ( item . AppID != Item . SteamAppID || item . ContextID != Item . SteamContextID ) {
255
+ if ( item . AppID != Item . SteamAppID || item . ContextID != Item . SteamContextID || ( item . Type != Item . EType . FoilTradingCard && item . Type != Item . EType . TradingCard ) ) {
256
256
return false ;
257
257
}
258
258
}
259
259
260
260
foreach ( Item item in ItemsToReceive ) {
261
- if ( item . AppID != Item . SteamAppID || item . ContextID != Item . SteamContextID ) {
261
+ if ( item . AppID != Item . SteamAppID || item . ContextID != Item . SteamContextID || ( item . Type != Item . EType . FoilTradingCard && item . Type != Item . EType . TradingCard ) ) {
262
262
return false ;
263
263
}
264
264
}
Original file line number Diff line number Diff line change @@ -153,13 +153,13 @@ private bool ShouldAcceptTrade(Steam.TradeOffer tradeOffer) {
153
153
return false ;
154
154
}
155
155
156
- // Rule 2 - We always trade steam itmes and only for the same set
157
- if ( ! tradeOffer . IsSteamOnlyTrade || ! tradeOffer . IsPotentiallyDupesTrade ) {
156
+ // Rule 2 - We always trade steam cards and only for the same set
157
+ if ( ! tradeOffer . IsSteamCardsOnlyTrade || ! tradeOffer . IsPotentiallyDupesTrade ) {
158
158
return false ;
159
159
}
160
160
161
161
// This STM trade SHOULD be fine
162
- // Potential TODO: Ensure that our inventory in fact has proper amount of both received and given items
162
+ // Potential TODO: Ensure that our inventory in fact has proper amount of both received and given cards
163
163
// This way we could calculate amounts before and after trade, ensuring that we're in fact trading dupes and not 1 + 2 -> 0 + 3
164
164
return true ;
165
165
}
You can’t perform that action at this time.
0 commit comments