diff --git a/TODO b/TODO index 73c682eed..96b030787 100644 --- a/TODO +++ b/TODO @@ -1,5 +1,4 @@ trading block - specify what you want -- prospects - idk come up with something involving age, ovr, and pot - if draftPicks is selected along with some other stuff, then use the other stuff to pick a player first, then take draft picks until done, then resume taking players by the original sort - if draftPicks is not selected but something else is, then don't look at picks at all? or can i put it on the same scale somehow? - ui diff --git a/src/worker/core/trade/makeItWork.ts b/src/worker/core/trade/makeItWork.ts index 7e1124fa9..99ea8d937 100644 --- a/src/worker/core/trade/makeItWork.ts +++ b/src/worker/core/trade/makeItWork.ts @@ -245,7 +245,13 @@ const tryAddAsset = async ( lookingForSort = true; } else if (lookingFor.prospects) { - console.log("TODO"); + for (const asset of assets) { + if (asset.type === "player") { + const ratings = asset.p.ratings.at(-1); + const potDiff = ratings.pot - ratings.ovr; + asset.score += potDiff / 20; + } + } lookingForSort = true; }