Skip to content
This repository was archived by the owner on Apr 22, 2021. It is now read-only.

Fixes #158 search min bin for UCL cards and for cards with multiple clubs #160

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions fut/transferMarket.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,10 @@ export class TransferMarket {
searchCriteria.count = 30;
searchCriteria.maskedDefId = item.getMaskedResourceId();
searchCriteria.type = item.type;
searchCriteria.league = item.leagueId;
searchCriteria.club = item.teamId;

if (item.rareflag === 47) { // 47 = Champions
// if it is a Champions card, this is seen as a gold card
// Can only search for "Gold" in this case
searchCriteria.level = factories.DataProvider.getItemLevelDP(true)
.filter(d => d.id === 2)[0].value;
} else if (item.rareflag >= 3) { // 3 = TOTW
if (item.rareflag >= 3) { // 3 = TOTW
// if it is TOTW or other special, set it to TOTW. See enums.ItemRareType.
// Can only search for "Specials", not more specific on Rare Type
searchCriteria.level = factories.DataProvider.getItemLevelDP(true)
Expand Down